LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 28
Default Trim function

Hello Shana, responded yesterday but not sure why not yet posted, hence this
repeated reply below:

Yes, I've simplified the question because I know the result is the same.

My real case is: I've donwloaded some data from "Pro Alpha" ESR system and
done the "text to column" and "trim" routines. The date columns after "trim"
all become text and I need to make use of the dates to continue my data
analysis.

Anyway, your advice on no.3 is helpful to me. Thanks
--
exalan


"Shane Devenshire" wrote:

Hi,

I know your problem has been solved, but I do have two questions -
1. why are you entering dates 1202/09 (Excel will not treat these as dates)
it should be 12/02/09
2. what is the purpose of using TRIM? It is designed to remove leading and
trailing spaces plus any extra spaces in between words. If you have a date
in A1 then TRIM really does nothing.
3. If on the other hand 12/02/09 is text then rather than use =--TRIM(A1)
just use =--A1 and format the cell accordingly.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"exalan" wrote:

In cell A2, I use the trim function to trim cell A1 containing a date eg
1202/09, the result in A2 is 39856. However, this 39856 is text and not date
value. I therefore cannot convert it back to date after the trimming. Can
someone please help? Many thanks...
--
exalan

 
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 function JockW Excel Worksheet Functions 6 October 15th 08 10:41 PM
Len & Trim Function Daren Excel Worksheet Functions 6 October 14th 08 02:32 PM
TRIM FUNCTION...how to? Shayra Excel Worksheet Functions 3 March 10th 08 06:39 PM
Trim Function Saxman[_2_] Excel Discussion (Misc queries) 7 August 2nd 07 01:20 AM
Need help with TRIM function Phil Excel Worksheet Functions 9 October 21st 05 08:02 PM


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