+ Reply to Thread
Results 1 to 3 of 3

Formula of number Years between two date

  1. #1
    Forum Contributor
    Join Date
    07-17-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    713

    Formula of number Years between two date

    Hi,

    I am aware of the Yearfrac formula to get the number of years between two dates. But i am trying to find a number of years based on the year on date. Example.

    22/12/2014 to 01/04/2021 : it should be 7 years.
    02/02/2015 to 01/04/2021 : it should 6 years.

    Above calculation is purely based on difference between year and not the actual difference of numbers in decimal. as pear YEARFRAC formula, i get 6.27 and 6.16 and hence rounding method doesnt work from me here.

    Please advise

    Kind Regards,
    Keep the Forum clean :


    1. Use [ code ] code tags [ /code ]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. Show appreciation to those who have helped you by clicking * Add Reputation below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

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

    Re: Formula of number Years between two date

    Unless I am misunderstanding something, something like =YEAR(later date)-YEAR(earlier date) should do this.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Contributor
    Join Date
    07-17-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    713

    Re: Formula of number Years between two date

    Thank you. Works like a charm.

+ 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] How to add 1 in a given number for every 3 years from its date assignment
    By archvanarl in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-06-2021, 01:41 AM
  2. [SOLVED] Subtracting date from number of years and month
    By Raehan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-06-2017, 03:58 PM
  3. [SOLVED] how to add number of years to certain date
    By amr7 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-09-2016, 12:05 PM
  4. Counting number of years from date to today
    By profitdr123 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-13-2015, 02:42 AM
  5. formula needed to add a number of years to a date
    By Maryjoefernandez in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-19-2013, 07:41 AM
  6. Age / Date / Number of Years Question
    By thnktwz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-22-2013, 11:20 AM
  7. Add number of Years to higher date in range
    By Knawl in forum Excel General
    Replies: 2
    Last Post: 11-30-2011, 06:21 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