Change number sequence to date format

PIVOTGURU

New Member
Joined
Jul 7, 2011
Messages
5
I'm Using Excel 2010 PowerPivot. I receive various indepdent reports that all send different date structures which I'm combining into one spreadsheet. The easy ones are the ones originating in one of many traditional date structures (like, 09/23/2013). However, the ones I receive via EDI for obvious reasons put the year first then month/day.

Example: Ship Date sent = 20130923
I need: 09/23/2013

I've been able use LEFT, MID, RIGHT to populate a Year, Month column etc.. I thought this would work, however, as I'm building more complexe measures I'm needing a date table so I can calcuate SUM, GROWTH YTD, YTD PRIOR etc..

Thank you for any insight you can provide -I've searched online and in Bill Jelen's book, PowerPivot for the Data Analyst (which is awesome by the way). Thanks again!</SPAN>
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
I'm Using Excel 2010 PowerPivot. I receive various indepdent reports that all send different date structures which I'm combining into one spreadsheet. The easy ones are the ones originating in one of many traditional date structures (like, 09/23/2013). However, the ones I receive via EDI for obvious reasons put the year first then month/day.

Example: Ship Date sent = 20130923
I need: 09/23/2013

I've been able use LEFT, MID, RIGHT to populate a Year, Month column etc.. I thought this would work, however, as I'm building more complexe measures I'm needing a date table so I can calcuate SUM, GROWTH YTD, YTD PRIOR etc..

Thank you for any insight you can provide -I've searched online and in Bill Jelen's book, PowerPivot for the Data Analyst (which is awesome by the way). Thanks again!

Hi given in A1 your string 20130923 in B1 type =TEXT(A1,"0000\/00\/00")+0 which one formatted to date will return 9/23/13

Would that work for you
 
Upvote 0

Forum statistics

Threads
1,223,970
Messages
6,175,726
Members
452,667
Latest member
vanessavalentino83

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