+ Reply to Thread
Results 1 to 5 of 5

How to display only the month when given date value

  1. #1
    Registered User
    Join Date
    05-22-2012
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2010
    Posts
    16

    How to display only the month when given date value

    What's the easiest and quickest way to display only the month portion of a date string? E.g., if I have 1/01/2013 in cell A1, how do I display only "January" in cell B1 based on A1's content? The MONTH() function will return a serial number for January, but not the text. I could write a short VBA code macro to parse the number and display the text, but that seems like over kill. Surely there's some Excel function that can do this instead?

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: How to display only the month when given date value

    hi gmatoka. try:
    =TEXT(A1,"mmm")

    or:
    =A1
    format cells to custom:
    mmm

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor BenMiller's Avatar
    Join Date
    12-06-2011
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    254

    Re: How to display only the month when given date value

    If you copy the information (or with a formula, like =A1) into column B and right-click>format cells>custom format and type mmm it will display Jan, Feb, etc. You can play around with the preset date formats to get what you want too.
    "I'm not a perfectionist; I'm just perfect."

  4. #4
    Registered User
    Join Date
    05-22-2012
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: How to display only the month when given date value

    Thanks, you guys are great!

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to display only the month when given date value

    =TEXT(A1,"mmm") returns the short month name Jan

    =TEXT(A1,"mmmm") returns the long month name January

    In some international locations the format codes can be different so you should be aware of that if distributing files to other countries.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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