+ Reply to Thread
Results 1 to 4 of 4

Change mmm to mmmm ie Mar to March

  1. #1
    Registered User
    Join Date
    05-04-2009
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    33

    Change mmm to mmmm ie Mar to March

    Hi,


    I am trying to change the value of a cell which contains the name of the month in Mmm format into Mmmm format.

    I would like to to this without using the vlookup function.

    Any help would be appreciated.

    ie: cell A1: Nov
    cell B1: would show November
    if the value in A1 is Dec, B1 therefore will be December
    Thx
    Last edited by drawing.blanks; 06-15-2012 at 12:46 AM.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Change mmm to mmmm ie Mar to March

    Is the value in A1 a date value, e.g. 11/1/2010, or a text string like "Nov"?

    If it's a date value, use:

    =text(a1,"mmmm")

    If it's text, try:

    =TEXT(DATE(1900,LOOKUP(A1,{"apr","aug","dec","feb","jan","jul","jun","mar","may","nov","oct","sep"},{4,8,12,2,1,7,6,3,5,11,10,9}),1),"mmmm")

    or

    =LOOKUP(A1,{"apr","aug","dec","feb","jan","jul","jun","mar","may","nov","oct","sep"},{"April","August","December","February","January","July","June","March","May","November","October","September"})

    Note in the month arrays, they are in alphabetical order.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Change mmm to mmmm ie Mar to March

    Another way, if text:

    =TEXT(A1 & "0", "mmmm")
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    05-04-2009
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: Change mmm to mmmm ie Mar to March

    Thanks both Paul & Shg. It works perfectly.

+ 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