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

Module Eight

๐Ÿ“– 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.
9
Module 8: Final Data Cleaning Project in Excel

Module Eight: Final Data Cleaning Project in Excel

Introduction

Welcome to Module Eight! You have learned several ways to clean data using Microsoft Excel. Now it is time to put everything you have learned into practice.

In this module, you will work on a simple business project. Your task is to clean a messy customer records spreadsheet and make it ready for analysis.

Learning Objectives

By the end of this module, you should be able to:

  • Identify errors in a spreadsheet.
  • Find and remove duplicate records.
  • Correct spelling and formatting problems.
  • Remove unnecessary spaces.
  • Handle missing information.
  • Use Excel formulas to clean data.
  • Check and validate cleaned data.
  • Save a properly cleaned Excel workbook.

1. Understanding the Project

Imagine that you work for a company that sells computers and mobile phones in Nigeria.

The company has collected customer information, but some records contain mistakes.

For example:

  • Some customer names have unnecessary spaces.
  • Some customers appear more than once.
  • Some phone numbers are missing.
  • Some email addresses contain capital letters.
  • Some locations are written differently.

Your job is to correct these problems using Excel.

2. Sample Messy Customer Dataset

Study the table below. It contains customer records that need cleaning.

Customer ID Customer Name Location Email Phone Number
101 John Ade ibadan JOHN@GMAIL.COM 08012345678
102 Mary James LAGOS mary@gmail.com 08023456789
103 John Ade Ibadan john@gmail.com 08012345678
104 Peter David Abuja peter@gmail.com
105 Sarah James lagos SARAH@GMAIL.COM 08034567890

3. Step One: Remove Unnecessary Spaces

Look at the customer name John Ade in the first row. There are extra spaces before and after the name.

Excel provides a formula called TRIM to remove unnecessary spaces.

How to use TRIM

  1. Click an empty cell beside the customer name.
  2. Enter the formula below.
  3. Press Enter.
  4. Drag the formula down to clean the other names.

Formula:

=TRIM(B2)

This formula removes unnecessary spaces from the text in cell B2.

4. Step Two: Standardise Capital Letters

Some locations are written in lowercase, while others are written in uppercase.

We can use the PROPER function to make the first letter of each word uppercase.

Formula:

=PROPER(C2)

For example:

Before Cleaning After Cleaning
ibadan Ibadan
LAGOS Lagos
abuja Abuja

5. Step Three: Standardise Email Addresses

Email addresses should follow a consistent format. We can use the LOWER function to convert all letters to lowercase.

Formula:

=LOWER(D2)

Example:

  • JOHN@GMAIL.COM becomes john@gmail.com.
  • SARAH@GMAIL.COM becomes sarah@gmail.com.

6. Step Four: Find and Remove Duplicate Records

Duplicate records occur when the same information appears more than once.

In our dataset, John Ade appears twice with the same customer ID information and phone number.

How to remove duplicates

  1. Select your customer data.
  2. Click the Data tab in Excel.
  3. Select Remove Duplicates.
  4. Choose the columns you want Excel to compare.
  5. Click OK.

Important: Choose the correct columns before removing duplicates. Two customers may share a name, so checking Customer ID or other identifying information can prevent accidental deletion of valid records.

7. Step Five: Handle Missing Information

Look at customer ID 104. The phone number is missing.

There are different ways to handle missing information:

  • Contact the customer to request the missing information.
  • Use a clear label such as Not Provided.
  • Leave the cell blank if the information is not available.

Do not invent phone numbers or other customer information.

8. Step Six: Check the Cleaned Dataset

After cleaning the spreadsheet, review the records carefully.

Your final dataset should have:

  • Consistent customer names.
  • Properly formatted locations.
  • Email addresses in lowercase.
  • No unintended duplicate records.
  • Missing information clearly identified.
  • Consistent formatting across all rows.

9. Step Seven: Save Your Cleaned Dataset

After completing the cleaning process:

  1. Click File.
  2. Select Save As.
  3. Give your workbook a meaningful name.
  4. For example, enter Cleaned_Customer_Records.xlsx.
  5. Click Save.

Always keep an original copy of your raw dataset before making changes. This allows you to return to the original information if something goes wrong.

10. Practical Assignment

Your Challenge: Clean a Customer Database

Create a spreadsheet containing at least 20 customer records.

Your spreadsheet must include:

  • Customer ID
  • Customer Name
  • Location
  • Email Address
  • Phone Number

Introduce some errors into your sample dataset, then use the techniques learned in this course to correct them.

Submission: Save your completed workbook as Excel_Customer_Data_Cleaning_Project.xlsx.

11. Knowledge Check

Answer the following questions to test your understanding.

  1. Which Excel function removes unnecessary spaces?
  2. Which function converts text into lowercase?
  3. Which Excel feature helps remove duplicate records?
  4. What should you do when a customer's phone number is missing?
  5. Why should you keep an original copy of your dataset?
  6. Which function changes text into proper case?
  7. Why is it important to check data after cleaning?

12. Module Summary

Congratulations! You have completed the final module of Data Cleaning in Excel.

Throughout this course, you have learned how to identify and correct errors, remove duplicates, handle missing values, standardise text, and prepare spreadsheets for analysis.

Remember, good data produces better information. Before analysing any spreadsheet, always make sure the data is accurate, consistent, and properly organised.

Final Message

You are now ready to apply basic data cleaning techniques to real-world business, school, and personal projects.

Keep practising with different datasets. The more you practise, the better you become!

End of Course

CRMNuggets โ€“ Learn. Practice. Get Certified.

๐Ÿ† 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.
โ†’