A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Averaging without #DIV0!



 
 
Thread Tools Display Modes
  #1  
Old May 27th, 2010, 10:25 PM posted to microsoft.public.excel.worksheet.functions
malcolm
external usenet poster
 
Posts: 106
Default Averaging without #DIV0!

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

  #2  
Old May 27th, 2010, 10:33 PM posted to microsoft.public.excel.worksheet.functions
Noodnutt @ Work
external usenet poster
 
Posts: 9
Default Averaging without #DIV0!

G'day Malcolm

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

HTH
Mark


"Malcolm" wrote in message
...
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




  #3  
Old May 27th, 2010, 11:00 PM posted to microsoft.public.excel.worksheet.functions
Ken Hudson
external usenet poster
 
Posts: 82
Default Averaging without #DIV0!

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

  #4  
Old May 27th, 2010, 11:03 PM posted to microsoft.public.excel.worksheet.functions
Brad
external usenet poster
 
Posts: 943
Default Averaging without #DIV0!

=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

  #5  
Old May 27th, 2010, 11:06 PM posted to microsoft.public.excel.worksheet.functions
Ziggy
external usenet poster
 
Posts: 47
Default Averaging without #DIV0!

On May 27, 3:33*pm, "Noodnutt @ Work" wrote:
G'day Malcolm

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

HTH
Mark

"Malcolm" wrote in message

...



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
  #6  
Old May 27th, 2010, 11:07 PM posted to microsoft.public.excel.worksheet.functions
Ziggy
external usenet poster
 
Posts: 47
Default Averaging without #DIV0!

On May 27, 4:06*pm, Ziggy wrote:
On May 27, 3:33*pm, "Noodnutt @ Work" wrote:





G'day Malcolm


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


HTH
Mark


"Malcolm" wrote in message


...


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- Hide quoted text -

- Show quoted text -


Should have been =IFERROR(J28/C27,0)
  #7  
Old May 27th, 2010, 11:09 PM posted to microsoft.public.excel.worksheet.functions
FSt1
external usenet poster
 
Posts: 2,788
Default Averaging without #DIV0!

hi
vary your formula a tad
=IF(c27=0,0,average(j28/c27))
thought i haven't seen the average formula used quite that way.
but if c27 is zero then the above formual will put a zero in the cell
instead of #DIV/0

regards
FSt1

"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

  #8  
Old May 27th, 2010, 11:13 PM posted to microsoft.public.excel.worksheet.functions
Noodnutt @ Work
external usenet poster
 
Posts: 9
Default Averaging without #DIV0!

D'oh

Seeing the trees through the forest..

Thx Ziggy


"Ziggy" wrote in message
...
On May 27, 3:33 pm, "Noodnutt @ Work" wrote:
G'day Malcolm

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

HTH
Mark

"Malcolm" wrote in message

...



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



  #9  
Old May 27th, 2010, 11:43 PM posted to microsoft.public.excel.worksheet.functions
Fred Smith[_4_]
external usenet poster
 
Posts: 2,386
Default Averaging without #DIV0!

Or, more simply:
=if(c27=0,"",j28/c27)

Regards,
Fred


"Brad" wrote in message
...
=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


  #10  
Old May 28th, 2010, 12:22 AM posted to microsoft.public.excel.worksheet.functions
Max
external usenet poster
 
Posts: 8,574
Default Averaging without #DIV0!

Think you don't need to use "average", and this simple IF trap which checks
the denominator cell should suffice:
=IF(C27="","",J29/C27)
--
Max
Singapore
---
"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

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:16 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.