#1   Report Post  
aehan
 
Posts: n/a
Default Trim function

On a column of imported text there are unwanted spaces to the left of the
text. I tried to get rid of them by inserting a column and writing a TRIM
function but the spaces remained - I've never seen that happen before. Does
anyone have an idea why that should happen? I'm tearing my hair out. Any
ideas would be gratefully received. Thanks.
  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

They may not be spaces. Take a look at CLEAN in the XL
help guide and give it a try.

HTH
Jason
Atlanta, GA

-----Original Message-----
On a column of imported text there are unwanted spaces to

the left of the
text. I tried to get rid of them by inserting a column

and writing a TRIM
function but the spaces remained - I've never seen that

happen before. Does
anyone have an idea why that should happen? I'm tearing

my hair out. Any
ideas would be gratefully received. Thanks.
.

  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

Try this

=TRIM(SUBSTITUTE(J2,CHAR(160),""))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"aehan" wrote in message
...
On a column of imported text there are unwanted spaces to the left of the
text. I tried to get rid of them by inserting a column and writing a TRIM
function but the spaces remained - I've never seen that happen before.

Does
anyone have an idea why that should happen? I'm tearing my hair out. Any
ideas would be gratefully received. Thanks.



  #4   Report Post  
aehan
 
Posts: n/a
Default

I tried the CLEAN function and it hasn't removed the spaces either, so I
don't think they can be hidden special characters. If anyone knows of a
different way of getting rid of empty spaces I'd be really happy. Thanks for
your help.

"Jason Morin" wrote:

They may not be spaces. Take a look at CLEAN in the XL
help guide and give it a try.

HTH
Jason
Atlanta, GA

-----Original Message-----
On a column of imported text there are unwanted spaces to

the left of the
text. I tried to get rid of them by inserting a column

and writing a TRIM
function but the spaces remained - I've never seen that

happen before. Does
anyone have an idea why that should happen? I'm tearing

my hair out. Any
ideas would be gratefully received. Thanks.
.


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 to use TRIM function Sky Warren Excel Worksheet Functions 3 January 8th 05 05:06 PM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM
Find a Function to use accross different worksheets R. Hale Excel Worksheet Functions 3 November 25th 04 07:07 AM
change function variable prompts?? thinkingfield Excel Worksheet Functions 1 November 8th 04 04:01 PM
Counting Function Dilemma Simon Lloyd Excel Worksheet Functions 0 November 8th 04 03:13 PM


All times are GMT +1. The time now is 09:41 AM.

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

About Us

"It's about Microsoft Excel"