ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I average a formula without calculating zero values? (https://www.excelbanter.com/excel-discussion-misc-queries/36240-how-do-i-average-formula-without-calculating-zero-values.html)

KMHarpe

How do I average a formula without calculating zero values?
 
I want to average a column, except for the cells that have zero as a value.
How do I do this?

Thanks!

Bob Phillips

=AVERAGE(IF(rng<0,rng))

which is an array formula so commit with Ctrl-Shift-Enter.

--
HTH

Bob Phillips

"KMHarpe" wrote in message
...
I want to average a column, except for the cells that have zero as a

value.
How do I do this?

Thanks!





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

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