You’ve heard of data visualization, right? It’s the art and science of presenting data in a way so that people can “see” important information at a glance . Data visualization makes complex data more accessible and useful. In a world overflowing with data, it’s more valuable than ever.

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 highlight duplicate or unique values quickly. 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 duplicate zip codes? With over 160 zip codes in the list, it’s almost impossible for the human eye to spot duplicate codes.

165 zip codes with some duplicates - 1

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:

Built-in conditional formatting rule for flagging duplicates - 2

With just a few clicks, here is the result:

165 zip codes with duplicates clearly highlighted - 3

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

Lots of names...which ones appear just once? - 4

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

Built-in conditional formatting rule for flagging unique values - 5 Unique names clearly highlighted - 6

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:

CF formula to count duplicates that appear at least 5 times - 7

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

Names that appear at least 5 times clearly highlighted - 8

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

=COUNTIF(names,B2)>4

Highlight top or bottom values

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

Sales data by month and salesperson - 9

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:

Top 5 and bottom 5 CF rules - 10

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

Top 5 values in green, bottom 5 values in red - 11

Want to learn more? See our video course on conditional formatting .

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?

Ready to highlight values greater than the input cell - 12

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

<img loading=“lazy” src=“https://exceljet.net/sites/default/files/images/articles/inline/variable2.png" onerror=“this.onerror=null;this.src=‘https://blogger.googleusercontent.com/img/a/AVvXsEhe7F7TRXHtjiKvHb5vS7DmnxvpHiDyoYyYvm1nHB3Qp2_w3BnM6A2eq4v7FYxCC9bfZt3a9vIMtAYEKUiaDQbHMg-ViyGmRIj39MLp0bGFfgfYw1Dc9q_H-T0wiTm3l0Uq42dETrN9eC8aGJ9_IORZsxST1AcLR7np1koOfcc7tnHa4S8Mwz_xD9d0=s16000';" alt=“CF formula compares values to named range “input” - 13”>

Here the rule highlights all values greater than 800:

All values greater than the input (800) highlighted - 14

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

Only values greater than 900 highlighted - 15

By making the rule variable, you create a model that lets 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:

Order data...which orders are over 00? - 16

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

CF formula to test only values in column E - 17

The result:

Rows with orders over 00 in value are highlighted - 18

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”.

CF rule to highlight rows based on owner - 19 Tasks owned by Sue are highlighted - 20

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

One thing you might have noticed about pivot tables is that almost all the examples you see are based on sales data. This makes sense in a way: sales is where the money is, and companies always have sales data in one form or another. However, pivot tables can handle a lot more than just sales. Any time you need to work with data, you should be thinking about pivot tables.

To illustrate how flexible and useful pivot tables are, here are five interesting examples you probably haven’t seen before. I’m not going to explain how to create each pivot table in this article (I’ll leave that for another day). I just want to give you some ideas about how you can use pivot tables with your own data.

Time tracking

Imagine you need to log time for different clients and projects and periodically report your time by client and project. There are of course many applications dedicated to time-tracking, but you can easily create your own flexible system using Pivot Tables.

At a minimum, what you need to record is a date, the time you spent, the client name, and the project. So, after you enter the data consistently, you might end up with source data that looks something like this:

Simple time tracking data by client and project - 21

Note that there are no blank lines - you just need to enter the data as you go.

Now the summaries. First, you might want an overview of your time by week. Here we are using the week numbers provided by Excel’s WEEKNUM function (see column C of the source data):

A summary of time by week number - 22

You might also want to arrange the pivot table to show a more traditional timesheet layout, with days of the week across the top:

A summary of time logged for one week - 23

Each time you filter on a different week number, your pivot table will build a new time sheet that displays the dates that belong to the week. Note that by adding a column for Name to the data, you could track and report time for multiple people. You could also add a rate column to the data and use a pivot table to summarize the cost or billing rate of time logged.

We also have video training for Pivot Tables

User activity in a web portal

Raw server data showing user account details - 24

Lots of user data. Emails are fictitious, of course!

