Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 37
Default how do I average cells if a cell is at #div/0!

ok heres what I have.
in cell D6 I have formula of =AVERAGE(D7:D10) which its at #div/0!
in cell D11 = AVERAGE(D12:D15) which its at 85
in cell D16 =AVERAGE(D17:D210) which its at 50

in cell D3 I just want the average of cell D6,D11,and D16
is this possible and how?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 638
Default how do I average cells if a cell is at #div/0!

On Sep 24, 5:16 pm, delete automatically
wrote:
ok heres what I have.
in cell D6 I have formula of =AVERAGE(D7:D10) which its at #div/0!
in cell D11 = AVERAGE(D12:D15) which its at 85
in cell D16 =AVERAGE(D17:D210) which its at 50

in cell D3 I just want the average of cell D6,D11,and D16
is this possible and how?


Possible, yes. But why allow errors in your worksheet? Handle the
errors in your formulas and you won't have this problem.
=IF(ISERR0R(AVERAGE(D7:D10),0,AVERAGE(D7:D10))

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default how do I average cells if a cell is at #div/0!

Change the D6 formula to =IF(ISERROR(AVERAGE(D7:D10)),"",AVERAGE(D7:D10))

But be careful taking the average of averages. Are you sure that you don't
need a weighted mean?
--
David Biddulph

"delete automatically" wrote
in message ...
ok heres what I have.
in cell D6 I have formula of =AVERAGE(D7:D10) which its at #div/0!
in cell D11 = AVERAGE(D12:D15) which its at 85
in cell D16 =AVERAGE(D17:D210) which its at 50

in cell D3 I just want the average of cell D6,D11,and D16
is this possible and how?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default how do I average cells if a cell is at #div/0!

I assume you mean
=IF(ISERROR(AVERAGE(D7:D10)),0,AVERAGE(D7:D10))
and not
=IF(ISERR0R(AVERAGE(D7:D10),0,AVERAGE(D7:D10))
(with the missing closing parenthesis, and with an O where you had a zero),
but do you really want to return a zero in the error case, or wouldn't
=IF(ISERROR(AVERAGE(D7:D10)),"",AVERAGE(D7:D10)) be better so that it
doesn't affect the next stage average in D3?
--
David Biddulph

"JW" wrote in message
oups.com...
On Sep 24, 5:16 pm, delete automatically
wrote:
ok heres what I have.
in cell D6 I have formula of =AVERAGE(D7:D10) which its at #div/0!
in cell D11 = AVERAGE(D12:D15) which its at 85
in cell D16 =AVERAGE(D17:D210) which its at 50

in cell D3 I just want the average of cell D6,D11,and D16
is this possible and how?


Possible, yes. But why allow errors in your worksheet? Handle the
errors in your formulas and you won't have this problem.
=IF(ISERR0R(AVERAGE(D7:D10),0,AVERAGE(D7:D10))



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 37
Default how do I average cells if a cell is at #div/0!

Thanks for the help, that worked fine but I think I have another problem. I
will post it when I figure what I need

"JW" wrote:

On Sep 24, 5:16 pm, delete automatically
wrote:
ok heres what I have.
in cell D6 I have formula of =AVERAGE(D7:D10) which its at #div/0!
in cell D11 = AVERAGE(D12:D15) which its at 85
in cell D16 =AVERAGE(D17:D210) which its at 50

in cell D3 I just want the average of cell D6,D11,and D16
is this possible and how?


Possible, yes. But why allow errors in your worksheet? Handle the
errors in your formulas and you won't have this problem.
=IF(ISERR0R(AVERAGE(D7:D10),0,AVERAGE(D7:D10))




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 638
Default how do I average cells if a cell is at #div/0!

On Sep 24, 6:03 pm, "David Biddulph" <groups [at] biddulph.org.uk
wrote:
I assume you mean
=IF(ISERROR(AVERAGE(D7:D10)),0,AVERAGE(D7:D10))
and not
=IF(ISERR0R(AVERAGE(D7:D10),0,AVERAGE(D7:D10))
(with the missing closing parenthesis, and with an O where you had a zero),
but do you really want to return a zero in the error case, or wouldn't
=IF(ISERROR(AVERAGE(D7:D10)),"",AVERAGE(D7:D10)) be better so that it
doesn't affect the next stage average in D3?
--
David Biddulph

"JW" wrote in message

oups.com...

On Sep 24, 5:16 pm, delete automatically
wrote:
ok heres what I have.
in cell D6 I have formula of =AVERAGE(D7:D10) which its at #div/0!
in cell D11 = AVERAGE(D12:D15) which its at 85
in cell D16 =AVERAGE(D17:D210) which its at 50


in cell D3 I just want the average of cell D6,D11,and D16
is this possible and how?


Possible, yes. But why allow errors in your worksheet? Handle the
errors in your formulas and you won't have this problem.
=IF(ISERR0R(AVERAGE(D7:D10),0,AVERAGE(D7:D10))


Yes, left a parenthesis out. Typo on my part. As for the average
portion, could be either way. In my line of work, those zeros need to
be included in the grand average or I'd be reporting false data and
get kicked to the curb!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
from a group of cells.find average of cells containing values farm Excel Discussion (Misc queries) 1 December 21st 06 08:50 PM
Excel-only average cells if two cells in same row, meet two condit Eulie-Denver Excel Worksheet Functions 5 October 5th 06 11:15 PM
average cells, show 0 if nothing to average Kycajun Excel Discussion (Misc queries) 8 June 21st 06 07:36 PM
How do I average a range of cells when one cell contains #N/A hongkonglt Excel Discussion (Misc queries) 3 September 19th 05 02:13 AM
Average non-adjacent cells if the cell does not contain zero Cheri Excel Discussion (Misc queries) 11 August 20th 05 08:12 AM


All times are GMT +1. The time now is 02:19 PM.

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

About Us

"It's about Microsoft Excel"