ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   AverageIF (https://www.excelbanter.com/excel-discussion-misc-queries/165921-averageif.html)

coastal

AverageIF
 
I would like to calculate the average of a range but want to ignore any cells
equal to zero. I tried the following formula but it returns an error
messsage (#NAME?)

=AVERAGEIF(O2:O1092,"0")

Does anyone have another formula? I am using Excel 2003
--
--coastal

T. Valko

AverageIF
 
Try this array formula**:

=AVERAGE(IF(O2:O10920,O2:O1092))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)


--
Biff
Microsoft Excel MVP


"coastal" wrote in message
...
I would like to calculate the average of a range but want to ignore any
cells
equal to zero. I tried the following formula but it returns an error
messsage (#NAME?)

=AVERAGEIF(O2:O1092,"0")

Does anyone have another formula? I am using Excel 2003
--
--coastal





All times are GMT +1. The time now is 12:28 AM.

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