# Day overran month length 2012-10-36

1. ## Day overran month length 2012-10-36

Hey all,

So imported 100k sales figures from Oracle for Oct and Nov but the day overran and month didn't change.

EX: 2012-10-32 instead of 2012-11-01. So I now have dates ranging from 2012-10-01 to 2012-10-59.
So trying to do date analysis is impossible.
How can I convert? any ideas?

Cheers,
B

2. ## Re: Day overran month length 2012-10-36

You can convert in another column, e.g. if dates start at A2 use this formula in B2 and fill down

=IF(ISNUMBER(A2+0),A2+0,DATE(LEFT(A2,4),MID(A2,6,2),RIGHT(A2,2)))

format dates as required

3. ## Re: Day overran month length 2012-10-36

THanks.... sorry forgot to add the full cell format 2012-10-59 23:52:59 full time stamp.
Works great, how can I keep time stamp - not essential but nice to have :-)

4. ## Re: Day overran month length 2012-10-36

It works perfectly. sorry my mistake. Even with time.
Great, Thanks!!!

5. ## Re: Day overran month length 2012-10-36

Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

In future, to mark your thread as Solved, you can do the following -

Incase your issue is not solved, you can undo it as follows -

Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.

6. ## Re: Day overran month length 2012-10-36

If you use the formula I suggested and you also have the time in there then you'll get an incorrect date in most instances. This version should convert correctly and retain the time

=IF(ISNUMBER(A2+0),A2+0,DATE(LEFT(A2,4),MID(A2,6,2),MID(A2,9,2))+RIGHT(A2,8))

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1