Formula w/ Converting Dates?

RobinTMathew

Board Regular
Joined
Mar 2, 2010
Messages
88
What is the formula for converting

020101 into 01/01/2010?

I've tried the left and right formula but was not getting the correct results.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Try

=DATE(RIGHT(A1,2)+2000,MID(A1,3,2),LEFT(A1,2))
 

sulakvea

Well-known Member
Joined
Jul 2, 2008
Messages
994
how did you get 01/01/2010 from 020101? the way i see it says 02/01/2001. if that's what you meant, then here it is:

=date(right(A1,2) +2000, mid(A1,3,2),left(A1,2))

P.S. +2000, of course
 
Last edited:

RobinTMathew

Board Regular
Joined
Mar 2, 2010
Messages
88
Thank you. You're right but I meant 01/01/2002.

It is read out by year, month, and day (i.e. 020615 = 06/15/2002) In that case would this formula still apply?
 

Watch MrExcel Video

Forum statistics

Threads
1,133,565
Messages
5,659,569
Members
418,508
Latest member
deepakfer

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top