Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
TRIM
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 |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
TRIM
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" wrote: 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 |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
TRIM
"Nikki" wrote:
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 ----- "Nikki" wrote in message ... 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 |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
TRIM
See my reply at your other thread. Please stay with one thread. Gord Dibben MS Excel MVP On Wed, 22 Apr 2009 08:29:03 -0700, Nikki wrote: 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
=TRIM | Excel Discussion (Misc queries) | |||
Trim if? | Excel Worksheet Functions | |||
Trim and Mid with VBA | Excel Discussion (Misc queries) | |||
Trim | Excel Discussion (Misc queries) | |||
Trim help please | New Users to Excel |