New Tool Radar

AI for Data & Spreadsheets

How to Clean Uppercase and Lowercase Names in a CSV in Excel

Standardise name casing in a CSV with PROPER so JANE SMITH and jane smith become one name.

Schematic illustration for How to Clean Uppercase and Lowercase Names in a CSV in Excel: three numbered steps - Add a PROPER helper column; Paste values over original; Check names with capitals.

A name typed as JANE SMITH in one row and jane smith in another is two people to a filter, even though it is one person. PROPER capitalises the first letter of each word, and pasting the result as values makes the fix permanent.

Prerequisites

  • Excel
  • The CSV opened in Excel
  • A copy of the source file, so the original stays untouched.

Steps

  1. Add a helper column beside the name column with the formula =PROPER(A2), adjusted to the name column.
  2. Copy the helper column down, then read each result against the original name.
  3. Fix names that PROPER gets wrong by hand, such as McDonald or O'Brien, before pasting.
  4. Copy the helper column and use Paste Special, Values, over the original name column.
  5. Delete the helper column and sort the names to confirm they group correctly.

Worked example: Fictional member names after casing fix

The practice table below is a fictional five-member list after the casing fix. The count column is 1 per member, and the total is the number of members. The table below is fictional practice material, with fictional values. It is the expected result, worked out by hand, not a run of any tool.

Name Count
Liam Foster 1
Mia Grant 1
Noah Harris 1
Olivia Ingram 1
Peter Jones 1
Total 5

Expected result. Five names standardised, each counted once, and the count is 5.

Limits

  • PROPER capitalises every word, so it will change McDonald to Mcdonald unless fixed by hand.
  • PROPER creates values, so keep the original column until the check is done.

Sources

See all