From: Malcolm on
I'm using a worksheet that has a cell (C27) that totals rooms and a cell
(J28) that totals rates and a cell (J29) that is the average daily rate
total, rate/total rooms. I'm using the formula =AVERAGE(J28/C27). The only
problem is until I actually input a number into C27 I get the #DIV/0!
displayed in my ADR cell (J29). I don't always need this data so is there a
way I can input the formula and not have the #DIV/0! in cell J29?
Thanks,
Malcolm

From: Noodnutt on
G'day Malcolm

=IF($J28=0,0,AVERAGE(J28/C27))

HTH
Mark


"Malcolm" <Malcolm(a)discussions.microsoft.com> wrote in message
news:B9AACD7C-6185-43B7-A52F-DAEF11B769E1(a)microsoft.com...
> I'm using a worksheet that has a cell (C27) that totals rooms and a cell
> (J28) that totals rates and a cell (J29) that is the average daily rate
> total, rate/total rooms. I'm using the formula =AVERAGE(J28/C27). The only
> problem is until I actually input a number into C27 I get the #DIV/0!
> displayed in my ADR cell (J29). I don't always need this data so is there
> a
> way I can input the formula and not have the #DIV/0! in cell J29?
> Thanks,
> Malcolm
>



From: Ken Hudson on
Hi Malcolm,

One way...

=IF(ISERROR(AVERAGE(J28/C27)),"",J28/C27)

Ken Hudson


"Malcolm" wrote:

> I'm using a worksheet that has a cell (C27) that totals rooms and a cell
> (J28) that totals rates and a cell (J29) that is the average daily rate
> total, rate/total rooms. I'm using the formula =AVERAGE(J28/C27). The only
> problem is until I actually input a number into C27 I get the #DIV/0!
> displayed in my ADR cell (J29). I don't always need this data so is there a
> way I can input the formula and not have the #DIV/0! in cell J29?
> Thanks,
> Malcolm
>
From: Brad on
=if(c27=0,"",AVERAGE(J28/C27))
--
Wag more, bark less


"Malcolm" wrote:

> I'm using a worksheet that has a cell (C27) that totals rooms and a cell
> (J28) that totals rates and a cell (J29) that is the average daily rate
> total, rate/total rooms. I'm using the formula =AVERAGE(J28/C27). The only
> problem is until I actually input a number into C27 I get the #DIV/0!
> displayed in my ADR cell (J29). I don't always need this data so is there a
> way I can input the formula and not have the #DIV/0! in cell J29?
> Thanks,
> Malcolm
>
From: Ziggy on
On May 27, 3:33 pm, "Noodnutt @ Work" <ma...(a)camerons.com.au> wrote:
> G'day Malcolm
>
> =IF($J28=0,0,AVERAGE(J28/C27))
>
> HTH
> Mark
>
> "Malcolm" <Malc...(a)discussions.microsoft.com> wrote in message
>
> news:B9AACD7C-6185-43B7-A52F-DAEF11B769E1(a)microsoft.com...
>
>
>
> > I'm using a worksheet that has a cell (C27) that totals rooms and a cell
> > (J28) that totals rates and a cell (J29) that is the average daily rate
> > total, rate/total rooms. I'm using the formula =AVERAGE(J28/C27). The only
> > problem is until I actually input a number into C27 I get the #DIV/0!
> > displayed in my ADR cell (J29). I don't always need this data so is there
> > a
> > way I can input the formula and not have the #DIV/0! in cell J29?
> > Thanks,
> > Malcolm- Hide quoted text -
>
> - Show quoted text -

It think when you divide you already creat the average. You don't need
the AVERAGE function.

=IF(C27=0,0,J28/C27)

=IF(iserror(J28/C27),0,J28/C27)

in 2007; =IFERROR(J28.C27,0)

My preference runs to the if error formulas

Sig
 |  Next  |  Last
Pages: 1 2 3
Prev: Date inconsistent help please :)
Next: Date Help