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.
By the end of this module, you should be able to:
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:
Your job is to correct these problems using Excel.
Study the table below. It contains customer records that need cleaning.
| Customer ID | Customer Name | Location | 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 |
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.
Formula:
=TRIM(B2)
This formula removes unnecessary spaces from the text in cell B2.
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 |
Email addresses should follow a consistent format. We can use the LOWER function to convert all letters to lowercase.
Formula:
=LOWER(D2)
Example:
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.
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.
Look at customer ID 104. The phone number is missing.
There are different ways to handle missing information:
Do not invent phone numbers or other customer information.
After cleaning the spreadsheet, review the records carefully.
Your final dataset should have:
After completing the cleaning process:
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.
Create a spreadsheet containing at least 20 customer records.
Your spreadsheet must include:
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.
Answer the following questions to test your understanding.
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.
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!
CRMNuggets โ Learn. Practice. Get Certified.