Removing blank spaces from the ends of email fields?

N

nozzaworld

Hi,

I have a list of emails in a column but many of them have a space at the end
of the email address. I need to be able to remove the space and then run an
advanced filter on them to remove any duplications.

An example of the data that has a space on the end which I want to remove
would be:

(e-mail address removed)

I have already tried using =trim(A1) and =SUBSTITUTE(A1," ",""), neither of
which work when I copy the values back into my original column to run the
advanced filter.

Please help me.

Many thanks in advance
 
N

Niek Otten

You probably copied the addresses from another source.
The may contain "non-breaking spaces"; char(160)
Change the space in your Substitute() formula to CHAR(160)
 

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