'How to calculate average rating in excel with excluding blank cells?

How to calculate average rating in excel with excluding blank cells?

In other way

  • if cells is empty --> not calculate rating

  • if 0 or greater than 0 to 5 --> calculate rating

then calculate average ratings.



Solution 1:[1]

Do you mean that your range includes values of less than 0 and/or larger than 5 and empty, but you only want to calculate value from 0 to 5? I think you'd better use pair of SUMIFS and COUNTIFS, with set of your conditions (>=0, <=5, not blank...).

For example, assumed your value range B1:B6: enter image description here

=SUMIFS(B1:B6,B1:B6,">=0",B1:B6,"<=5")/COUNTIFS(B1:B6,">=0",B1:B6,"<=5")

This give out result of average of 2.5

And please note that COUNTIFS or AVERAGE... they do not count empty cells by default.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 navafolk