PC Review


Reply
Thread Tools Rate Thread

How do I change date yyyymmdd to a Excel-supported date format?

 
 
dan
Guest
Posts: n/a
 
      6th Jul 2008
I have a column of imported data information of the format yyyymmdd, e.g.,
18400314. Excel does not recognize this date format. How do I change it so
that Excel will recognize it?
Many thanks for any help.
 
Reply With Quote
 
 
 
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      6th Jul 2008
Do you really have dates before 1900 as your example showed? If so, I don't
think Excel will be able to handle them. If on other hand, that was just a
mistaken year example, then try this procedure... select your column of
numbers, click Date/TextToColumns on Excel's menu bar, click OK twice to get
to Step 3 of 3 and select YMD from the Date drop-down in the upper right
corner of the dialog box, then click Finish. That should turn your numbers
into real dates.

Rick


"dan" <(E-Mail Removed)> wrote in message
news:24451C93-1C8D-4CE6-8023-(E-Mail Removed)...
>I have a column of imported data information of the format yyyymmdd, e.g.,
> 18400314. Excel does not recognize this date format. How do I change it so
> that Excel will recognize it?
> Many thanks for any help.


 
Reply With Quote
 
NoodNutt
Guest
Posts: n/a
 
      6th Jul 2008
G'day Dan

The closest I could come to converting this into what resembles a date
format is this

Assume:

18400314 = A3

place this in B3 =RIGHT(A3,2) ' this will give you the Day = 14
place this in C3 =MID(A3,5,2) ' this will give you the Month = 03
place this in D3 =LEFT(A3,4) ' this will give you the year = 1840

To comine them into one

place this in E3 =B3&"/"&C3&"/"&D3 ' this will give you this:

14/03/1840

The only drawback is that this is text, not date.

One of the many MVP Guru's may provide something more suitable.

HTH
Mark.


 
Reply With Quote
 
dan
Guest
Posts: n/a
 
      6th Jul 2008
Thank you...it worked! I did have years in the 1800s, but I just added the
equivalent of 100 yrs to them to make them 1900s.

dan

"Rick Rothstein (MVP - VB)" wrote:

> Do you really have dates before 1900 as your example showed? If so, I don't
> think Excel will be able to handle them. If on other hand, that was just a
> mistaken year example, then try this procedure... select your column of
> numbers, click Date/TextToColumns on Excel's menu bar, click OK twice to get
> to Step 3 of 3 and select YMD from the Date drop-down in the upper right
> corner of the dialog box, then click Finish. That should turn your numbers
> into real dates.
>
> Rick
>
>
> "dan" <(E-Mail Removed)> wrote in message
> news:24451C93-1C8D-4CE6-8023-(E-Mail Removed)...
> >I have a column of imported data information of the format yyyymmdd, e.g.,
> > 18400314. Excel does not recognize this date format. How do I change it so
> > that Excel will recognize it?
> > Many thanks for any help.

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I change the date format from yyyymmdd to mm/dd/yyyy Charlene Microsoft Excel Worksheet Functions 4 16th Sep 2009 08:13 PM
Change date from yyyymmdd to valid date format denilynn Microsoft Excel Misc 4 2nd Sep 2009 07:19 PM
How do you change a date that is in the yyyymmdd format to mmddyy =?Utf-8?B?Tm9ydG9u?= Microsoft Excel Misc 2 8th Mar 2006 03:15 PM
Need macro to change date from yyyymmdd format to mm/dd/yyyy forma =?Utf-8?B?SXJpcw==?= Microsoft Excel Programming 3 16th Nov 2005 10:29 PM
Date format change from yyyymmdd to mm/dd/yyyy =?Utf-8?B?UGV0ZXI=?= Microsoft Excel Misc 1 3rd Dec 2003 09:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:26 AM.