Convert Month Text into a value

James0816

Board Regular
Joined
Dec 8, 2003
Messages
92
I have A2 populated with the name of the month (January) and A4 with a year (2005). In D2, I want to assemble a date like 1/01/2005. Thought this should be relatively simple but seeming to have problems with it.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
James,

I think we are missing something. If month is in A2, year in A4, where is the day? You need all three to make this combo.
 
Upvote 0
Was actually hard coding "1" for the day since I am looking for the 1st day of the month (A2) and then the first day of the next month (A2+1 in a sense).

Since A2 is January, I should have 1/1/05 and 2/1/05.
 
Upvote 0
Try the following...

=DATEVALUE(A2&" 1, "&A4)

Hope this helps!
 
Upvote 0

Forum statistics

Threads
1,215,004
Messages
6,122,656
Members
449,091
Latest member
peppernaut

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