+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : calculate number of years that occur

  1. #1
    Registered User
    Join Date
    03-15-2010
    Location
    London,
    MS-Off Ver
    Excel 2007
    Posts
    20

    calculate number of years that occur

    Hello all

    Let's say I have two dates, 1st October 2010 and 1st September 2012. I want to count the number of years, including the year of the start date. So I want a formula that is going to give me 3, because there are 3 years, 2010, 2011 and 2012. Anyone have any ideas?

    Thanks
    Last edited by can2c; 05-17-2010 at 12:15 PM.

  2. #2
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: calculate number of years that occur

    =year(a1)-year(a2)+1
    Regards
    Darren

    Update 12-Nov-2010 Still job hunting!

    If you are happy with the results, please add to our reputation by clicking the blue scales icon in the blue bar of the post.

    Learn something new each day, Embrace change do not fear it, evolve and do not become extinct!


  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: calculate number of years that occur

    try:

    =YEAR(B10)-YEAR(A10)+1

    where A10 and B10 have the start, end dates, respectively.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    03-15-2010
    Location
    London,
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: calculate number of years that occur

    lol. Yep this is good, thanks

+ 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