+ Reply to Thread
Results 1 to 2 of 2

INDEX MATCH that compares if date is between two dates and returns yes or no

  1. #1
    Registered User
    Join Date
    02-15-2022
    Location
    Jonesboro, AR
    MS-Off Ver
    MS Office 365
    Posts
    1

    INDEX MATCH that compares if date is between two dates and returns yes or no

    I'm trying to create a spreadsheet to eliminate hours of manual data entry, but I'm very new to using INDEX and MATCH. I'm trying to make it so the Jan-Mar sheet looks through the data dump sheet for employee names and the date a task was completed, then if the date falls between two dates on the date ranges sheet, return a yes or no on the corresponding week on the Jan-Mar tab.

    I've been scouring forums for hours now and can't quite get it right.
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,747

    Re: INDEX MATCH that compares if date is between two dates and returns yes or no

    Please see solution attached. However, note that in many cases an employee has more than one date that falls in a week. So you will get a Yes if the employee has completed one or more tasks that week.

    You were on the right track with INDEX and MATCH but it's a bit more complicated. When asking a question it is best to tell us your inputs and desired results, and avoid telling us how you think it should be done.

    =IF(COUNTIFS('Data Dump'!$A:$A,$A3,'Data Dump'!$B:$B,">="&INDEX('Date Ranges'!$B:$B,MATCH(B$2,'Date Ranges'!$A:$A,0)),'Data Dump'!$B:$B,"<="&INDEX('Date Ranges'!$C:$C,MATCH(B$2,'Date Ranges'!$A:$A,0)))>0,"Yes","No")
    Attached Files Attached Files
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. Replies: 15
    Last Post: 11-25-2017, 03:47 AM
  2. Index Match Formula that Returns Most Recent Date
    By Catanzaroe in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-21-2017, 03:45 PM
  3. [SOLVED] Macro that compares 2 dates. I need to extract just date, first
    By lcgar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-29-2016, 10:36 AM
  4. [SOLVED] Trying to calculate- compares two dates, chooses later date, tells days to current date
    By Vicious00013 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-31-2016, 12:20 PM
  5. [SOLVED] IF date value returned from Index/Match is blank, return prior cell that returns a value
    By gunnerau in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-11-2014, 08:40 PM
  6. Calculate month to date returns, index and match
    By nickmangan in forum Excel General
    Replies: 2
    Last Post: 07-13-2012, 07:01 AM
  7. [SOLVED] Function that compares dates and returns TRUE or FALSE
    By Emily in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-25-2006, 04:30 PM

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