Text won't Trim

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have some data in a column and I am unable to trim the data with trim functions in either Excel or Access. I test the spaces and character code 160 is returned

This is Office2k. Why isn't the Trim function working and is there a work around? I'm trying to trim 2 empty spaces at the end of each value in a field
 
I don't know why it isn't working, but you could do something like

=LEFT(A1,LEN(A1)-2)

Where A1 is the cell you want to trim.

Jeff

Perico said:
I have some data in a column and I am unable to trim the data with trim
functions in either Excel or Access. I test the spaces and character code
160 is returned.
This is Office2k. Why isn't the Trim function working and is there a work
around? I'm trying to trim 2 empty spaces at the end of each value in a
field.
 
Jeff -

ASCII 160 is the "hard" or "non-breaking" space. ASCII 30 is the space
that's trimed.

Jeff Standen said:
I don't know why it isn't working, but you could do something like

=LEFT(A1,LEN(A1)-2)

Where A1 is the cell you want to trim.

Jeff


functions in either Excel or Access. I test the spaces and character code
160 is returned.
around? I'm trying to trim 2 empty spaces at the end of each value in a
field.

--
Email to (e-mail address removed) (yes, you can so figure it out) ;-]

Scream and shout and jump for joy! I was here before Kilroy!

Sorry to spoil your little joke. I was here but my computer broke. ---Kilroy
 

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

Similar Threads

trim not working 2
Trim function in macro 2
Using Trim in a Userform 12
trim, chr(10) 24
Trim Entire Column 3
Add - Trim(Clean()) 3
summing text boxes but do't include disabled ones?? 4
General ODBC error 0

Back
Top