Remove Extra Spaces & Capitalize Names in Excel (TRIM + PROPER)

Strip leading, trailing, and repeated spaces from imported CSV files and capitalize names cleanly before running lookups or filters.

Formula to Remove Extra Spaces and Capitalize Names

Combine TRIM and PROPER to clean messy spacing and convert text into Title Case in one step:

=TRIM(PROPER(A2))

Worked Example: Cleaning Imported Names & Labels

Cell A2 (Messy Input) =TRIM(PROPER(A2)) Result Fix Applied
" saurabh garg " Saurabh Garg Removed outer & extra spaces, capitalized words
"NORTH REGION " North Region Normalized spacing and casing for clean grouping

How to Apply Cleaned Values Permanently

Next Step: Also splitting combined text? See the TEXTSPLIT / SPLIT Guide or test cleanup formulas in the Formula Finder.
Editorial & Accuracy Note: Tested across Microsoft Excel and Google Sheets. Part of the Know Unlimited Excel & Google Sheets Hub.