Exercices Excel

The TRIM Function

Remove extra spaces from a text cell.

📖 Quick reference

The TRIM function removes leading and trailing spaces and reduces multiple spaces between words to a single space. Its syntax is =TRIM(text). Essential when cleaning imported data.

Remove the extra spaces from the text in A1 and place the cleaned text in B1.

Click cell B1, type your formula and press Enter.

B1
A B C D E
Raw Text Cleaned Text
1
Excel Practice
2
3
4
5
6