Excel and formulas

Excel formula to trim spaces

Remove duplicate, leading and trailing spaces from text.

Italian Excel formula

=ANNULLA.SPAZI(A2)

English Excel formula

=TRIM(A2)
Example

' John Smith ' becomes 'John Smith'.

Common error

It may not remove non-breaking spaces copied from the web; SUBSTITUTE may be needed.

How it works

ANNULLA.SPAZI pulisce il testo mantenendo un solo spazio tra le parole.

È utile quando importi dati da gestionali, CSV o copie da PDF.

Frequently asked questions

Rimuove tutti gli spazi?

No, lascia un solo spazio tra parole.

Funziona con Excel 2010?

Sì.

Related tools