Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Text won't Trim

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default Text won't Trim

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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 691
Default Text won't Trim

Hi Perico,
See TRIMALL macro in
http://www.mvps.org/dmcritchie/excel/join.htm#trimall

and always keep in mind that Excel is not MS Word, though
the comparisons do help explain what you want.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

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



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
Trim text and split across three columns Juswant Rai Excel Discussion (Misc queries) 4 September 4th 09 09:03 AM
trim everything from left of first underscore in the text? Mitchell_Collen via OfficeKB.com Excel Worksheet Functions 4 July 28th 09 07:49 PM
Trim or Extract from a Text Field billbrandi Excel Discussion (Misc queries) 1 March 2nd 08 05:35 PM
Text to Columns or TRIM? Kevin Excel Discussion (Misc queries) 2 February 5th 07 10:20 PM
text trim combine Ian Bartlett Excel Discussion (Misc queries) 4 December 14th 05 12:37 AM


All times are GMT +1. The time now is 02:43 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"