TRIM

  • Thread starter Thread starter Nikki
  • Start date Start date
N

Nikki

Cell E1 has the name John followed by 13 spaces (comes out of the database
this way). How do I remove the 13 spaces? I tried trim((e1)&" "&g1) but it
doesn't work. Please help as this is driving me crazy. Thanks to those of you
who made suggestions already. I also tried the code in a simple Macro that is
application.trim(range("e1")) and can't seem to get that to work either.

Thanks
Nikki
 
With your name in E1, insert a new column F.
Enter in F1 =TRIM(E1).
Select F1, copy, and paste special as value in E1. Your spaces should be
gone. Delete Col F

--
HTH

Kassie

Replace xxx with hotmail
 
Nikki said:
Cell E1 has the name John followed by 13 spaces [....].
How do I remove the 13 spaces? I tried trim((e1)&" "&g1)
but it doesn't work.

If you enter the formula __exactly__ the way Don told you to yesterday, you
should have no problem. Copy-and-paste the following formula:

=trim(e1)&" "&g1


----- original message -----
 
See my reply at your other thread.

Please stay with one thread.


Gord Dibben MS Excel MVP
 

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

Back
Top