Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Excel giving wrong average

Hi I have an average function:

    =IF(ISERROR(AVERAGE(H6:H31)), "", AVERAGE(H6:H31))

but it returns the wrong average for the numbers: 0, 0, 3, 0, 0, 0, 0, 0, 4, 0

It produces 0.7 instead of 3.5 and I am definitely using column H row 6 to 31

What could cause this? Thanks

like image 457
d199224 Avatar asked Sep 13 '26 00:09

d199224


2 Answers

0.7 is the correct answer. See here

You are looking for the average excluding zeros. In which case you should use the AVERAGEIF function. In your case that would be:

=AVERAGEIF(H6:H31,"<>0")

This will give you 3.5

like image 104
Donal Avatar answered Sep 15 '26 13:09

Donal


Average is considered as

Grand Total / Total no of Obs.

In this case you have total of 10 observations.

so, 7/10 is 0.7

like image 32
Bhumin Vadalia Avatar answered Sep 15 '26 15:09

Bhumin Vadalia