+ Reply to Thread
Results 1 to 5 of 5

how to convert single digit to month name

  1. #1
    cygnus
    Guest

    how to convert single digit to month name


    I can't for the life of me figure out how to convert a number in a cell
    which has a value of 1 to 12 into a month name.
    E.g. If A1=1 then B1 should = "January".

    The date functions don't seem to help unless you have a whole date E.g.
    DD/MM/YYYY.

    Is there a native function I can use, or am I stuck doing a vlookup on
    a list I specify elsewhere?


    --
    cygnus

  2. #2
    Dave Peterson
    Guest

    Re: how to convert single digit to month name

    You can convert it to a date:

    =date(2006,a1,1)
    and format as MMMM

    or

    =text(date(2006,a1,1),"MMMM")

    cygnus wrote:
    >
    > I can't for the life of me figure out how to convert a number in a cell
    > which has a value of 1 to 12 into a month name.
    > E.g. If A1=1 then B1 should = "January".
    >
    > The date functions don't seem to help unless you have a whole date E.g.
    > DD/MM/YYYY.
    >
    > Is there a native function I can use, or am I stuck doing a vlookup on
    > a list I specify elsewhere?
    >
    > --
    > cygnus


    --

    Dave Peterson

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Here's another way

    =TEXT(A1*29,"mmmm")

  4. #4
    Jim Cone
    Guest

    Re: how to convert single digit to month name

    Nice one.
    --
    Jim Cone
    San Francisco, USA
    http://www.realezsites.com/bus/primitivesoftware


    "daddylonglegs"wrote in message...

    Here's another way
    =TEXT(A1*29,"mmmm")

  5. #5
    cygnus
    Guest

    Re: how to convert single digit to month name


    Both are great. Thanks guys!

    daddylonglegs Wrote:
    > Here's another way
    >
    > =TEXT(A1*29,"mmmm")
    >
    >
    > --
    > daddylonglegs
    > ------------------------------------------------------------------------
    > daddylonglegs's Profile:
    > http://www.excelforum.com/member.php...o&userid=30486
    > View this thread:
    > http://www.excelforum.com/showthread...hreadid=536616



    --
    cygnus

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1