Date Conversion Question

jekl1000

New Member
Joined
Sep 19, 2014
Messages
15
Hi all,

I have a data export that provides the date as MMM DD, YYYY. Because of this format it is not being recognized as a date that I can convert to MM/DD. Does anyone know of a way to convert something like Aug, 15, 2017 to 8/15? Any help would be greatly appreciated.

Kyle
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Something like this? (Depends on whether there's a comma after the month):


Excel 2016 (Windows) 32 bit
AB
1Aug, 15, 201708/15
2Aug 15, 201708/15
Sheet2
Cell Formulas
RangeFormula
B1=DATEVALUE(MID(A1,6,2)&"-"&MID(A1,1,3)&"-"&MID(A1,10,4))
B2=DATEVALUE(MID(A2,5,2)&"-"&MID(A2,1,3)&"-"&MID(A2,9,4))


WBD
 
Last edited:
Upvote 0
Is there a comma after the month or not?
You say the format is:
MMM DD, YYYY

but you show an extra comma in your example:
Aug, 15, 2017

If it does not have that extra comma, Excel has no problem converting this to a date.
My guess is that the data is being read in as Text instead of a Date.
You can easily convert a column of Text entries like this to a Date using "Text to Columns" from the data menu.
Or, you can use the DATEVALUE function to convert it to a valid date, where you can choose any Date Format you like.

If you need it to be the Text value of "MM/DD" (and not really a date), this formula would do that:
Code:
=TEXT(DATEVALUE(A1),"mm/dd")
 
Upvote 0
Wow you guys are fast! So sorry, that was a typo in the example. The data is provided as MMM DD, YYYY
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,312
Members
452,634
Latest member
cpostell

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