+ Reply to Thread
Results 1 to 6 of 6

Extracting the Year from a Date then adding 5 years

  1. #1
    Registered User
    Join Date
    01-15-2021
    Location
    Hampshire
    MS-Off Ver
    PP 2016
    Posts
    8

    Extracting the Year from a Date then adding 5 years

    Hi there - thanks in advance for your help - this is giving me a headache.

    Basically I want to use the Year function to extract a Year from a date (if the cell isn't empty)

    This works:
    =IF(F14=0,"",YEAR(F14)) However I would like to then add 5 years onto the result.

    I have attached the formulas I have used for each cell and highlight in red the one I need looking at.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,727

    Re: Extracting the Year from a Date then adding 5 years

    =if(a2=0,"",year(a2)+5)
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    01-15-2021
    Location
    Hampshire
    MS-Off Ver
    PP 2016
    Posts
    8

    Re: Extracting the Year from a Date then adding 5 years

    Thanks - I tried that but it didn't work - then noticed the cell type was date and not general. So annoying lol
    Thank you

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Taiwan
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,378

    Re: Extracting the Year from a Date then adding 5 years

    Cell C2 formula , Copy and drag right

    HTML Code: 

  5. #5
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Extracting the Year from a Date then adding 5 years

    im not sure what you are expecting because it works very well when the format is general.Screen Shot 2021-08-25 at 8.12.59 am.png

  6. #6
    Forum Contributor
    Join Date
    04-15-2013
    Location
    Singapore, Melbourne
    MS-Off Ver
    Office 365
    Posts
    167

    Re: Extracting the Year from a Date then adding 5 years

    C2 formula, copy or drag to fill the range:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Row row row your boat
    Gently down the stream

+ 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. Extracting Date (year,month,day) from cell with Date (year,month,day,time)
    By TheRobsterUK in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-16-2020, 01:58 PM
  2. Turn date into: Every 6 years = 1 year
    By max_max in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-19-2017, 05:33 PM
  3. [SOLVED] Calculate age between date/year and now to include months ie. 2.3 years
    By micko_escalade in forum Excel General
    Replies: 10
    Last Post: 04-18-2016, 06:34 PM
  4. Adding a number of years to one referenced year
    By SPRoyLLC in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-10-2013, 05:11 PM
  5. Year To Date Filter - Multiple Years
    By andyrow in forum Excel General
    Replies: 4
    Last Post: 01-11-2013, 09:03 AM
  6. Replies: 8
    Last Post: 04-04-2009, 03:55 AM
  7. [SOLVED] add a hire date to the end of year (12/31/05) and get Total years
    By Sohoma Knome in forum Excel General
    Replies: 2
    Last Post: 12-28-2005, 11:25 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