+ Reply to Thread
Results 1 to 2 of 2

Find date within a range of dates and input a value in the next free cell

  1. #1
    Registered User
    Join Date
    10-25-2010
    Location
    Toronto
    MS-Off Ver
    Excel 2016
    Posts
    24

    Find date within a range of dates and input a value in the next free cell

    I have a list of dates in sheet 1 and a second sheet with a range of dates. I need to compare the first list of dates and have the "period" value input when the date falls in the range. I used the sumproduct and index/match but get a "0" not the value in the relevant cell.

    I have attached a file which has the data and the formula I used which did not work.
    Attached Files Attached Files
    Last edited by usurrao; 10-26-2010 at 09:17 AM.

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

    Re: Find date within a range of dates and input a value in the next free cell

    Sumproduct can only return numeric outputs...

    Try:

    =LOOKUP(2,1/((PeriodEndTable!$B$2:$B$13<=A2)*(PeriodEndTable!$C$2:$C$13>=A2)),PeriodEndTable!$A$2:$A$13)

    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.

+ 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