+ Reply to Thread
Results 1 to 2 of 2

Get just the year from a date string

  1. #1
    Forum Contributor
    Join Date
    08-14-2012
    Location
    Derby, England
    MS-Off Ver
    Excel 2010
    Posts
    257

    Get just the year from a date string

    Hi All,

    I need to get the year for a formula

    The formula will be:

    Please Login or Register  to view this content.
    The A1 and B1 is from a date e.g 01/01/2013, 01/01/2014 - these cells have to stay in date format as they are being used for something else and I also want the code to automate

    The above code gives me 41275/41640 but I want it to be 2013/2014

    Can anyone help?

    John

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Get just the year from a date string

    Try

    =YEAR(A1)&"/"&YEAR(B1)

+ 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