Table of Contents
Clean an Excel table by fixing inconsistent values first, reviewing duplicates second, and applying rules to prevent new errors. Keep an untouched copy of the workbook before starting: a duplicate-looking row may be a valid transaction, and missing values should not automatically become zero.
Work on one issue at a time. Record the original row count and any important totals so you can compare them with the cleaned result. The menu paths below refer to desktop Excel; labels can vary by version.
1. Correct spelling and standardize labels
Select the cells you want to check and choose Review > Spelling. Review each suggestion rather than accepting every change. Names, product codes, and abbreviations may be correct even when Excel flags them.

Decide on one label for each category, such as Pending rather than a mixture of pending, Pend, and Awaiting. Use Find and Replace within the intended range for known variants, then inspect the results. Avoid broad replacements that could alter unrelated text.
2. Remove extra spaces with a helper column
For text in A2, enter the following formula in an empty column and fill it down:
=TRIM(A2)This removes ordinary leading and trailing spaces and reduces repeated spaces between words to one. It does not remove every kind of invisible character. Text copied from a website may contain nonbreaking spaces; for that case, try:
=TRIM(CLEAN(SUBSTITUTE(A2,CHAR(160)," ")))CLEAN removes certain nonprinting characters, not all Unicode characters. Check several examples before applying the formula broadly. Do not normalize spacing inside identifiers where spaces have meaning. The TRIM function examples explain its basic behavior.
Once you have checked the helper-column results, copy them and use Paste Special > Values in the working copy if you need fixed values instead of formulas. Keep the original column until verification is complete.
3. Review duplicates before deleting them
Use Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values to inspect repeated entries. A repeated name or amount is not necessarily a duplicate record.

For removal, select the whole table, then choose Data > Remove Duplicates. Confirm whether the range has headers and choose the columns that define a duplicate. For example, an order ID may be sufficient, while a customer name usually is not.
Excel keeps the first matching record and removes later matches from the selected range. Check the removal count and your key totals immediately; undo the operation if the result is wrong. This duplicate-data walkthrough shows the relevant commands.
4. Split combined fields into separate columns
If one column contains values such as London,UK, select it and choose Data > Text to Columns. Choose Delimited and the appropriate separator, or Fixed width for consistently aligned text. Inspect the preview before finishing.

Set the destination to empty columns so the output does not overwrite other data. For identifiers with leading zeros, choose the Text column format. Splitting a name at every space is often unsuitable because real names can contain several words.
5. Use validation to reduce future entry errors
Select the input cells and choose Data > Data Validation. A list can restrict a status column to agreed labels; whole-number or date rules can set an appropriate range. Add a useful input message and use a Stop error alert when invalid typed entries must be blocked.
Validation is an entry aid, not a guarantee that all existing data is correct. Pasting, formulas, or other processes may introduce values outside the rule. Review existing entries separately; desktop Excel's Circle Invalid Data command can help. See setting validation limits in Excel for examples.
6. Clear only formatting that causes problems
Use Home > Clear > Clear Formats on the selected range when inconsistent presentation needs resetting. Do not choose Clear All if you want to keep values and formulas.

Clearing formats can change how dates, percentages, and currencies are displayed. Reapply suitable number formats afterward. It does not repair incorrectly stored data or automatically turn a table into a plain range.
To remove conditional formatting only, use Conditional Formatting > Clear Rules > Clear Rules from Selected Cells. Choose Entire Sheet only when you intend to remove every rule on that worksheet.

7. Separate raw data, cleaned data, and reports
Keep imported data on one worksheet, the cleaned table on another, and PivotTables or charts on a reporting sheet. Give each sheet a clear name. Avoid moving columns without checking formulas and report references.
Before saving the final copy, compare row counts and totals, inspect blanks and errors, and refresh any dependent PivotTables. Keep missing values blank or label them according to a defined rule rather than inventing a value. Microsoft's data-cleaning guidance provides further reference for text and character issues.
Reader Comments 0
Sign in with email or Google to join the discussion.