Convert Month Number to its Text Name

JEB85

Board Regular
Joined
Aug 13, 2010
Messages
238
Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p> </o:p>
I’m wanting to allow the user to do some extraction based on an entered month and an entered year.<o:p></o:p>
<o:p> </o:p>
In cell C2 they enter the month e.g. March<o:p></o:p>
In cell C3 THEY ENTER THE YEAR e.g. 2010<o:p></o:p>
<o:p> </o:p>
My data set runs from B6:P1006 (row 6 houses the field names)<o:p></o:p>
<o:p> </o:p>
I have a list of dates in H7:H1006.<o:p></o:p>
<o:p> </o:p>
My plan is to use advanced filter to extract the dates based on what’s entered in cells C2 & C3.<o:p></o:p>
<o:p> </o:p>
In cell R7 (the criteria element of the advanced filter) I’ve entered the formula =AND(YEAR(H7)=$C$3,MONTH(H7)=$C$2)<o:p></o:p>
<o:p> </o:p>
The problem is is that the month function produces a number, how do I go about converting it to its text name? e.g. so 2 would be recognised as February?<o:p></o:p>
<o:p> </o:p>
Thanks<o:p></o:p>
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,224,509
Messages
6,179,194
Members
452,893
Latest member
denay

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