+ Reply to Thread
Results 1 to 5 of 5

Converting a Date/Time to Month

  1. #1
    Forum Contributor
    Join Date
    08-25-2015
    Location
    Near Pittsburgh, PA
    MS-Off Ver
    Excel 2013
    Posts
    152

    Converting a Date/Time to Month

    I've got data exported from our system that shows this in the date column, cell C5:
    01/01/2016 5:45:34 AM
    I need another column (B5) to show either JAN or Jan 16 (caps irrelevant).
    I tried LEFT(C5,10) but it returns 42370.2399 (and I understand why).
    I tried DATE and DATEVALUE but obviously they don't work.

    Is there a formula that can get me to JAN or JAN16?

    Thanks!

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Converting a Date/Time to Month

    =TEXT(C4, "mmm yy")

  3. #3
    Forum Contributor
    Join Date
    08-25-2015
    Location
    Near Pittsburgh, PA
    MS-Off Ver
    Excel 2013
    Posts
    152

    Re: Converting a Date/Time to Month

    Worked perfectly - thanks so much!
    Reputation * given

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,811

    Re: Converting a Date/Time to Month

    Exactly what do you need?

    You can use =C5 in B5, then format as "mmm". Cell B5 will contain the exact same date/time serial number as C5, but will be formatted to only display the three letter month name.
    You can use =INT(C5), then format as "mmm". Cell B5 will contain the "date" part of the date/time serial number, and can be formatted as above.
    You can use MONTH(C5) to return the month number, then use a lookup value to get the desired "text string" to go with it. =INDEX({"Jan","Feb",...},MATCH(MONTH(C5),{1,2,3...},0)). Note that, in this variation, the result is not a date/time serial, but a text string.
    I'm sure there are other approaches and variations.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Forum Contributor
    Join Date
    08-25-2015
    Location
    Near Pittsburgh, PA
    MS-Off Ver
    Excel 2013
    Posts
    152

    Re: Converting a Date/Time to Month

    Thanks so much for your input.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Converting Date to month in COUNTIFS function
    By jajone4 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-17-2014, 12:09 PM
  2. Converting date to US month format
    By Ozwilly in forum Excel General
    Replies: 9
    Last Post: 10-09-2011, 07:41 PM
  3. converting date to 'month spelled out'
    By tlapointe1970 in forum Excel General
    Replies: 3
    Last Post: 08-18-2011, 10:11 AM
  4. Converting a day date to a month and year
    By Stu100 in forum Excel General
    Replies: 3
    Last Post: 10-16-2008, 08:02 AM
  5. Converting date to month/year and sorting
    By kmontgomery in forum Excel General
    Replies: 2
    Last Post: 03-05-2008, 06:37 PM
  6. Replies: 0
    Last Post: 08-23-2005, 12:24 PM
  7. Date Format - converting number of month to name of month
    By Merlinwb in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 04-12-2005, 11:55 AM

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