FormulaCraft

How to highlight the maximum value in a column in Excel and Google Sheets

Topic:Conditional formatting
Excel & Google Sheets
=MAX($B$2:$B$5)=B2

Verified example

Computed by a real spreadsheet engine on the sample data below.

NameSales
Alice200
Bob450
Charlie300
David450

=MAX($B$2:$B$5)=B2FALSE

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Select the range of cells in the column you want to format (e.g., B2:B5).
  2. 2Go to the Home tab, click Conditional Formatting, and choose New Rule.
  3. 3In Excel, select 'Use a formula to determine which cells to format'. In Google Sheets, choose 'Custom formula is'.
  4. 4Enter the formula `=MAX($B$2:$B$5)=B2` and set your desired formatting style.
  5. 5Click OK to apply the rule.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

What if my data range changes?

Update the formula to include the new range, ensuring absolute references are used where necessary.

Can I highlight multiple maximum values if they are the same?

Yes, this formula will highlight all instances of the maximum value.

How do I remove the conditional formatting once applied?

Select the formatted cells, go to Conditional Formatting, and choose Clear Rules.

More on Conditional formatting

See all →

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: