Crazy Question re: Converting Dates

SpineyNorman

New Member
Joined
Apr 30, 2010
Messages
10
I have a large spreadsheet prepared by another party. One of the fields is for the term of a futures contract. To indicate an August 2011 contract, the originator input the date 8/11/2011 in the cell and formatted it with a cumtom format a la d-mmm so the output looks like this: 11-Aug.

This is fine for 2011 but to indicate an August 2012 contract they input the date 8/12/2011 and it looks like this: 12-Aug, even though for calculation purposes it is still year 2011. Why they did this I do not know! :confused:

But I would like a quick formula that could translate this second cell into a date of 8/1/2012 (which would have made sense to me in the first place). I may be making this harder than it should be, but I am going in circles mentally and decided to reach out.

Can anyone help?


Thanks in advance
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Welcome to the board..

I suspect the original preparer didn't actually enter 8/11/2011 or 8/12/2011
Rather, they only entered 8/11 and 8/12
Which excel interpraited and converted them as August 11th and 12th (of the current year).
NOT Aug 1st 2011 and Aug 1st 2012


Is there some other indication on the sheet to tell us what year it's supposed to be?
 
Upvote 0
If you have your date in A2 this formula will convert assuming that the day should be the year

=DATE(100+DAY(A2),MONTH(A2),1)
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

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