Converting Numbers to Dates

Savastano

New Member
Joined
Aug 16, 2016
Messages
4
Using the bloomberg function for my work I am extracting numerous dates of data releases. These come in a strictly number format, as well as being in a funny order.

I.E. 20100214 is 14/02/2010
20110909 is 09/09/2011

Is there a formula to amend the numbers on the left in the example to a proper date format?

Thanks in advance
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Hi,

Try this, may not work if your region Date format is different than mine:


Book1
AB
1201002142/14/2010
2201109099/9/2011
Sheet563
Cell Formulas
RangeFormula
B1=REPLACE(REPLACE(A1,5,0,"/"),8,0,"/")+0


Format result cells as "Date".
 
Upvote 0
If 20100214 is in cell A1, try in B1 the following formula:
=DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))
 
Last edited:
Upvote 0
Here is one more (it returns the date as a serial number, so you will have to format the cell with the date format of you choice)...

=0+TEXT(A1,"0000-00-00")
 
Upvote 0
You're welcome, glad they worked for you, you have many solutions to choose from.
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,306
Members
452,633
Latest member
DougMo

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