Your boss wants to know some basic information: how many users are currently active? How many users are being created each month? What partners have the most user accounts, and so on? Also, she’s meeting the CEO at lunch. Can you get that info to her in the next hour? Gulp.

Before you panic and break out heavy-duty functions like COUNTIF, SUMIF, INDEX, and so on, take a deep breath. This kind of data is perfect for pivot tables, which will crunch through it quickly and still leave you time for a cup of coffee. First, active vs. inactive users. This kind of summary is a piece of cake with pivot tables, even with huge data sets:

A simple summary of all users by status - 25

Interesting. Some users are “suspended”. Who knew?

Next, the top 10 partners by number of active users. This is easily done by using the pivot tables built-in “Top 10” value filter.

The top 10 partners by number of active users - 26

And finally, by grouping user creation dates by year and month, you can easily show the complete history of user creation:

The number of users created by year and month - 27

There must have been an import back in December 2009 .

Class list

In this example, you’re helping to coordinate sign-ups for a class that’s offered on Mondays, Wednesdays, and Fridays. Each day during the sign-up period, you get a set of data that looks like this:

This data shows which students have registered for which class - 28

Note the data is formatted as a Table; important for updating later

Your job is to send a simple report to the instructor at the start of each day that shows current registrations. There’s not a lot of data here, but if you create the report manually, you’ll need to use some combination of filtering, sorting, copying, and pasting, and you’ll have to repeat the process each day.

Once again, this is an easy job for a pivot table. Just build a simple pivot table that summarizes by class day:

A summary of current class registrations - 29

35 people have registered so far. Only 8 for the Friday class.

By adding names, you can quickly create a full class list.

Pivot table: Current class registrations with student names - 30

By moving the Class field into the column labels area, you can create a report that keeps all students together in alphabetical order.

Pivot table: Current class registrations all students in alphabetical order - 31

One Pivot Table quirk is a tendency to want to count everything .

Now that you’ve got a report layout you like, how do you update the report each day? Simple. Just paste in the latest data, (overwriting the existing data) and refresh the pivot table(s). This should take less than a minute, with no busy work.

Instrument measurements

You’ve got measurement data from a system that records the temperature, relative humidity, and dew point in a greenhouse every two minutes. The data looks like this:

Raw data: instrument readings taken every two minutes - 32

What you need is a quick breakdown that shows the average reading per hour. Yes, you could create formulas to do this, but it will be a lot of work. By flowing the data through a pivot table, you can simply add each measurement as a value, and change the display to show average instead of sum. This will give you a tidy summary that shows the average of each reading by hour:

Pivot table: instrument readings averaged by hour - 33

Average readings per hour in less than 5 minutes

Email signups

You’re working with a client who is tracking email signups on their website. The client is planning a new marketing campaign and wants to know which day of the week is best for signups, based on the data they have so far. The day of the week is a little tricky since it doesn’t appear anywhere in the data, but you can easily add it to the data using the WEEKDAY function . Your data now looks like this:

Raw data: email signups with day of week added with a formula - 34

And the initial summary looks like this:

Pivot table: email signups by year, month, and day of week - 35

Every email sign-up to date in one tidy little pivot table

Looking at the data, you realize it would be more useful to show the total signups as a percentage rather than an absolute number. By setting the email count to display a percentage of row, the pivot table will show a breakdown by day of the week. In addition, you add conditional formatting to make the higher and lower percentages stand out. Below, we’ve used green for higher percentages, and blue for lower percentages.

Pivot table: email signups by year, month, and day of week by percent, w/ conditional formatting - 36

Now it’s clear: most sign-ups are on weekdays. Tuesdays and Wednesdays are especially good days.

Summary

Hopefully, this short tour of “unconventional” Pivot Tables has inspired you to try some new pivot tables on your data. You don’t need to have a huge set of data to see the benefit of using a pivot table. Pivot tables will save you time and energy whenever you need to create a report based on data, especially a report you’ll need to update again in the future. Here are a few more helpful links and resources:

  • Pivot table example: Instrument readings (video)
  • Pivot table example: movie data (video)
  • Pivot table example: voting results (video)
  • Core Pivot (video course)