Converting general format to date

vab323

New Member
Joined
Apr 23, 2018
Messages
2
Hi guys I have general column with data that represents date but the format cell type is general I want to convert that data to date format. The problem that I am facing is excel by default puts wrong date considering the Jan 1990 start date.

Example : want to convert 40317(general cell format) to 4/03/17
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hi,

If the years are all 2000 and later:


Excel 2010
AB
1403174/3/2017
212251712/25/2017
Sheet14
Cell Formulas
RangeFormula
B1=DATE(2000+RIGHT(A1,2),LEFT(A1,IF(LEN(A1)=5,1,2)),MID(A1,IF(LEN(A1)=5,2,3),2))


Formula copied down, format result cells as Date.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,757
Members
448,991
Latest member
Hanakoro

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
Back
Top