Removing Non-Breaking Spaces from Excel Cells: A Quick Guide
Many times there comes a scenario where we need to remove extra space from
text in cell which has numbers in it, the Trim() function only doesn't work,
we may need to use TRIM function combined with any other function (or) need to use VALUE function combined with any other function.
Excel's
TRIM()
function is a lifesaver when it comes to removing leading and trailing spaces from text. However, it can be less effective when dealing with non-breaking spaces, which are often used to prevent text from breaking to the next line.The extra
space is not a space it is a non-breaking space recognized as CHAR(160), to
remove this non-breaking space need to use the below formula,
VALUE(SUBSTITUTE(A2, CHAR(160),))
Example:
If cell A2 contains the text "225422 " (with a non-breaking space after the number), applying the formula would result in "225422" with no extra spaces.
By following these steps, you can effectively remove non-breaking spaces from your Excel data and ensure accurate calculations and formatting.
Comments
Post a Comment
Please share your opinions and suggestion and do not enter any spam links in the comment box