Excel Data Cleaning is a significant skill that all Business and Data Analysts must possess. In the current era of data analytics, everyone expects the accuracy and quality of data to be of the highest standards. A major part of Excel Data Cleaning involves the elimination of blank spaces, incorrect, and outdated information. 

Some simple steps can easily do the procedure of Data Cleaning in Excel by using Excel Power Query. This tutorial will help you learn about some of the fundamental and straightforward practices for cleaning data in excel.

Become The Highest-Paid Business Analysis Expert

With Business Analyst Master's ProgramExplore Now
Become The Highest-Paid Business Analysis Expert

How to Clean Data in Excel?

Remove Duplicates

One of the easiest ways of cleaning data in Excel is to remove duplicates. There is a considerable probability that it might unintentionally duplicate the data without the user's knowledge. In such scenarios, you can eliminate duplicate values.

Here, you will consider a simple student dataset that has duplicate values. You will use Excel's built-in function to remove duplicates, as shown below.

The original dataset has two rows as duplicates. To eliminate the duplicate data, you need to select the data option in the toolbar, and in the Data Tools ribbon, select the "Remove Duplicates" option. This will provide you with the new dialogue box, as shown below.

Excel-Data-Cleaning-Original-data

Here, you need to select the columns you want to compare for duplication. Another critical step is to check in the headers' option as you included the column names in the data set. Excel will automatically scan it by default.

Excel-Data-Cleaning-data-Remove-Duplicates-option.

Next, you must compare all columns, so go ahead and check all the columns as shown below.

Remove-Duplicates-parameters

Select Ok, and Excel performs the operations required and provides you with the data set after filtering out the duplicate data, as shown below.

Excel-Data-Cleaning-clean-data.

In the next part of Excel Data Cleaning, you will understand data parsing from text to column.

Become a Data Scientist with Hands-on Training!

Data Scientist Master’s ProgramExplore Program
Become a Data Scientist with Hands-on Training!

Data Parsing from Text to Column

Sometimes, there is a possibility that one cell might have multiple data elements separated by a data delimiter like a comma. For example, consider that there is one column that stores address information.

The address column stores the street, district, state, and nation. Commas separate all the data elements. You must now divide the street, district, state, and nation from the address columns into separate columns. 

Excel's inbuilt functionality called "text to column" can achieve this. Now,  try an example for the same.

Here, you have the car manufacturer and the car model name separated by space as the data delimiter. The tabular data is shown below.

Excel-Data-Cleaning-Text-to-Column-Original

Select the data, click on the data option in the toolbar and then select "Text to Column", as shown below.

Data-Cleaning-Text-to-Column-Original-option.

A new window will pop up on the screen, as shown below. Select the delimiter option and click on "next". In the next window, you will see another dialogue box.

Cleaning-Text-to-Column-Original-delimited.

In the new page dialogue box, you will see an option to select the type of delimiter your data has. In this case, you need to select the "space" as a delimiter, as shown below.

Data-Cleaning-Text-to-Column-Original-space.

In the last dialogue box, select the column data format as "General", and the next step should be to click on the finish, as shown in the following image.

Data-Cleaning-Text-to-Column-Original-general.

The final resultant data will be available, as shown below.

Excel-Data-Cleaning-Text-to-Column-final.

Followed by Data parsing, in this tutorial about Excel Data Cleaning, you will learn how to delete all formatting.

Become The Highest-Paid Business Analysis Expert

With Business Analyst Master's ProgramExplore Now
Become The Highest-Paid Business Analysis Expert

Delete All Formatting

Another good way of cleaning data in excel is to ensure even formatting or, in some cases, even removing the formatting. The formatting can be as simple as coloring your cells and aligning the text in the cells. It can be a logical condition applied to your cells using Excel's conditional formatting option from the home tab. 

However, in situations where you wish to remove the formatting, you can do it in the following ways. First, try to eliminate the regular formatting. In the previous example, you took the case of car manufacturers and car models data tables with heading cells colored in blue, and the text was center aligned.

Cleaning-Clear-Formats-Data-Orginal.

Now, use the clear option to remove the formats. Select the tabular data as shown below. Select the "home" option and go to the "editing" group in the ribbon. The "clear" option is available in the group, as shown below.

Excel-Data-Cleaning-Clear-Formats-Editing.

Select the "clear" option and click on the "clear formats" option. This will clear all the formats applied on the table. 

Excel-Data-Cleaning-Clear-Formats-clear-formats.

The final data table will appear as shown below.

Excel-Data-Cleaning-Clear-Formats-final-data

Now, you must learn how to eliminate conditional formatting for cleaning data in Excel. This time, consider a different sheet. You must use the student's details sheet, which includes conditional formatting in Excel.

To eliminate conditional formatting in Excel, select the column or table with conditional formatting as shown below. 

Excel-Data-Cleaning-Clear-conditional-Formats-original.

Then navigate to "Home", and select conditional formatting.

Excel-Data-Cleaning-Clear-conditional-Formats-Styles.

Then in the dialogue box, select the clear rules option. Here, you can either choose to eliminate rules only in the selected cells or eliminate rules from the entire column.

Data-Cleaning-Clear-conditional-Formats-clear

After you eliminate all conditions, the resultant table would look as follows.

Excel-Data-Cleaning-Clear-conditional-Formats-final.

You can always use a shortcut method to eliminate the conditional formatting in Excel. It is by pressing the sequential combination of the following keys as follows.

