Excel has a great tool for visualizing data called Conditional Formatting. If you work with data in Excel (and who doesn’t these days?) you’ll find it incredibly useful. By creating simple rules that highlight just the data you are interested in, you can spot key information very quickly. To help get you started, and to give you some inspiration, here are some cool ways that you can use Excel conditional formatting to help you understand data faster.

Highlight duplicate or unique values

One of the handy ways you can use conditional formatting is to quickly highlight duplicate or unique values. Excel contains built-in rules to make both of these tasks easy. For example, suppose you have this table of zip codes, and you want to highlight those zip codes that appear more than once (i.e. duplicates)? With over 160 zip codes in the list, it’s almost impossible for the human eye to spot duplicate codes.

But using Conditional Formatting, you can just select the table and tell Excel to highlight duplicates using a built-in conditional formatting rule for duplicates:

With just a few clicks, here is the result:

Alternately, suppose you have this table of names and you need to find only those that appear once (i.e. unique values)?

Good luck finding names that appear only once with just your eyes! However, using a built-in conditional formatting rule, can can find all unique names in less than 10 seconds:

Flipping the problem yet again, what if you wanted to find all names that appear at least 5 times? By creating a rule based on a formula:

You can easily highlight names that appear at least 5 times:

The formula I’m using, with a named range “names” for all names, is this:

Highlight top or bottom values

Suppose you have a the following report, which shows monthly sales totals for the salespeople in your company:

It’s nice to have all the information in one place, but you’d like to quickly see the 5 top and 5 bottom sales numbers, so you know where to focus your attention. By using two built-in conditional formatting rules:

You can flag the top 5 values in green, and the bottom 5 values in red:

Highlighting values based on a variable input

Although Excel contains a large number of Conditional Formatting presets, the real power of Conditional Formatting comes from using formulas. Formulas allow you to create more powerful and flexible rules. For example, suppose you want to explore a data set and highlight values above a certain value, in this case, 800?

By creating an input cell and referring to that input cell in a formula, you can make the threshold a variable.

Here the rule highlights all values greater than 800:

Here we’ve changed the input to 900, highlighting fewer values:

By making the rule variable, you create a model that let’s you interactively explore the data. This is a great way to add some professional polish to a worksheet, because people love things that respond instantly to their actions.

Highlight entire rows based on values in a column

There are many situations where you may want to highlight an entire row based on a value that appears in one column. To do this with conditional formatting, you’ll need to use a formula and then lock the column reference as needed. For example, let’s say you want to highlight orders in this set of data that are over $100:

The formula locks the column reference to test only values in column E:

The result:

Highlight rows based on an input cell

Building on the previous examples, here we are highlighting rows based on the value in an input cell named “owner”.

Using the same basic idea in the last example, you can actually build a search box using conditional formatting that searches multiple columns at the same time. This is a nice alternative to filtering, because no data is hidden. Video: How to build a search box with conditional formatting

Dave Bruns

Hi - I’m Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.

Cool things you can do with conditional formatting - 39Cool things you can do with conditional formatting - 69Cool things you can do with conditional formatting - 59Cool things you can do with conditional formatting - 36