Excel data cleaning

How to Find and Fix Typos in an Excel Column (Cities, Names, Categories)

By the DecodingPro teamUpdated 5 min read

Quick answer

List every distinct value in the column with its count (a pivot table does this in seconds). Real values appear many times; typos appear once or twice and look nearly identical to a common one. Fix them with a two-column replacement table and a lookup, or with Find and Replace. Never auto-correct values that are only similar: Milano and Milan, or Springfield in two states, are both real.

Free-typed columns such as city, country, job title or category drift over time: Boston, Bostn, boston, BOSTON, Boston MA. Filters and pivot tables then treat each spelling as a different thing. The fix has two parts, finding the variants and replacing them safely.

Step 1: see every distinct value with its count

Select your data and insert a PivotTable. Drag the column into Rows and again into Values (set to Count). Sort the counts from high to low. The popular spellings are at the top; the typos are the small counts that look almost like a big one further down. For a few hundred values, scan the list with the counts beside it.

Step 2: normalise case and spaces first

Half the variants are only capitalisation or stray spaces. Remove those before looking for real typos:

=PROPER(TRIM(A2))

PROPER capitalises the first letter of each word. It is fine for cities and names, but it will turn "USA" into "Usa" and "McDonald" into "Mcdonald", so check the result on abbreviations. See standardising names in Excel for the exceptions.

Step 3: build a replacement table

On a second sheet make two columns: Wrong and Right. Fill it from your pivot list:

WrongRight
BostnBoston
BosotnBoston
NYCNew York
N.Y.New York

Then in a new column look each value up, keeping the original if there is no correction:

=IFERROR(VLOOKUP(A2,Fixes!$A$2:$B$100,2,FALSE),A2)

The original is kept whenever the value is not in your table, so nothing changes unless you decided it should. If the lookup misbehaves on values that look identical, see fixing VLOOKUP.

Step 4: let Excel suggest near-matches

On Windows, Microsoft's free Fuzzy Lookup add-in for Excel can match each value in one list to the closest value in another and shows a similarity score. Use it to compare your column against a clean reference list of cities or categories. Treat the score as a suggestion: review matches below roughly 0.9 yourself.

Warning: similar is not the same as wrong. Milano and Milan are both correct. Portland may be Oregon or Maine. Dover and Dover in different states are different places. A fix that is right 95% of the time still silently damages 1 row in 20, so only fix what you are sure about.

What is safe to fix automatically

  • A keystroke slip where the value is one swap, drop or double letter away from one common spelling (Bostn, Bosotn) and nothing else is that close.
  • Case and spacing differences.
  • Your own known abbreviations, listed in the replacement table.

Anything that could be a different real value should be reviewed by a person, with the original kept.

A whole file at once

DecodingPro compares each value in a column with the spellings that column already uses. It corrects a keystroke typo only when one common spelling is the clear match, leaves look-alike real values untouched, flags the rest with the possible answers, and logs every change. In our internal benchmark about 90% of keystroke typos were corrected automatically, the rest flagged, and real look-alike values such as Milano next to Milan were left alone.

Try it on your own file

You start with 100 free credits. Every change is logged, and anything unclear is flagged, never guessed.

Fix a spreadsheet

Questions people ask

How do I find misspelled words in an Excel column?

Make a PivotTable of the column with a count, sort by count and look for small counts that resemble a big one. Spell-check (F7) finds dictionary errors but not misspelled names or places.

Does Excel have a fuzzy matching function?

Not as a built-in worksheet function. Microsoft offers a free Fuzzy Lookup add-in for Windows, and Power Query can match approximately when merging tables.

Is it safe to auto-correct similar values?

Only when one correct spelling is clearly closest and nothing else is just as close. Real values that merely look alike, such as Milano and Milan, must be left as they are.

Why did PROPER change my abbreviations?

