benjamenus
Programmer
Anyone know the correct way to find/replace a non-breaking space in Excel? In Word, the code is ^s ... but Excel doesn't seem to approve?!
Bit of background info ...
Was sent an excel sheet with columns of numbers but was not able to perform any calculations on them (e.g. SUM, etc) even though the cells were formatted as numbers. I noticed the values were all followed by a space, but find/replace didn't remove them. By pasting the column into Word, I discovered that they were all followed by a non-breaking space. Back in excel, I tried a find/replace on ^s (non-breaking space), but to no avail. I discovered that by selecting the cell and copying the 'space' from the formula bar - that I could perform the find/replace with this character (which shows only as a space). I recorded this in a macro and the code also shows the search item as " " (a space). Is there a correct way to identify a non-breaking space in Excel???
P.S. The text was copied from a web page which is how the character ended up there in the first place
Bit of background info ...
Was sent an excel sheet with columns of numbers but was not able to perform any calculations on them (e.g. SUM, etc) even though the cells were formatted as numbers. I noticed the values were all followed by a space, but find/replace didn't remove them. By pasting the column into Word, I discovered that they were all followed by a non-breaking space. Back in excel, I tried a find/replace on ^s (non-breaking space), but to no avail. I discovered that by selecting the cell and copying the 'space' from the formula bar - that I could perform the find/replace with this character (which shows only as a space). I recorded this in a macro and the code also shows the search item as " " (a space). Is there a correct way to identify a non-breaking space in Excel???
P.S. The text was copied from a web page which is how the character ended up there in the first place