Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Removing blank spaces from the ends of email fields?

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:



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

--
nozzaworld
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default Removing blank spaces from the ends of email fields?

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)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"nozzaworld" wrote in message
...
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:



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

--
nozzaworld


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Removing blank spaces from the ends of email fields?

Hi,
try

=RIGHT(SUBSTITUTE(A1," ",""),256)

"nozzaworld" wrote:

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:



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

--
nozzaworld

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I remove blank spaces from fields nozzaworld Excel Discussion (Misc queries) 6 February 22nd 10 02:34 PM
Excel 2003 data import wizard does not support line ends in fields ChrisLime Excel Discussion (Misc queries) 0 February 25th 09 12:07 PM
Removing Spaces Gary Excel Discussion (Misc queries) 15 January 9th 08 01:14 PM
removing all spaces jamesea Excel Discussion (Misc queries) 4 May 27th 07 02:18 PM
removing spaces Claus Massmann Excel Discussion (Misc queries) 12 March 30th 06 02:23 AM


All times are GMT +1. The time now is 01:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"