ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Conditional math
  3. Count Cells Above Average in Excel With COUNTIF

Count Cells Above Average in Excel With COUNTIF

By ExcelReady Team·Updated November 2, 2026·6 min read

The short answer

To count cells above average in Excel, join the greater-than sign to an AVERAGE inside COUNTIF: =COUNTIF(C2:C9,">"&AVERAGE(C2:C9)). The ">" goes in quotes, and the & joins it to the average so COUNTIF compares each cell with that number. Use "<" for below average and ">=" to include values equal to the average.

Key takeaways

  • =COUNTIF(range,">"&AVERAGE(range)) counts the values above the average of the same range.
  • Keep the operator in quotes and join AVERAGE with &. Writing ">AVERAGE(C2:C9)" in quotes returns 0.
  • Use "<" for below average and ">=" to include values exactly equal to the average.
  • COUNTIFS with AVERAGEIF counts values above their own group's average.
On this page+
  1. The formula to count above average in Excel
  2. Example: count sales reps above average
  3. How to count below average, or equal to it
  4. How to count above the average of a group
  5. Use wildcards to count above average for similar names
  6. Why COUNTIF above average returns 0 or a wrong count
  7. How to highlight values above average
  8. Practise it

To count cells above average in Excel, put AVERAGE inside COUNTIF's criteria: =COUNTIF(C2:C9,">"&AVERAGE(C2:C9)). AVERAGE works out the mean, and COUNTIF counts every cell greater than it. This guide is for anyone answering "how many beat the average?" in a report or job test, and it covers below average, group averages, wildcards and the one mistake that makes the formula return 0.

The formula to count above average in Excel#

You need two functions working together. AVERAGE finds the mean of the range. COUNTIF counts the cells that meet a condition. The trick is building the condition:

Excel formula
=COUNTIF(range,">"&AVERAGE(range))
PartWhat it does
rangeThe cells to check, such as C2:C9
">"The operator "greater than", as text in quotes
&Joins the operator to the number that follows
AVERAGE(range)Works out the average of the same cells

COUNTIF's criteria is always text, such as ">4000". The & builds that text from the operator and a live number, so the criteria updates whenever the data changes. The guide to COUNTIF with criteria examples explains criteria in general.

Example: count sales reps above average#

Here is a sales table in A1:C9:

ABC
1RepRegionSales
2AnaNorth East4,200
3BenSouth West3,100
4ChenNorth West5,600
5DevSouth East2,900
6EliNorth East3,800
7FaySouth East4,700
8GusNorth West3,300
9HanaSouth West5,100

First, the average: =AVERAGE(C2:C9) returns 4,087.5 (32,700 divided by 8). Then count the reps above it:

Excel formula
=COUNTIF(C2:C9,">"&AVERAGE(C2:C9))

The result is 4: Ana, Chen, Fay and Hana. Excel turns the criteria into ">4087.5" behind the scenes and counts every sale bigger than that.

If you already have the average in a cell, say F1, point at the cell instead: =COUNTIF(C2:C9,">"&F1). That is easier to read and lets you show the average next to the count. The AVERAGE function guide and AVERAGE, MIN and MAX explained cover the averaging side.

How to count below average, or equal to it#

Change the operator and keep everything else the same:

QuestionFormulaResult
Above average=COUNTIF(C2:C9,">"&AVERAGE(C2:C9))4
Below average=COUNTIF(C2:C9,"<"&AVERAGE(C2:C9))4
At or above average=COUNTIF(C2:C9,">="&AVERAGE(C2:C9))4
Share above average=COUNTIF(C2:C9,">"&AVERAGE(C2:C9))/COUNT(C2:C9)50%

Here no sale equals the average exactly, so ">" and ">=" give the same answer. With whole-number scores, such as test marks, a value can land exactly on the average, and then the choice matters. Decide whether "at average" counts as a pass before you write the formula. For more on these operators, see COUNTIF greater than and less than.

