Formatting Issues

How to Highlight the Maximum Value Using Excel Conditional Formatting

Algirdas JasaitisAlgirdas Jasaitis Nov 10, 2026 870 views

Question details

The user wants to automatically find and highlight the cell containing the highest value (including formula results) within a specific column.

How to Highlight the Maximum Formula Result in Excel
Product
Excel
Device & OS
not provided
Scenario
Managing a dataset where visually identifying the peak value dynamically is necessary as data changes.
Observed behavior
The user needs the cell with the highest calculated or static value to be visually distinct using conditional formatting.
Before you start

Ensure your dataset contains numerical values or formulas that output numerical results, and identify the exact column or range you want to apply the formatting to.

Solution 1Recommended

Use the 'Format only cells that contain' Rule

This is the most straightforward method to highlight the maximum value in a static or dynamic range using a simple MAX formula condition.

By setting a rule that looks for a specific cell value, Excel will evaluate all selected cells and apply your formatting only to the one matching the highest value.

1
Select the target range

Click and drag to select the column or specific range of cells containing your data (for example, K2:K100).

2
Open Conditional Formatting

Go to the Home tab on the ribbon, click 'Conditional Formatting,' and select 'New Rule.'

3
Choose the rule type

In the dialog box, select 'Format only cells that contain' from the list of rule types.

4
Set the condition

Leave the first drop-down as 'Cell Value,' change the second drop-down to 'equal to,' and in the formula box next to it, enter =MAX($K$2:$K$100). Make sure to replace the range with your actual selection.

5
Apply formatting

Click the 'Format' button, navigate to the 'Fill' tab, choose your desired highlight color, and click OK twice to apply the rule.

Use the 'Format only cells that contain' Rule
Use Absolute References: Always use absolute references (with the $ signs) inside the MAX formula so the evaluation range remains constant for every cell.
Highlight Data Easily in WPS Spreadsheet

Easily Apply Conditional Formatting in WPS Office

WPS Spreadsheet offers an intuitive interface to manage large datasets and apply conditional formatting rules, including highlighting maximum values seamlessly.

  1. 1. Open your spreadsheet in WPS Office: Launch WPS Spreadsheet and open the document containing your data.
  2. 2. Highlight the desired range: Select the cells where you want to identify the maximum value.
  3. 3. Access Conditional Formatting: Navigate to the Home tab, click on Conditional Formatting, and choose New Rule.
  4. 4. Apply the MAX formula: Select 'Format only cells that contain', set it to 'Cell Value' 'equal to' and enter =MAX($K$2:$K$100). Set your format color and click OK.
100% compatible with Microsoft Excel conditional formatting rules and formulas.Free and lightweight, running smoothly on Windows, Mac, Linux, and mobile devices.User-friendly interface makes data visualization and advanced formatting quick and easy.
microsoft office alternative - wps office

Frequently Asked Questions

Why isn't my conditional formatting highlighting the correct maximum value?

Ensure that your MAX formula uses absolute references (e.g., $K$2:$K$100 instead of K2:K100). If you use relative references, the evaluation range shifts for each cell checked, leading to incorrect highlights.

Can I highlight the lowest value using a similar method?

Yes, you can highlight the lowest value by following the exact same steps but replacing the MAX function with the MIN function (e.g., =MIN($K$2:$K$100)) in your conditional formatting rule.

Will this automatically update if my formula results change?

Yes, conditional formatting is dynamic. If the underlying data changes and a new cell becomes the maximum value, the highlight will automatically shift to the new highest cell.

How do I highlight the top 3 maximum values instead of just one?

Instead of using the MAX formula, go to Home > Conditional Formatting > Top/Bottom Rules > Top 10 Items. Change the number from 10 to 3, choose your desired formatting, and click OK.