Removing trailing spaces.

S

Steven Brobst

I have a row of cells that may or may not have a trailing
space after the text. Is there a way to test for a space
as the last character, and then remove it if present?
 
D

Dan E

In a row next to this one put (i'll assume this row starts in A1)
=TRIM(A1)
copy down
select the new row and paste special values

Dan E
 
P

Peo Sjoblom

Just in case you imported from HTML you might need
to substitute the char(160) with "" like this

=SUBSTITUTE(A1,CHAR(160),"")
 
S

Steven Brobst

Thanks for answering that everyone.
Talk about a Doh!!! as I went through all the text
functions and didn't even think about trim as it said
somthing like "between worrds". :)

Steven
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top