VisualizeTrends

Highlight the Largest Values in Excel With Conditional Formatting

Microsoft Excel can help you analyze data, even without having to do any computations. By simply setting up conditional formatting rules, you can easily visualize data and identify trends. Doing that can help focus your attention on key numbers and make your analysis process much more efficient. In the following data set, I have a list of investment returns by year. I’ll show you how you can setup a rule to highlight which return was larger in each year:

Investment returns by year in an Excel table.

Creating the conditional formatting rule

To create a conditional formatting rule to highlight the largest values, I’m going to select column B. Then, I’m going to go into the Conditional Formatting menu on the Home tab and will click on New Rule.

Creating a new conditional formatting rule.

Under the option for the rule type, I’m going to select use a formula to determine which cells to format, and I’ll enter the following formula:

=B1>C1

Then I’ll adjust the format so that the cell has a dark grey color and a white, bolded text.

Conditional formatting rule in Excel comparing values.

After clicking apply, the formatting will take effect:

Conditional formatting rules applied to an Excel spreadsheet, highlighting the largest amount.

A similar rule needs to be setup for column C. And in this case, I’ll highlight the values in blue.

Setting up a conditional formatting rule to check if a value is greater than another.

Now there is highlighting applied to both columns:

Conditional formatting rules applied to an Excel spreadsheet, highlighting the largest amount in multiple columns.

However, the header is also highlighted in column C. To fix this, I’ll add a condition to check to make sure that it is a number:

Setting up a conditional formatting rule to check if a value is greater than another and that it is also a number.

Now the conditional formatting is properly applied, and ignores the header row.

Conditional formatting rules applied to an Excel spreadsheet, highlighting the largest amount in multiple columns.

If you like this post on How to Highlight the Largest Values in Excel With Conditional Formatting, please give this site a like on Facebook and also be sure to check out some of the many templates that we have available for download. You can also follow me on Twitter and YouTube. Also, please consider buying me a coffee if you find my website helpful and would like to support it.

Comments are closed.