Computer >> Computer tutorials >  >> Software >> Office

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

Looking for ways for automated data cleaning in Excel? Then, this is the right place for you. Sometimes, the data we get is not clean and ready for analysis. In those cases, we need to clean and prepare data by following some steps. Here, you will find 10 different step-by-step explained ways to get knowledge about automated data cleaning in Excel.

10 Ways for Automated Data Cleaning in Excel

Here, we have a disorganized dataset containing Name, Date of Birth, Profession, and Salary of some people. Now, we will show you ways for automated data cleaning in Excel using this dataset.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

1. Use of Power Query Feature to Clean Data in Excel

In the first method, we will use the Power Query Feature for automated data cleaning. Follow the steps to do it on your own dataset.

Steps:

  • Firstly, select Cell range B4:D10.
  • Then, go to the Data tab >> click on From Table/Range.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • Now, the Create Table box will open and the dataset has already been selected.
  • After that, press OK.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • Next, the Power Query Editor will appear.
  • Then, click on Use First Row as Headers to set the header.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • Afterward, to change the text case, select the Name column.
  • Now, go to the Transform tab >> click on Text Column >> click on Format >> select Capitalize Each Word.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • Next, click on the button below to remove rows with empty cells.
  • After that, click on Remove Empty.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • Then, click on Close & Load >> select Close & Load To.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • Now, the Import Data box will open.
  • Next, select the New worksheet option.
  • After that, click on OK.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • Thus, you can clean data automatically using Power Query Editor.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

2. Applying Text to Columns Feature in Excel

Here, in the dataset, we have both the first and last name of a person in the same column titled as Name. We can separate the data into two different columns using the Text to Columns feature for automated data cleaning in Excel.

Here are the steps.

Steps:

  • In the beginning, select Cell range B5:B10.
  • Then, go to the Data tab >> click on Data Tools >> select Text to Columns.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • After that, click on Next.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • Next, select Semicolon, Comma, Space and @ in Others as Delimiters.
  • Then, click on Next.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • Now, insert Cell C5 as Destination.
  • After that, click on Finish.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • Finally, you can see that the data have been divided into two columns First Name and Last Name.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

3. Use of Flash Fill Feature for Automated Data Cleaning in Excel

Now, you will find a way to use the Flash Fill Feature for automated data cleaning in Excel. Here, we have different unwanted symbols in the dataset. You can remove them by following the steps given below.

Steps:

  • Firstly, insert Jack in the First Name column.
  • After that, go to the Data tab >> click on Data Tools >> click on Flash Fill.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • Now, you will see that all the other symbols have been removed.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

4. Use of SUBSTITUTE Function for Data Cleaning in Excel

Next, we will show you how you can remove unwanted symbols for automated data cleaning in Excel using the SUBSTITUTE function.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

Follow the steps given below to do it on your own.

Steps:

  • In the beginning, select Cell D5.
  • Then, insert the following formula.
=SUBSTITUTE(C5,"@", )

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

Here, in the SUBSTITUTE function, we inserted Cell C5 as text, “@” as old_text and blank (“ “) as new_text.

  • After that, press ENTER and drag down the Fill Handle tool to AutoFill the formula for the rest of the cells.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • Finally, the SUBSTITUTE function has removed the unwanted symbols from column D.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

5. Applying Find & Replace Feature in Excel

In the fifth method, we will clean data using the Find and Replace option in Excel. Here, we can see two values containing “#” and two values containing “@” and “;”. We will replace this value with blank by applying Find and Replace option.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

Steps:

  • First, select Cell range B5:D10.
  • Then, go to the Home tab >> click on Editing >> click on Find & Select >> select Replace.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • Now, the Find and Replace toolbox will open.
  • Next, insert “#” in the Find what box and blank in the Replace with box.
  • After that, click on Replace.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • Then, you will see that “#” has been removed.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • Similarly, you can remove “@” and “;” from the dataset using the Find & Replace Feature.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

6. Using Number Format for Automated Data Cleaning in Excel

Now, you will learn how to change Number Format for automated data cleaning in Excel. Here, some of the values of the Date of Birth are not in Date format. Go through the steps given below to clean data on your own.

