+ Reply to Thread
Results 1 to 4 of 4

Formula to return an answer for 8 different date ranges

  1. #1
    Registered User
    Join Date
    06-26-2012
    Location
    Greenville, NC
    MS-Off Ver
    Excel 2010
    Posts
    2

    Formula to return an answer for 8 different date ranges

    Hello, I was trying to come up with a formula that would take a list of dates and return back a value, 1st year, 2nd year, 3rd year, etc.
    For example, Column A has a list of 10,000 or more dates ranging from Jan 2005 to May 2012. In column B, I would like to create a formula that would return what year range that date fell on. 03/01/2012 to 02/28/13 Year 1
    03/01/2011 to 02/29/12 Year 2
    03/01/2010 to 02/28/11 Year 3
    03/01/2009 to 02/28/10 Year 4
    03/01/2008 to 02/28/09 Year 5
    03/01/2007 to 02/29/08 Year 6
    03/01/2006 to 02/28/07 Year 7
    03/01/2005 to 02/28/06 Year 8
    So if the date in column A was 03/15/2010, the formula would return a value of 3, if the date in column A was 12/21/2007, the formula would return a value of 6.

    Any help with this would be appreciated.
    Thank you.

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

    Re: Formula to return an answer for 8 different date ranges

    If you place the lower bound dates in chronological ascending order, stating with the 2005 year... in say R1:R8, then the corresponding definitions, say in U1:U8

    and say first date is in A2, try formula:

    =LOOKUP(A2,$R$1:$U$8)

    copied down
    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.

  3. #3
    Registered User
    Join Date
    06-26-2012
    Location
    Greenville, NC
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Formula to return an answer for 8 different date ranges

    Awesome!!!! That did the trick!!!

    Thank you very much!!!

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

    Re: Formula to return an answer for 8 different date ranges

    You are welcome.

    Please mark your thread as SOLVED

+ 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