Locked lesson.
About this lesson
Learn how to compare two lists and highlight differences using formatting.
Exercise files
Download this lesson’s related exercise files.
04-01-Compare Lists with Formatting-Start.xlsx11 KB 04-01-Compare Lists with Formatting-Complete.xlsx
11.2 KB 4.01 compare-lists-with-formatting - Exercise.docx
49.6 KB Exercise - Compare Lists with Formatting.xlsx
11.2 KB 4.01 compare-lists-with-formatting - Exercise solution.docx
116.9 KB Exercise Solution - Compare Lists with Formatting.xlsx
11.3 KB
Quick reference
Compare Lists with Formatting
Learn how to compare two lists and highlight differences using formatting.
When to use
We use formatting to compare lists whenever we want to highlight differences between two or more sets of data.
Instructions
Comparing lists in Excel is an invaluable skill in Excel. We compare lists to find out the differences or similarities between two sets of data.
There are several ways we can compare lists and one of the most popular methods is to use formatting to highlight differences, duplicates, or unique values.
Compare Lists - Row Differences
In the first example, we are going to compare two lists of employee names to find out who attended session 1 of a training course but didn't attend session 2. We can do this by highlighting row differences.
- Select the first list of names.
- Hold down CTRL and select the second list of names.
- Press CTRL+G to open the GoTo dialog box.
- Click Special.
- In the Select area, choose Row differences.
- Click OK.
The differences between the two lists will be selected.
We can now apply a background fill to the selected cells to permanently highlight them.
- From the Home tab, in the Font group, click the drop-down next to Fill Color.
- Choose a color from the palette.
Compare Lists - Highlight Duplicates/Unique Entries
We can perform a similar comparison using Conditional Formatting.
- Select the first list.
- Hold down CTRL and select the second list.
- From the Home tab, in the Styles group, click Conditional Formatting.
- Hover the mouse over Highlight Cells Rules.
- Choose Duplicate Values from the menu.
By default, Excel will highlight the duplicate values in both lists using the fill color selected.
To see the differences as opposed to the duplicates we need to change our selection.
- From the Duplicate Values dialog box, click the drop-down next to Duplicate.
- Select Unique.
- Click OK.
Hints & tips
- We can choose our own custom format when highlighting cells if we need to stick to company colors/branding.
Lesson notes are only available for subscribers.