Welcome to Module 2! In this module, you will learn how to identify duplicate information in Microsoft Excel and remove unnecessary repeated records. You will also learn how to use Conditional Formatting to highlight duplicates and Excel's Remove Duplicates tool to clean your datasets.
By the end of this module, you should be able to identify repeated names, phone numbers, email addresses, and other information in a spreadsheet.
A duplicate record occurs when the same information appears more than once in a dataset.
Imagine you manage a school database containing information about students. Each student should normally appear once in the registration list. However, because of an entry mistake, the same student may be registered twice.
Consider this example:
| Student ID | Student Name | Class | Age |
|---|---|---|---|
| ST001 | David James | JSS 2 | 13 |
| ST002 | Mary John | JSS 1 | 12 |
| ST001 | David James | JSS 2 | 13 |
| ST003 | Peter Brown | JSS 3 | 14 |
Notice that David James appears twice with the same student ID and other details. This is a duplicate record.
Microsoft Excel provides different ways to identify duplicate values. One simple method is to inspect the information manually, but this becomes difficult when working with hundreds or thousands of records.
Excel provides a faster method called Conditional Formatting.
Conditional Formatting is an Excel feature that automatically changes the appearance of cells when they meet specific conditions.
For example, you can use it to highlight repeated names in red so that they become easy to identify.
Follow these practical steps:
| Student Name |
|---|
| David James |
| Mary John |
| Peter Brown |
| David James |
| Grace Bello |
Now follow these steps:
Excel will automatically highlight the repeated name.
Important: Conditional Formatting only highlights duplicate values. It does not delete them.
After identifying duplicate records, you may decide to remove them. Excel provides a built-in feature called Remove Duplicates.
Imagine you have a customer registration list and some customers appear more than once.
Follow these steps to remove duplicates:
Excel normally keeps the first occurrence of a duplicate record and removes subsequent matching records based on the columns you select.
When using Remove Duplicates, Excel allows you to select which columns should be checked.
For example, if you select only the Student ID column, Excel will identify records with repeated student IDs, even if other details are different.
If you select all columns, Excel will remove records only when all selected column values match.
Always select the appropriate columns based on what makes a record unique in your dataset.
Removing duplicates is not the end of the cleaning process. You must check your dataset to ensure that important information has not been removed accidentally.
Here are some useful checks:
Professional Tip: Always create a backup copy of your original dataset before removing duplicates. This allows you to recover information if you make a mistake.
You have been given a customer registration list for a Nigerian business. Some customers have accidentally been registered more than once.
| Customer ID | Customer Name | City | Phone Number |
|---|---|---|---|
| C001 | John Ade | Ibadan | 08011111111 |
| C002 | Mary Bello | Lagos | 08022222222 |
| C003 | Peter James | Abuja | 08033333333 |
| C001 | John Ade | Ibadan | 08011111111 |
| C004 | Grace John | Port Harcourt | 08044444444 |
| C002 | Mary Bello | Lagos | 08022222222 |
In this module, you have learned:
Test your understanding of this module.
You have successfully completed Module 2. You now understand how to identify and remove duplicate records using Microsoft Excel.
In Module 3, you will learn how to handle missing and incorrect data, fill empty cells appropriately, and correct mistakes in your datasets.