How many values beat the mean? Nest AVERAGE inside COUNTIF’s criteria to count everything above (or below) the average in one formula.
">"& builds the criteria; COUNTIF counts the values above it.
The example
Of these, how many beat the average of 30?
| A | B | |
|---|---|---|
| 1 | Stat | Value |
| 2 | Average | 30 |
| 3 | # above average | 2 |
The formula
Count beating the mean:
How it works
Build the criteria from the average:
AVERAGE(B2:B100)computes the mean.- Concatenate it into a criteria string:
">"&AVERAGE(…). - COUNTIF counts every value matching that condition — the above-average count.
- Swap
>for<to count below average;>=to include those exactly at the mean.
Above average within a group? Combine with COUNTIFS and an AVERAGEIF: count rows in a region that beat that region’s average. The pattern — nest the stat into the criteria — works for MEDIAN, percentiles, and more.
Try it: interactive demo
Values; count those above the mean.
Variations
Below average
Flip the operator:
% above average
Share:
Above the median
Use MEDIAN:
Pitfalls & errors
Concatenate, don’t embed. Use ">"&AVERAGE(…) — putting AVERAGE inside the quotes makes it literal text.
Ties at the mean. > excludes values exactly equal to the average; use >= to include them.
Blanks/text. AVERAGE and COUNT ignore text and blanks, but a stray 0 shifts the mean.
Practice workbook
Frequently asked questions
How do I count values above the average in Excel?
How do I count below average?
Why does my COUNTIF return 0?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class