+ Reply to Thread
Results 1 to 2 of 2

Extract Year or Month only from a cell with date and time

  1. #1
    Registered User
    Join Date
    12-04-2012
    Location
    At my desk
    MS-Off Ver
    2010
    Posts
    9

    Extract Year or Month only from a cell with date and time

    How do I extract the year or month only from a cell with the date in the format of: mmm d, yyyy h:mm:ss AM/PM. Fumbled around with a few things and haven't come up with the answer yet.

    Thank you,
    Dan

    Thanks for the solution. Figured I was way over thinking it.
    Last edited by djaurit; 01-28-2013 at 04:13 PM. Reason: Solved

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Extract Year or Month only from a cell with date and time

    Dan

    If it's a 'real' date/time you can use the YEAR and MONTH functions.

    MONTH will return the month number, but if you wanted the month name you can use TEXT.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

+ 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