We're nominated again this year for Best Microsoft Excel Add-in at the Global Excel Awards! ❤️🌟
If ASAP Utilities has helped you in Excel, you can support it with a quick vote→. It only takes about 30 seconds.
Find us in the second category: Best Microsoft Excel Add-in. You can skip other categories if you're unsure about them.
logo ASAP Utilities

Tip of the Day | Thursday March 19th, 2026

Discover new tools to get things done. ASAP Utilities makes YOU rock in Excel!

Remove Leading and Trailing Spaces

This tool removes all spaces from the beginning and end of the values in your selected cells, while spaces between words or characters are left unchanged.
For example, a cell containing "Excel" will be changed to "Excel".
Or "1000 AP  Amsterdam" stays "1000 AP  Amsterdam", keeping the two spaces between the ZIP code and city name.
Compared to Excel's TRIM() function, this tool preserves double or multiple spaces between words or characters, which is helpful when spacing has meaning, such as in addresses, codes, or formatted text. It also removes leading and trailing nonbreaking spaces (character 160,  ), which sometimes appear in data copied from websites or exported from other systems and are not removed by TRIM().
As an added bonus, this tool also helps fix cells that contain a zero-length string. Microsoft uses this term for values that look blank but actually contain invisible content, such as a single apostrophe or the result of a formula like "" that was pasted into the cell as a value. After cleanup, Excel will recognize these cells as truly empty.
Cells that contain only spaces (including nonbreaking spaces) will be turned into empty cells.
Cells with formulas are left unchanged.
This is especially useful when cleaning up imported data, fixing lookup mismatches (VLOOKUP, XLOOKUP), or preparing consistent text values for sorting and filtering.
By default, you can launch this tool using the Control+Alt+Shift+T shortcut.

Screenshots

Text  ›  Remove Leading and Trailing Spaces

Starting this tool


Text  ›  Remove Leading and Trailing Spaces

Choose your language preference below

English (us)NederlandsDeutschEspañolFrançaisPortuguês do BrasilItalianoРусский中文(简体)日本語

Download
Today's Tip



Home Privacy Policy Cookie Policy EULA Download All added Excel tools Sitemap Contact Us


🏆 Winner of the "Best Microsoft Excel Add-in" Award at the Global Excel Summit 2025 in London!
For over 26 years, ASAP Utilities has helped users worldwide save time and do what Excel alone cannot.