Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
โ† Data Cleaning in Excel ยท Lesson 3 of 9

Module Two

๐Ÿ“– Every lesson in this course is free to read right here, no account needed. Create a free account to track your progress, take the exam, and earn your certificate.
3

Module 2: Identifying and Removing Duplicate Data in Excel

Module Overview

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.

Lesson 1: Understanding Duplicate Records

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.

Why Are Duplicate Records a Problem?

  • They can make the total number of records incorrect.
  • They can cause inaccurate business reports.
  • They can lead to repeated customer communication.
  • They can affect examination and school registration records.
  • They can produce misleading results during data analysis.

Lesson 2: Identifying Duplicate Values in Excel

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.

What Is 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.

Lesson 3: Using Conditional Formatting to Highlight Duplicates

Follow these practical steps:

  1. Open Microsoft Excel.
  2. Create a new workbook.
  3. Enter the following sample student names into cells A1 to A6.
Student Name
David James
Mary John
Peter Brown
David James
Grace Bello

Now follow these steps:

  1. Select the cells containing the student names, A2:A6.
  2. Click the Home tab on the Excel Ribbon.
  3. Click Conditional Formatting.
  4. Select Highlight Cells Rules.
  5. Click Duplicate Values.
  6. Choose a highlighting colour, such as Light Red Fill.
  7. Click OK.

Excel will automatically highlight the repeated name.

Important: Conditional Formatting only highlights duplicate values. It does not delete them.

Lesson 4: Removing Duplicates with Excel Tools

After identifying duplicate records, you may decide to remove them. Excel provides a built-in feature called Remove Duplicates.

Practical Example

Imagine you have a customer registration list and some customers appear more than once.

Follow these steps to remove duplicates:

  1. Open your Excel worksheet.
  2. Enter your customer records into a table with column headings.
  3. Select any cell inside the dataset.
  4. Click the Data tab.
  5. Locate and click Remove Duplicates.
  6. Ensure the correct columns are selected.
  7. Tick My data has headers if your dataset has headings.
  8. Click OK.
  9. Excel will display a message showing how many duplicate values were removed and how many unique values remain.

Excel normally keeps the first occurrence of a duplicate record and removes subsequent matching records based on the columns you select.

Understanding Column Selection

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.

Lesson 5: Checking Data After Removing Duplicates

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:

  • Check the number of records remaining.
  • Confirm that important customer or student information is still available.
  • Check whether duplicate records still exist.
  • Compare the cleaned dataset with your original data.
  • Confirm that you selected the correct columns before removing duplicates.

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.

Practical Exercise: Clean a Customer Registration Dataset

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

Your Tasks

  1. Enter the dataset into Microsoft Excel.
  2. Use Conditional Formatting to highlight duplicate Customer IDs.
  3. Use Remove Duplicates to remove repeated customer records.
  4. Count the number of unique customers remaining.
  5. Save your cleaned workbook as Customer_Records_Cleaned.xlsx.

Module 2 Summary

In this module, you have learned:

  • What duplicate records mean.
  • Why duplicate data affects data quality.
  • How to identify duplicate values in Excel.
  • How to use Conditional Formatting to highlight duplicates.
  • How to remove duplicate records using Excel tools.
  • How to verify your dataset after removing duplicates.

Module 2 Assessment

Test your understanding of this module.

  1. What is a duplicate record?
  2. Why can duplicate records affect data analysis?
  3. What is Conditional Formatting in Excel?
  4. Which Excel tab contains the Remove Duplicates feature?
  5. Does Conditional Formatting automatically delete duplicate records?
  6. What happens when you select only one column while removing duplicates?
  7. Why should you back up your original dataset before removing duplicates?
  8. What should you check after removing duplicate records?

Congratulations!

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.

๐Ÿ† Get Certified

๐Ÿ”’

Earn this certificate

Every lesson is already free to read. Sign up, finish the lessons, pass the exam (โ‚ฆ2,000 or 20,000 coins), and get a verified certificate with your name on it.

๐ŸŽ“ Sign Up to Get Certified
๐Ÿ› ๏ธ Practice Tools
Hands-on simulators & labs - subscription required.
โ†’
๐ŸŽฏ Internship Tasks
Real-world tasks to build your portfolio - unlock them with a subscription.
โ†’