For the share, format the cell as a percentage (Ctrl+Shift+% on both Windows and Mac).

How to count above the average of a group#

Sometimes "above average" should mean above the average for that region, not the whole team. AVERAGEIF works out a conditional average, and COUNTIFS counts with two conditions:

Excel formula
=COUNTIFS(B2:B9,"North East",C2:C9,">"&AVERAGEIF(B2:B9,"North East",C2:C9))
  • AVERAGEIF(B2:B9,"North East",C2:C9) is the North East average: (4,200 + 3,800) / 2 = 4,000.
  • COUNTIFS counts rows where the region is North East and sales are above 4,000.

The result is 1 (Ana). Put the region name in a cell, such as G2, and use G2 in both places to build a summary for every region. The guide to AVERAGEIF in Excel covers conditional averages in more depth.

Use wildcards to count above average for similar names#

A wildcard is a symbol that stands for unknown characters: * means any number of characters. With it, one condition can match several regions at once. To count reps in any North region whose sales beat the team average:

Excel formula
=COUNTIFS(B2:B9,"North*",C2:C9,">"&AVERAGE(C2:C9))

"North*" matches North East and North West. The result is 2: Ana (4,200) and Chen (5,600). Gus is in the North West but below the average.

To compare the North reps with the North average instead, use the wildcard inside AVERAGEIF as well:

Excel formula
=COUNTIFS(B2:B9,"North*",C2:C9,">"&AVERAGEIF(B2:B9,"North*",C2:C9))

The North average is 4,225, so the result is 1: only Chen. Ana's 4,200 is just below it. Read more in the guide to wildcards in COUNTIF and SUMIF criteria.

Why COUNTIF above average returns 0 or a wrong count#

Most problems come from how the criteria is written. Check these:

  1. AVERAGE inside the quotes. =COUNTIF(C2:C9,">AVERAGE(C2:C9)") returns 0, because inside quotes AVERAGE(C2:C9) is just text, so COUNTIF compares the numbers with a word and none of them match. Keep only the operator in quotes.
  2. Different ranges. =COUNTIF(C2:C9,">"&AVERAGE(C2:C20)) compares with the average of a bigger range. Use the same range in both places, or lock both with $ before filling.
  3. Zeros instead of blanks. AVERAGE ignores empty cells but counts zeros. A column full of 0s for "no data" drags the average down, so more values look above average.
  4. Numbers stored as text. AVERAGE and COUNTIF both skip them, so the count is lower than you expect. Convert them with VALUE or Text to Columns.

Another way to write the same count is =SUMPRODUCT(--(C2:C9>AVERAGE(C2:C9))). It compares each cell with the average, turns TRUE into 1 with --, and adds them up. It also returns 4. COUNTIF is easier to read, so use it unless you need conditions COUNTIF can't handle.

How to highlight values above average#

To see the above-average cells rather than count them, use conditional formatting. Select C2:C9, then go to Home > Conditional Formatting > Top/Bottom Rules > Above Average and pick a colour. Excel shades Ana, Chen, Fay and Hana, the same four that COUNTIF counted. Use both together: the count for the report, the colour for the reader.

Practise it#

Try the exercise on this page: one COUNTIF counts the reps who beat the team average. Then practise COUNTIF in a live spreadsheet, where you type each formula and it checks it instantly. Build your AVERAGE skills in the AVERAGE, MIN and MAX lesson, and try wildcard conditions in the criteria and wildcards lesson. The COUNTIF function guide is a handy reference.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

How many sales reps beat the team average? In F2, use COUNTIF on the Sales column (C2:C9) with ">"&AVERAGE(C2:C9) as the criteria.

fx
ABCDEFG
1
Rep
Region
Sales
2
Ana
North East
4200
Above average
3
Ben
South West
3100
4
Chen
North West
5600
5
Dev
South East
2900
6
Eli
North East
3800
7
Fay
South East
4700
8
Gus
North West
3300
9
Hana
South West
5100
10
11
12

