Convert General Number to Date Format

heathbb

New Member
Joined
Mar 7, 2016
Messages
3
I have a unique problem I need solved.
I need to convert a column of general numbers to a date format. I have more than 100000 rows of this format I need converted.

I start with the following general format in the column
1150621
This number equates to 2015 June 21
I want it get it into 21/06/2015 format.
I have used this formula “=20&(REPLACE(LEFT(F6,3)&"-"&MID(F6,4,2)&"-"&RIGHT(F6,2),1,1,""))”
and got the following result
2015-06-21 (which looks like a date to me)
From there I cannot get Excel to format that as a date.
I have tried to copy and paste as value and then format it, cant get it right.:confused:

I am using Excel 2010 on Windows 7 Laptop.

Please help
 

Some videos you may like

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
36,712
Office Version
  1. 2010
Platform
  1. Windows
Try this formula...

=0+TEXT(19000000+F6,"0000-00-00")

then format its cell with the date format you want.
 

AlanY

Well-known Member
Joined
Oct 30, 2014
Messages
4,239
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
will the number say, 3141102 is 02/11/2014?
 

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
36,712
Office Version
  1. 2010
Platform
  1. Windows

ADVERTISEMENT

@heathbb... I think you may have missed what I posted in Message #2.
 

vicedo

Active Member
Joined
Jan 9, 2015
Messages
401
Try:

=DATE(20&LEFT(REPLACE(F6,1,1,""),2),MID(F6,4,2),RIGHT(F6,2))
 

Watch MrExcel Video

Forum statistics

Threads
1,123,318
Messages
5,600,924
Members
414,416
Latest member
Nobu

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