Steps:

  • Firstly, select Cell range C5:C10.
  • Then, go to the Home tab >> click on Number Format >> click on the drop-down button.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • After that, select Short Date.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • Thus, you can change the Number Format of the dataset to clean data automatically in Excel.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

7. Using Remove Duplicates Option for Data Cleaning

Now, we will remove the duplicate values by using the Remove Duplicates feature for automated data cleaning in Excel.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

Steps:

  • Firstly, select Cell range B4:D11.
  • Then, go to the Data tab >> click on Data Tools >> select Remove Duplicates.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • Now, the Remove Duplicates dialog box will open.
  • After that, press OK.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • Next, another box containing the information of the duplicates will appear.
  • Then, press OK.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • Finally, the Remove Duplicates feature will remove the duplicate values from the dataset.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

8. Applying Go To Special Feature for Automated Data Cleaning

Now, we will use the Go to Special feature to detect blank cell ways for automated data cleaning in Excel.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

Here are the steps.

Steps:

  • In the beginning, select Cell range B4:D11.
  • Then, go to the Home tab >> click on Editing >> click on Find & Select >> select Go To Special.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • Now, the Go To Special box will appear.
  • After that, select Blanks.
  • Next, click on OK.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • Then, you will see that the blank cells have been selected.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • Now, you can change the format of the selected cells according to your choice.
  • Here, we will go to the Home tab >> click on Fill Color >> select Red as Fill Color.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • Thus, you can detect blank cells to clean data in Excel automatically.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

9. Matching Text in List for Data Cleaning in Excel

You may have some data and you want to check this data against another available list. See the following screenshot of our example. We are going to find out the persons who have resigned from the left side of our example. There is a list on the right side of the resigned numbers.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

The above screenshot shows a simple example. The data is in the range B5:D22. The goal is to identify the rows in the data zone which are appearing in the Resigned Members list, in column F. You can delete these unnecessary rows later.

Steps:

  • Firstly, select Cell D5.
  • Then, insert the following formula.
=IF(COUNTIF($F$5:$F$11,C5),"Resigned","")

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

Here, the COUNTIF function of the formula will return 1 if it (bold part) matches a list value(Cell range F5:F11) with a data value (Cell C5). If this part returns 1 or more, then the IF function will return “Resigned”, otherwise nothing.

  • After that, press ENTER and drag down the Fill Handle tool to AutoFill the formula for the rest of the cells.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

This whole formula will display the word “Resigned” if the “Member Num” in column C is found in the “Resigned Members” list. If the Member number is not found, it returns an empty string.

  • Now, this whole formula will display the word “Resigned” if the “Member Num” in column C is found in the “Resigned Members” list. If the Member number is not found, it returns an empty string.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

You can sort the list by column D, the rows for all Resigned Members will appear together and can be quickly deleted.

  • To sort by column D, just select Cell D5 to D22.
  • Then, choose HomeEditingSort & Filter Sort Z to A.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • Next, the Sort Warning box will open.
  • After that, select Expand the selection.
  • Now, click on Sort.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • Then, our Excel sample file will be like this one.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

This technique can be adapted to other types of list-matching tasks.

10. Using Spell Check for Cleaning in Excel

In the final step, we will show you how to Spell Check for automated data cleaning in Excel. Follow the steps given below to do it on your own.

Steps:

  • In the beginning, select Cell range C5:C10.
  • Then, to go to the Review tab >> click on abc Spelling.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • Now, the Spelling box will open.
  • After that, select Manager.
  • Then, click on Change.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • Next, select Receptionist.
  • Afterward, click on Change.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • Now, select Clerk.
  • After that, select Change.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • Next, a Microsoft Excel warning box will appear.
  • Then, click on OK.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

  • Thus, you can use Spell Check to clean data in Excel.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

Practice Section

In the article, you will find an Excel workbook like the image below to practice independently.

How to Do Automated Data Cleaning in Excel (10 Easy Tips)

Conclusion

So, in this article, we have shown you ways for automated data cleaning in Excel. I hope you found this article interesting and helpful. If something seems difficult to understand, please leave a comment. Please let us know if there are any more alternatives that we may have missed. And, visit ExcelDemy for many more articles like this. Thank you!