ProofDrill

TRIM

Removes extra spaces from text.

Worked example

How do we tidy product names from a web form?

B2=TRIM(A2)

RowAB
1TypedTidy
2 Oak shelf Oak shelf

Spaces at both ends go, and runs of spaces become one.

How to write it

=TRIM(text)

text
The text to tidy.
Free with a free account

Try TRIM yourself

Real tasks in a spreadsheet, checked on changed data. A free account saves your work and checks your answers.

Practise it free

Watch out for

  • Non-breaking spaces copied from web pages are not removed.
  • It changes a copy. Keep the source column until you have checked it.

Practise it