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

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

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?
 

Forum statistics

Threads
1,176,402
Messages
5,902,855
Members
435,001
Latest member
ahsanali32

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