#1   Report Post  
flow23
 
Posts: n/a
Default date

I have date in CSV as 9122005(09 Dec 2005) and 13122005(13 dec 2005)..

when I do text to column.. the only fields that get converted are 13122005 (
the ones with 2 digits date...

any solution?

  #2   Report Post  
Gary''s Student
 
Posts: n/a
Default date

Use two steps assuming that your two values are in A1 and A2.

In B1 enter:
=IF(LEN(A1)=8,A1,0&A1) and copy down
This will make the dates all 8 digits long by putting a zero in the front if
needed.

In C1 enter:
=RIGHT(B1,4) for the year
In D1 enter:
=MID(B1,3,2) for the month
In E1 enter:
=LEFT(B1,2) for the day

--
Gary's Student


"flow23" wrote:

I have date in CSV as 9122005(09 Dec 2005) and 13122005(13 dec 2005)..

when I do text to column.. the only fields that get converted are 13122005 (
the ones with 2 digits date...

any solution?

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 do I create a schedule from a list of dates ? Gavin Morris Charts and Charting in Excel 2 October 28th 10 04:08 PM
NETWORKDAYS - Multiple Date Selection Annabelle Excel Discussion (Misc queries) 3 October 4th 05 07:04 PM
How do I calculate if a date is in a certain time frame? Pe66les Excel Worksheet Functions 19 August 27th 05 11:07 PM
search for latest date Sue Excel Worksheet Functions 2 August 2nd 05 11:09 PM
Recurring annual events using a specific date as a trigger date Bamboozled Excel Worksheet Functions 1 June 6th 05 01:44 PM


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