To shade the highest few values in a list — top 3 sales, best 5 scores — use a conditional-formatting formula rule built on LARGE. Excel’s built-in “Top 10” preset works too, but a formula gives you full control.
LARGE(range, 3) is the 3rd-largest value; any cell at least that big is in the top 3 and gets the format.
How it works
The rule shades every value in the top 3. Here the helper column shows the TRUE/FALSE the rule produces.
| A | B | C | |
|---|---|---|---|
| 1 | Rep | Sales | In top 3? |
| 2 | Ana | $120 | FALSE |
| 3 | Ben | $300 | TRUE |
| 4 | Cy | $180 | TRUE |
| 5 | Dot | $90 | FALSE |
| 6 | Eve | $250 | TRUE |
The formula
The conditional-formatting rule (applied to B2:B6):
How it works
The rule compares each value to the nth-largest:
LARGE($B$2:$B$6, 3)returns the 3rd-largest value —180. The range is locked so every cell compares to the same threshold.- For each cell,
B2 >= 180is TRUE for the three biggest values, FALSE for the rest. - Conditional formatting shades the cells where the rule is TRUE — the top 3.
- Change the
3to any N, or point it at a cell to make the count adjustable.
Built-in shortcut: Home → Conditional Formatting → Top/Bottom Rules → Top 10 Items (set it to 3). Quick, but the formula rule handles ties and custom counts more precisely.
Try it: interactive demo
Choose N; the top values light up.
Variations
Highlight the bottom N
Use SMALL instead:
Top N within each group
Combine with a group condition (helper or COUNTIFS rank).
Above average
A related favorite:
Pitfalls & errors
Lock the range, not the cell. Use $B$2:$B$10 (fully locked) inside LARGE so every cell compares to the same threshold; the leading B2 stays relative.
Ties can highlight more than N. If two values tie at the threshold, both are shaded — you might see 4 cells for “top 3.” Usually fine, but worth knowing.
Rule applies to the selection. Whatever was selected when you created the rule is its range — check Manage Rules → Applies to if it looks off.
Practice workbook
Frequently asked questions
How do I highlight the top N values in Excel?
How do I highlight the bottom N values?
Is there a built-in way without a formula?
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