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

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
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,213,558
Messages
6,114,296
Members
448,564
Latest member
ED38

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