Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Help! Need to ignore 0s and blank cells in average formula!

I have the following formula - which works - to calculate an average of
numbers that are listed in 3 separate columns:
=AVERAGE(E7:E126,M7:M129,U7:U128)

The problem is that I need the formula to ignore blank cells and cells that
contain a zero. I've tried many different things but just can't get it to
work!

Anyone have any suggestions?
Thanks in advance for your help!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 905
Default Help! Need to ignore 0s and blank cells in average formula!

"sandres74" wrote:
=AVERAGE(E7:E126,M7:M129,U7:U128)

[....]
The problem is that I need the formula to ignore
blank cells and cells that contain a zero.


If read look at Excel Help, you would see that AVERAGE already ignores blank
cells, even cells that contain null and blank strings as well as other text.
So the only thing you need to worry about are cells whose value is zero.

Try the following array formula[*]:

=AVERAGE(IF(E7:E126<0,E7:E126),
IF(M7:M129<0,M7:M129),
IF(U7:U128<0,U7:U128))
[*] An array formula is commited by pressing ctrl+shift+Enter instead of
just Enter. You will see the entire formula surrounded by curly braces in
the Formula Bar, viz. {=formula}. If you make a mistake, press F2, edit the
formula if necessary, then press ctrl+shift+Enter.


----- original message ----

"sandres74" wrote:
I have the following formula - which works - to calculate an average of
numbers that are listed in 3 separate columns:
=AVERAGE(E7:E126,M7:M129,U7:U128)

The problem is that I need the formula to ignore blank cells and cells that
contain a zero. I've tried many different things but just can't get it to
work!

Anyone have any suggestions?
Thanks in advance for your help!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default Help! Need to ignore 0s and blank cells in average formula!

What =average does is to add all of the cells with a numerical value
(including 0) and then divide that result by the number of cells containing a
numerical value.
=Average will skip blank cells and non-numerical cells, but it does not
ignore 0.
Try using =SUM function to get the total and divide by =COUNTIF if to ignore
blank and 0 value cells


"sandres74" wrote:

I have the following formula - which works - to calculate an average of
numbers that are listed in 3 separate columns:
=AVERAGE(E7:E126,M7:M129,U7:U128)

The problem is that I need the formula to ignore blank cells and cells that
contain a zero. I've tried many different things but just can't get it to
work!

Anyone have any suggestions?
Thanks in advance for your help!

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
ignore blank cells in a formula sashabaz Excel Discussion (Misc queries) 1 August 14th 09 05:02 PM
Need to average data if in cells, but ignore blank cells. Paula Excel Worksheet Functions 4 July 1st 09 05:38 PM
NESTED IF FORMULA - IGNORE BLANK CELLS Evan Excel Worksheet Functions 5 May 20th 09 04:32 PM
Drag formula - ignore blank cells Paul Excel Discussion (Misc queries) 1 April 2nd 09 05:25 PM
how to make a formula ignore blank cells Snap Excel Worksheet Functions 6 June 8th 06 12:54 AM


All times are GMT +1. The time now is 07:44 AM.

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"