Formulyo

Excel + Google Sheets · TRIM + PROPER

Clean messy names in one go

Fixes capitals and removes extra spaces from a whole column at once.

The formula

=TRIM(PROPER(A2))

What each part means

Example

Before
AB
1Imported namesClean
2 jOHN smith
3MARIA lopez
4 ana GARCÍA
5pedro MARTIN
6 lucía fernández
After
AB
1Imported namesClean
2 jOHN smith John Smith
3MARIA lopezMaria Lopez
4 ana GARCÍAAna García
5pedro MARTIN Pedro Martin
6 lucía fernándezLucía Fernández

Step by step

  1. Click cell B2.
  2. Type the formula: =TRIM(PROPER(A2))
  3. Press Enter.
  4. Drag the small square in the bottom-right corner of the cell down to copy it to the other rows.

Where it works

The same formula in other languages

Get 1 formula a day, free

Plus a free weekly planner template for Excel and Google Sheets. Unsubscribe in 1 click.

✓ Done! Check your inbox to confirm.

Want ready-made templates? See the Formulyo pack →

Keep learning