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

opening a CSV file into Excel.

I need to convert one column full of dates.
I tried the text to columns function.. however it only changes the date with
two digits in day ( eg. 13022005 is converted to 13/02/2005) but the dates
with single digit day ( eg. 9022005 are not converted to 9/2/2005)

any help pls

  #2   Report Post  
Widemonk
 
Posts: n/a
Default date

May not be the most efficient wany but I would use...

=DATE(RIGHT(A1,4),IF(LEN(A1)=8,MID(A1,3,2),MID(A1, 2,2)),IF(LEN(A1)=8,LEFT(A1,2),LEFT(A1,1)))

(assuming your date string is in cell A1)

"flow23" wrote:

opening a CSV file into Excel.

I need to convert one column full of dates.
I tried the text to columns function.. however it only changes the date with
two digits in day ( eg. 13022005 is converted to 13/02/2005) but the dates
with single digit day ( eg. 9022005 are not converted to 9/2/2005)

any help pls

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 11:08 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"