PROPER capitalises only the first letter of each word, so USA becomes Usa. Fix those with a replacement table or exclude abbreviation columns.

Keep reading

01Excel data cleaningHow to Clean Messy Excel Data: A Step-by-Step GuideThe fixed order that stops one fix from undoing another, with the formulas for every step.10 min read02Text and numbersHow to Keep Leading Zeros in Excel and CSV (ZIP Codes, IDs)Why Excel turns 02134 into 2134, how to get the zeros back, and how to stop it happening when you open a CSV.5 min read03CSV and importsHow to Clean a CSV File Before Importing It Into a CRMSeven fixes that prevent duplicate contacts, rejected rows and scrambled characters, and the 10-row test to run first.4 min read04DatesHow to Fix Dates in Excel and CSV Files (Mixed Formats)Text dates, day-month swaps, two-digit years and the one rule that makes dates safe to share.8 min read05Phone numbersHow to Fix Phone Numbers in Excel: Format and Country CodesLeading zeros, 9.19E+11, country codes and the international format that every system accepts.6 min read06DuplicatesHow to Remove Duplicates in Excel Without Losing DataExact, near and partial duplicates: decide what counts, mark before you delete, keep the best record.6 min read07DuplicatesHow to Find and Highlight Duplicates in ExcelFind repeats safely first: highlight them, count them, keep the first one, and spot the near-duplicates Excel does not see.3 min read08NamesHow to Standardize Names in Excel: Proper Case and ExceptionsWhat PROPER gets wrong, how to protect names that are already right, and how to flip "Smith, John" into "John Smith".4 min read09Email addressesHow to Fix Email Typos in Excel: gmial.com, .con and Missing @The typos that make campaigns bounce, and the formulas and checks that fix them without guessing.4 min read10Email addressesHow to Clean an Email List Before You Send a CampaignA five-step routine that removes the avoidable bounces from a list without deleting anyone you should keep.3 min read11NamesHow to Split Full Names into First and Last Name in ExcelFlash Fill, Text to Columns and formulas for splitting names, and the names that trip each one up.4 min read12Text cleanupHow to Remove Extra Spaces in Excel (TRIM, CLEAN and Non-Breaking Spaces)Why TRIM sometimes does nothing, and the one formula that removes every kind of stray space.3 min read13Text cleanupHow to Remove Special Characters and Line Breaks in ExcelThe characters you cannot see, the smart quotes you can, and the exact formula or shortcut that removes each one.4 min read14NumbersHow to Convert Text to Numbers in Excel (Numbers Stored as Text)Why sums show zero, why numbers sit on the left, and four ways to turn text back into real numbers.3 min read15Excel data cleaningHow to Clean Data with Power Query in Excel (Step by Step)Record your cleaning steps once and replay them on every new file, without formulas and without touching the original data.4 min read16Comparing dataHow to Compare Two Lists in Excel and Find What Is MissingFind the names, IDs or emails that are in one list and not the other, with formulas that scale.3 min read17CSV and importsFix Garbled Characters and Broken CSV Imports (UTF-8)UTF-8, delimiters, leading zeros, quotes and a checklist that makes a file safe to import.7 min read18Data entryData Entry Accuracy: How to Check, Measure and Improve ItWhat the research says about error rates, why proofreading fails and the checks that actually work.9 min read19Excel data cleaningVLOOKUP Not Working in Excel? Fix #N/A, Hidden Spaces and Text NumbersVLOOKUP says #N/A but the value is right there. The five causes, and how to find which one you have in a minute.4 min read20Excel data cleaningHow to Remove Blank Rows in Excel (Fast, Without Deleting Real Data)Delete hundreds of empty rows in seconds, and learn why a row that looks blank sometimes is not.4 min read21Email addressesHow to Validate Email Addresses in Excel (Formulas, Typos and What They Miss)A formula that flags broken addresses, how to catch gmial.com-type typos, and the limit of any check done in a spreadsheet.5 min read