Cell A1 has the month number e.g. 3
I want to convert this to a month name e.g. March
Could anyone please tell me if there is an easier way of doing this? I am currently doing it this way:
=TEXT(DATEVALUE("1/"&A1&"/2000"),"mmmm")
Thanks
---
Last edited by marketshare; 03-09-2010 at 12:30 AM.
AFAIK, that is probably one of the easiest ways...
Other ways, are the CHOOSE() Function..
e.g. =CHOOSE(A1,"January","February","March", etc...)
or you can have a list of numbers, 1 to 12 somewhere, with corresponding months next to them... then use a LOOKUP function
e.g. =Lookup(A1,X1:Y12) where X1:Y12 contain the lookup table...
yours could be shortened a little to:
=TEXT("1/"&A1&"/2000"+0,"mmmm")
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks