Advertisement

Remove ALL Unwanted Spaces in Excel (TRIM ALL Function?)

Remove ALL Unwanted Spaces in Excel (TRIM ALL Function?) Stubborn spaces can become a headache in Excel. You'll come across extra spaces when you copy data from your email or import data from another system. Each cell value ends up having trailing or leading spaces. Sometimes they can be removed easily with the TRIM function but sometimes TRIM doesn't work! In this video I'll show you how you can TRIM ALL Spaces - also the stubborn ones. 

TRIM can only remove spaces with an ASCII character code 32. But there is another character code that represents a space. It's commonly referred to as a Non-Breaking Space and its ASCII character code is 160. Such spaces commonly occur when we copy text from Outlook or a website to Excel. With the Excel function CODE() we can identify which character code we are dealing with.

To remove a non-breaking space in Excel we can use the SUBSTITUTE function. With this function we can look for character code 160 in a cell and replace it with a regular space.

For numbers that are not recognized as numbers by Excel we can use the VALUE function. If the number contains non-breaking spaces use it in combination with the SUBSTITUTE function.

⯆ DOWNLOAD the workbook here:

Check out other Excel tips and tricks in this playlist:

★ My Online Excel Courses ►

✉ Subscribe & get my TOP 10 Excel formulas e-book for free


EXCEL RESOURCES I Recommend:

Get Office 365:
Microsoft Surface:

GEAR
Camera:
Screen recorder:
Microphone:
Lights:

More resources on my Amazon page:

Let’s connect on social:
Instagram:
Twitter:
LinkedIn:

Note: This description contains affiliate links, which means at no additional cost to you, we will receive a small commission if you make a purchase using the links. This helps support the channel and allows us to continue to make videos like this. Thank you for your support!

#MsExcel

XelplusVis,Leila Gharani,Advanced Excel tricks,Excel online course,Excel tips and tricks,Excel for analysts,Microsoft Excel tutorials,Microsoft Excel,Excel 2016,Excel 2013,Excel 2019,XelPlus,Excel TRIM function,excel trim doesn't work,excel remove spaces,excel remove unwanted spaces,excel remove nonbreaking space,remove non-breaking space,Excel Trim ALL,Excel substitute function,character code 160,remove leading spaces in excel,remove trailing spaces,

Post a Comment

0 Comments