Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Average If function - Exclude Zero?

Tags:

excel

I am using the following averageIf formula

=AVERAGEIF('Backend Data - Aerospace'!D:D, "Total",'Backend Data - Aerospace'!E:E)

However, it is counting 0's and i do not want this. Is there a way i can exclude 0's from being calculated as part of the average?

Thanks

like image 669
M Koe Avatar asked Jun 24 '26 18:06

M Koe


1 Answers

To exclude zero values, you'd use the criteria <>0.

=AVERAGEIFS('Backend Data - Aerospace'!E:E,'Backend Data - Aerospace'!D:D, "Total",'Backend Data - Aerospace'!E:E,"<>0")

If you need a formula that doesn't ignore empty cells or if you're still using Excel 2003, you can use a formula in the following format:

=SUM(range)/COUNTIF(range,"<>0")

like image 141
Felipe Alarcon Avatar answered Jun 27 '26 15:06

Felipe Alarcon



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!