Tip: The criteria is the text ">" joined with & to AVERAGE(C2:C9). Don't put AVERAGE inside the quotes.

Practise this in a lesson

LessonCOUNTIFCount the cells that match a condition, from exact words to number checks like ">=8".LessonAVERAGE, MIN and MAXSummarize a list with its average, smallest and largest values.LessonWildcards and cell-based criteriaMatch partial text with * and ?, and build criteria from cells like ">"&H5 so your formulas adapt.Function guideCOUNTIFCount cells that match one condition with COUNTIF: text, numbers, wildcards and cell references. Real examples and a live exercise.Function guideAVERAGECalculate the mean in Excel with AVERAGE. See how it treats blanks and zeros, avoid common errors, and practice in a live sheet.

Frequently asked questions

How do I count values above average in Excel?

+

Use =COUNTIF(C2:C9,">"&AVERAGE(C2:C9)). AVERAGE works out the mean, and COUNTIF counts the cells greater than it. Change the range to match your data.

How do I count values below average?

+

Swap the operator: =COUNTIF(C2:C9,"<"&AVERAGE(C2:C9)). Use "<=" if values equal to the average should count as well.

Why does my COUNTIF above average return 0?

+

The AVERAGE is probably inside the quotes, as in ">AVERAGE(C2:C9)". Inside quotes it is just text. Keep only the operator in quotes and join the function with &: ">"&AVERAGE(C2:C9).

How do I count values above average for one category?

+

Use COUNTIFS with AVERAGEIF: =COUNTIFS(B2:B9,"East",C2:C9,">"&AVERAGEIF(B2:B9,"East",C2:C9)). It counts East values above the East average.

What percentage of values are above average?

+

Divide the count by the number of values: =COUNTIF(C2:C9,">"&AVERAGE(C2:C9))/COUNT(C2:C9), then format the cell as a percentage.

Sources

  • COUNTIF function - Microsoft Support
  • AVERAGE function - Microsoft Support
  • COUNTIFS function - Microsoft Support

Written and checked by the ExcelReady Team. First published November 2, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. The formula to count above average in Excel
  2. Example: count sales reps above average
  3. How to count below average, or equal to it
  4. How to count above the average of a group
  5. Use wildcards to count above average for similar names
  6. Why COUNTIF above average returns 0 or a wrong count
  7. How to highlight values above average
  8. Practise it

Keep reading

Conditional math· 6 min read

How to Use COUNTIF in Excel (With Criteria Examples)

COUNTIF counts the cells in a range that meet one condition. Write =COUNTIF(range, criteria), for example =COUNTIF(D2:D9,"Open") to count open tickets. Put text and comparisons in double quotes, like ">=8" or "<>Low". Numbers and cell references go in without quotes. For two or more conditions, use COUNTIFS.

Conditional math· 6 min read

COUNTIF Greater Than, Less Than and Equal To

To count cells greater than a number, put the operator and the number together in quotes: =COUNTIF(B2:B8,">50"). Use "<50" for less than, ">=50" for greater than or equal to, and "<>50" for not equal to. To use a number from a cell, join it with &: =COUNTIF(B2:B8,">"&E1).

Math· 5 min read

AVERAGE, MIN and MAX in Excel With Examples

AVERAGE returns the mean of a range, MIN returns the smallest number and MAX returns the largest. All three take the same input: =AVERAGE(B2:B6), =MIN(B2:B6) and =MAX(B2:B6). They skip empty cells and text but count zeros, and =MAX(B2:B6)-MIN(B2:B6) shows how spread out the values are.

More on conditional math

  • How to Count by Category in Excel
  • How to Count Cells With Text in Excel
  • Count and Sum Colored Cells in Excel
  • How to Count Duplicates in Excel
  • How to Count Unique Values in Excel
  • How to Count Yes, No and Ticks in Excel
All conditional math articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free