Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ted Ted is offline
external usenet poster
 
Posts: 48
Default Average across worksheets ignoring zero

I am using =AVERAGE(Start:End!F37) to calculate an average across multiple
worksheets. However, some of the sheets contain a zero in cell B37. I need
to ignore that zero (and that sheet) entirely. Can anyone help?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Average across worksheets ignoring zero

I am using =AVERAGE(Start:End!F37)
some of the sheets contain a zero in cell B37


Which cell is it, B37 or F37?

A single formula to do this can be really complicated (especially if you
need an error trap).

You would be better off using a formula on each individual sheet that checks
for 0.

On each sheet in say, cell X1:

=IF(F37=0,"",F37)

Then you can still use the much simpler:

=AVERAGE(Start:End!X1)

--
Biff
Microsoft Excel MVP


"Ted" wrote in message
...
I am using =AVERAGE(Start:End!F37) to calculate an average across multiple
worksheets. However, some of the sheets contain a zero in cell B37. I
need
to ignore that zero (and that sheet) entirely. Can anyone help?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Average across worksheets ignoring zero

One way by specifying the sheet names..
=SUMPRODUCT(SUMIF(INDIRECT("'"&{"sheet1","sheet2"} &"'!F37"),"<0"))/
SUMPRODUCT(COUNTIF(INDIRECT("'"&{"sheet1","sheet2" }&"'!F37"),"<0"))

'OR having the sheet names in J1:J3 (no blank cells)
=SUMPRODUCT(SUMIF(INDIRECT("'"& J1:J3 &"'!F37"),"<0"))/
SUMPRODUCT(COUNTIF(INDIRECT("'"& J1:J3 &"'!F37"),"<0"))

If this post helps click Yes
---------------
Jacob Skaria


"Ted" wrote:

I am using =AVERAGE(Start:End!F37) to calculate an average across multiple
worksheets. However, some of the sheets contain a zero in cell B37. I need
to ignore that zero (and that sheet) entirely. Can anyone 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
Ignoring non-filled formulas in average Laurizio Excel Discussion (Misc queries) 6 January 26th 09 01:44 PM
Criteria average ignoring blanks flumpuk Excel Discussion (Misc queries) 5 October 17th 07 11:39 AM
Criteria average ignoring blanks flumpuk Excel Discussion (Misc queries) 1 October 17th 07 11:19 AM
Ignoring blank cells on getting an average Neil Excel Discussion (Misc queries) 6 July 18th 07 08:14 AM
Average ignoring Zeros Gary Excel Worksheet Functions 3 February 21st 07 02:20 AM


All times are GMT +1. The time now is 07:23 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"