Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

month function convert string

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Month function convert to string

Month function convert to string

ResolvedVersion 2007

Danny has attended:
Excel Intermediate course

Month function convert to string

The month() function returns a number from 1-12, and i normally convert that into Jan-Dec using a lookup which lists number and month. Is there some sort of function which returns the month as a string (without formatting the date itself).

Thanks

RE: Month function convert to string

Hi Danny

You could use the Choose function instead of a vlookup.

=CHOOSE(MONTH(A2),"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")

where the cell A2 contains a date.

The function then returns the correct Month for a particular date.

Doug

Doug Dunn
Best STL

RE: Month function convert to string

Will this do the same trick?

=text(A1*29,”MMMM”)

Where A1 from 1 to 12

RE: Month function convert to string

Yes that works as well.

Doug
Best STL

Will be marked as resolved in 5 days

Notice: This is an automated message. Due to inactivity, this forum post will be marked as 'resolved' if there are no further responses in the next 5 days.

Fri 23 Nov 2012: Automatically marked as resolved.

Excel tip:

Showing all menu items

If you go into a pull down menu you usally find that you get a selection of items(this is the default) or sometimes everything. If you only get a selectiopn you have to go to the double arrows at the bottom of the menu and click it to get all of the hidden items.
To turn this off so that you always get everything, go to Tools / Customize / Options Tab / "Always show full menus". Make sure there is a tick in the box and you will always have every item.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.