ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I average a column without including zeros (https://www.excelbanter.com/excel-discussion-misc-queries/39899-how-do-i-average-column-without-including-zeros.html)

KMHarpe

How do I average a column without including zeros
 
I want to average a column that is all percentages, but I want to excluding
any cells with a 0%, what formula would I use? Thanks!!!

Dave Peterson

Maybe..

=SUM(A1:A10)/COUNTIF(A1:A10,"<"&0)



KMHarpe wrote:

I want to average a column that is all percentages, but I want to excluding
any cells with a 0%, what formula would I use? Thanks!!!


--

Dave Peterson

Dave O

There may be a snappy built-in function in Excel to do this, but until
someone responds with it, this formula will work:
=SUM(D1:D5)/COUNTIF(D1:D5,"<0")

.... where D1:D5 is the range containing your percentages.


pgriff


Probably not a good idea to average %s anyway. Get your average from
the data.


--
pgriff
------------------------------------------------------------------------
pgriff's Profile: http://www.excelforum.com/member.php...o&userid=26189
View this thread: http://www.excelforum.com/showthread...hreadid=394952



All times are GMT +1. The time now is 05:10 PM.

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