How to Highlight the Maximum Value Using Excel Conditional Formatting
Question details
The user wants to automatically find and highlight the cell containing the highest value (including formula results) within a specific column.

- 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.
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.
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.
Click and drag to select the column or specific range of cells containing your data (for example, K2:K100).
Go to the Home tab on the ribbon, click 'Conditional Formatting,' and select 'New Rule.'
In the dialog box, select 'Format only cells that contain' from the list of rule types.
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.
Click the 'Format' button, navigate to the 'Fill' tab, choose your desired highlight color, and click OK twice to apply the rule.

Use a Formula to Determine Which Cells to Format
An alternative approach that provides more flexibility if you need to highlight an entire row based on the maximum value in a specific column.
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. Open your spreadsheet in WPS Office: Launch WPS Spreadsheet and open the document containing your data.
- 2. Highlight the desired range: Select the cells where you want to identify the maximum value.
- 3. Access Conditional Formatting: Navigate to the Home tab, click on Conditional Formatting, and choose New Rule.
- 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.

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.




