Names

How to Standardize Names in Excel: Proper Case and Exceptions

By the DecodingPro teamUpdated 4 min read

Quick answer

Use =PROPER(TRIM(A2)) to turn JOHN SMITH or john smith into John Smith. PROPER also changes names that were already correct (McDonald becomes Mcdonald, van der Berg becomes Van Der Berg), so only apply it to cells that are entirely upper or lower case. To flip "Smith, John" use =TRIM(MID(A2,FIND(",",A2)+1,100))&" "&TRIM(LEFT(A2,FIND(",",A2)-1)).

A mailing list with names in three styles looks careless and breaks matching: "JOHN SMITH", "john smith" and "John Smith" are the same person but can be three different values to a CRM, a lookup or a duplicate check. Standardising names is easy for the common cases and risky for the unusual ones. This guide shows both.

Step 1: remove the spaces first

Names pasted from forms and websites often carry extra spaces. Clean those before changing case:

=TRIM(SUBSTITUTE(A2,CHAR(160)," "))

For more on stray spaces, see removing extra spaces in Excel.

Step 2: change the case with PROPER

=PROPER(TRIM(A2))

PROPER capitalises the first letter of every word and lowercases the rest. It handles hyphens and apostrophes well: mary-jane o'brien becomes Mary-Jane O'Brien.

What PROPER gets wrong

OriginalPROPER resultCorrect
McDonaldMcdonaldMcDonald
MacArthurMacarthurMacArthur
van der BergVan Der Bergvan der Berg
de la CruzDe La Cruzde la Cruz
John Smith IIIJohn Smith IiiJohn Smith III
3rd Floor (in a name field)3Rd Floor3rd Floor

Capitalisation rules for names differ by language and by family. There is no formula that is right for every name, so protect the cells that are already correct.

Step 3: only change cells that need it

Apply PROPER only when the cell is entirely upper case or entirely lower case. A name in mixed case was most likely typed by a person who knows how it is spelt:

=IF(OR(EXACT(A2,UPPER(A2)),EXACT(A2,LOWER(A2))),PROPER(TRIM(A2)),TRIM(A2))

EXACT compares with case, which a plain = does not.

Step 4: fix the known exceptions

After PROPER, repair the patterns you actually have in your data with SUBSTITUTE:

=SUBSTITUTE(SUBSTITUTE(B2," Iii"," III")," Ii"," II")

For Mc names, which are consistent enough to fix in bulk, change the letter after "Mc" back to a capital by hand or with Find and Replace on your own list. Do not try to cover Mac names with a rule: Macdonald and Macy are both right.

Step 5: "Last, First" into "First Last"

=TRIM(MID(A2,FIND(",",A2)+1,100))&" "&TRIM(LEFT(A2,FIND(",",A2)-1))

Wrap it in IFERROR(...,A2) so rows without a comma stay as they are. Run it only on cells that contain exactly one comma, because "Smith, John, Jr." is not the same pattern.

Step 6: titles and suffixes

Remove "Mr", "Mrs", "Dr" and similar only if you are sure you do not need them, since they carry information. If you only need the first and last name, see splitting a full name.

Warning: do not run PROPER over a column that also holds email addresses, codes or company names such as "IBM" or "eBay". Apply it only to the name column.

A whole file at once

DecodingPro fixes names that are entirely upper or lower case, keeps particles such as van and de in lower case, writes suffixes such as II and III in capitals, repairs names like McDONALD, and leaves any name that is already in mixed case exactly as you typed it. Every change is listed.

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

Why does PROPER turn McDonald into Mcdonald?

PROPER only knows one rule: capital first letter, lower case for the rest. It cannot know that "Mc" is a prefix. Apply it only to cells that are all upper or all lower case.

Can Flash Fill standardise names?

Flash Fill (Ctrl+E) copies the pattern from your examples, which is quick for one-off jobs. It guesses, so check the result row by row, especially for unusual names.

How do I find names that are still in the wrong style?

Use =EXACT(A2,UPPER(A2)) or =EXACT(A2,LOWER(A2)) in a helper column to flag all-capital or all-lower-case names, then filter the column for TRUE.

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 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 read