ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Average using Sumproduct or .... (https://www.excelbanter.com/excel-discussion-misc-queries/261382-average-using-sumproduct.html)

heater

Average using Sumproduct or ....
 
I have 12 tabs (same worksheet) that I need to average a number in cell b6.
The issue is sometimes there is a zero in b6 and I do not want to count it in
the average. example: tab 1, b6=145, tab 2=276, tab 3=0, tab 4= 123, tab
5=0, and so on... What is a good formula?

Bob Phillips[_4_]

Average using Sumproduct or ....
 
Try

=SUMPRODUCT(SUMIF(INDIRECT("'Sheet"&ROW(INDIRECT(" 1:12"))&"'!B6"),"<0"))
/SUMPRODUCT(COUNTIF(INDIRECT("'Sheet"&ROW(INDIRECT( "1:12"))&"'!B6"),"<0
--

HTH

Bob

"heater" wrote in message
...
I have 12 tabs (same worksheet) that I need to average a number in cell b6.
The issue is sometimes there is a zero in b6 and I do not want to count it
in
the average. example: tab 1, b6=145, tab 2=276, tab 3=0, tab 4= 123, tab
5=0, and so on... What is a good formula?




Pete_UK

Average using Sumproduct or ....
 
Have you tried:

=AVERAGE('tab 1:tab 12'!B6)

?

Hope this helps.

Pete

On Apr 13, 4:01*pm, heater wrote:
I have 12 tabs (same worksheet) that I need to average a number in cell b6. *
The issue is sometimes there is a zero in b6 and I do not want to count it in
the average. *example: *tab 1, b6=145, tab 2=276, tab 3=0, tab 4= 123, tab
5=0, and so on... *What is a good formula?



T. Valko

Average using Sumproduct or ....
 
See your other post

http://www.microsoft.com/communities...d-60b9609a8e90

--
Biff
Microsoft Excel MVP


"heater" wrote in message
...
I have 12 tabs (same worksheet) that I need to average a number in cell b6.
The issue is sometimes there is a zero in b6 and I do not want to count it
in
the average. example: tab 1, b6=145, tab 2=276, tab 3=0, tab 4= 123, tab
5=0, and so on... What is a good formula?





All times are GMT +1. The time now is 10:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com