ATL + E + A + F

Next, in this Excel Data Cleaning tutorial, you will learn about Spell Check.

Become The Highest-Paid Business Analysis Expert

With Business Analyst Master's ProgramExplore Now
Become The Highest-Paid Business Analysis Expert

Spell Check

The feature of checking the spelling is available in MS Excel as well. To check the spellings of the words used in the spreadsheet, you can use the following method. Select the data cell, column, or sheet where you want to perform the spell check.

Excel-Data-Cleaning-spell-check-original

Now, go to the review option as shown below.

Excel-Data-Cleaning-spell-check-Review-Spelling

Microsoft Excel will automatically show the correct spelling in the dialogue box, as shown below. You can replace the words as per the requirement as shown below.

Excel-Data-Cleaning-spell-check-dialog-box.

The final reviewed data table will like the one below.

Excel-Data-Cleaning-spell-check-final

In the next segment of this Excel Data Cleaning tutorial, you will learn about changing the text case.

Change Case - Lower/Upper/Proper

You can manipulate the data in the Excel worksheet in terms of character cases as per the requirements. To apply case changes, you can follow the following steps.

Select the table or columns that need the case to be changed, as shown below.

Excel-Data-cleaning-Case-original

Select the cell next to the column and apply the formula as per the requirement, as shown below.

Excel-Data-cleaning-Case-formula.

=UPPER(cell address) - for Upper case conversion 

=LOWER(cell address) - for Lower case conversion 

=PROPER(cell address) - for Sentence case conversion 

Now, you can drag the cell can to the last row, as shown below.

Excel-Data-cleaning-Case-formula-drag

The final data table will appear as shown below.

Excel-Data-cleaning-Case-final.

Now that you learned spell check, in the upcoming section of Excel Data Cleaning, you will learn how to Highlight Errors in an Excel spreadsheet.

Become The Highest-Paid Business Analysis Expert

With Business Analyst Master's ProgramExplore Now
Become The Highest-Paid Business Analysis Expert

Highlight Errors

Highlighting errors in an Excel spreadsheet is helpful to find or sort out the erroneous data with ease. You can do error Highlighting with the help of conditional formatting in Excel. Here, you must consider the student data set as an example.

Imagine that you are interviewing all the students. There are eligibility criteria. You can shortlist the students if they have 60% aggregate marks. Now, apply conditional formatting and sort out the students who are eligible and not eligible.

First, select the aggregate/percentage column as shown below.

Excel-Data-Cleaning-Error-Highlighting-data

Select "Home", and in the Styles group, select conditional formatting, as shown below.

Excel-Data-Cleaning-Error-Highlighting-styles-conditon-formatting.

In the conditional formatting option, select the highlight option, and in the next drop-down, select the less than an option as shown below.

Data-Cleaning-Error-Highlighting-conditon

In the settings window, you will find a slot to provide the aggregate as "60" percent and press ok.

Excel-Data-Cleaning-Error-Highlighting-60

Excel will now select and highlight cells with an aggregate of less than 60 percent. In the next part of Excel Data Cleaning, you will understand the trim function.

Strategies for Leadership Excellence

Free Webinar | 6 Dec, Wednesday | 7 PM ISTREGISTER NOW!
Strategies for Leadership Excellence

TRIM Function

The TRIM function is used to eliminate excess spaces and tab spaces in the Excel worksheet cells. The excessive blank spaces and tab spaces make the data hard to understand. Using the "TRIM" function can eliminate these excessive blank spaces.

Select the data cells with excessive blank spaces and tab spaces. Now, select a new cell adjacent to the first cell.

Apply the TRIM() function and drag the cell as shown below.

Excel-Data-Cleaning-Trim-original.

It shows the final data after the elimination of the excess space as follows.

Excel-Data-Cleaning-Trim-final

Next, in the Excel Data Cleaning tutorial, you will look at the Find and Replace function.

Find and Replace

Find and Replace will help you fetch and replace data in the entire worksheet to help in organizing and cleaning data in Excel. Consider the employee data example.

Here, try to fetch an employee with the name Joe and try to rename or replace his name with John, after changing his first name.

Data-Cleaning-Find-and-Replace-Original.

The "find and replace" option is present in the home ribbon in the editing group, as shown below.

Find-and-replace

Click on the option, and a new window will open, where you can enter the data to be fetched and enter the text you need to replace, as shown below.

Excel-Data-Cleaning-Find-and-Replace-dialog-box

Click on "replace all", and it will replace the text. The final dataset will be as shown below.

Excel-Data-Cleaning-Find-and-Replace-final

With that, you have come to an end of the "Excel Data Cleaning" tutorial.

Become job-ready with a globally recognized Business Analyst Certification Course. Sign-up today and enrich your career.

Conclusion

"Userform in Excel" can be your next stop. The user form in excel is an amazing customizable graphical user interface that you can design and develop using the Excel VBA. The Userform in Excel can help you with data insertion, deletion, and data manipulation with ease.

Curious to learn more about Microsoft Excel and receiving online training and certification in Business Analytics?

Then check out the Business Analytics certification course offered by Simplilearn, which is career-oriented training and certification. This training will guide you with the fundamental concepts of data analytics and statistics that will enable you to devise insights from data to present your findings using executive-level dashboards and help you come up with data-driven decision-making.

Got any queries for us? Please write to us in the comments section of this “Excel Data Cleaning” tutorial, and our team of experts will be happy to resolve all your questions.