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 Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

yankee428

Active Member
Joined
Apr 12, 2004
Messages
348
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.
 

James0816

Board Regular
Joined
Dec 8, 2003
Messages
92
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.
 

Domenic

MrExcel MVP
Joined
Mar 10, 2004
Messages
20,634
Office Version
  1. 365
Platform
  1. Windows
Try the following...

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

Hope this helps!
 

Forum statistics

Threads
1,181,072
Messages
5,927,958
Members
436,580
Latest member
ajoshi76

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
Top