Convert Month Number to Text

Smurfit-Stone

Active Member
Joined
Dec 1, 2004
Messages
485
Hello, I have a query and report that prompts the user to enter a month (e.g. 1,2,3 etc) I'd like to add the month in the header of the report created using this query. Currently is shows the month number, but I'd like to change it to text (e.g. 1-January, 2-February, 3-March etc.) would I do this in the query itself or in the properties of the textbox I've placed the formula in on the report......I thought I'd fix it by creating a table with the months listed with a autonumber, but now I dont' know how to add the table to the query expression or to the report textbox.....HELP
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Say your month number field is named MonthNum, then in a query, create this calculated field:

MonthName:[MonthNum] & "-" & Format(DateSerial(2005,[MonthNum],1),"mmmm")

This will return what you are looking for.
 
Upvote 0

Forum statistics

Threads
1,214,913
Messages
6,122,207
Members
449,074
Latest member
cancansova

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