Remove Leading and Trailing SpacesASAP Utilities › Text › 10. Remove Leading and Trailing SpacesThis 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![]() ![]() Practical tricks on how this can help youPractical 'real world' examples on our blog that show you how this tool can help you in Excel. Enjoy!Starting this tool
![]() Additional keywords for this tool: Remove leading spaces, Remove trailing spaces, Trim spaces in Excel, Nonbreaking space removal, Fix blank cells in Excel, Cells not recognized as empty, Excel trim function alternative, Remove unwanted whitespace in Excel, Fix lookup errors due to spaces, Excel VLOOKUP not working because of spaces, Delete extra spaces before or after text, Clean data with whitespace, Remove space at beginning and end, Clean cells for sorting and filtering, Excel cells look empty but aren't, Trim nonbreaking space character 160, Fix Excel cells with invisible characters, Remove unnecessary space from cell Choose your language preference belowEnglish (us) ⁄ Nederlands ⁄ Deutsch ⁄ Español ⁄ Français ⁄ Português do Brasil ⁄ Italiano ⁄ Русский ⁄ 中文(简体) ⁄ 日本語![]()
| ||
Home
Privacy Policy
Cookie Policy
EULA
Download
All added Excel tools
Sitemap
Contact Us
©1999-2025 ∙ ASAP Utilities ∙ A Must in Every Office BV ∙ The Netherlands
🏆 Winner of the "Best Microsoft Excel Add-in" Award at the Global Excel Summit 2025 in London! For over 25 years, ASAP Utilities has helped users worldwide save time and do what Excel alone cannot. |