Text FunctionsBeginner

TRIM Function

Remove extra spaces from text using TRIM.

Task:

Clean up the text in column A by removing extra leading, trailing, and multiple spaces between words. Display the cleaned text in column B.

Interactive Spreadsheet

Hints

+5 XPno-hints bonus

Solve it on your own to keep the bonus. Each hint gets one step closer to the formula.

The data in this exercise

This is the grid you start with. Cell references in the task — B6, C2 — point at the row numbers and column letters below.

5 rows × 2 columns4 cells you fill in
AB
1Original TextCleaned Text
2 John Smith
3 Mary Jones
4Tom Wilson
5 Sarah Brown
What this exercise teachesMay contain the answer

The TRIM function removes extra spaces from text, leaving only single spaces between words. It's crucial for data cleaning operations.