Forum Discussion

TCatron18's avatar
TCatron18
Copper Contributor
Sep 26, 2024

Formula to check if date range falls within another date range

I am trying to determine if a date range falls within another date range for a specific ID.  Example:  Table1 ID Start Date End Date 1 10/9/2022 11/19/2022 2 2/12/2023 3/11/2023 ...
  • TCatron18's avatar
    TCatron18
    Sep 30, 2024
    I was able to find a solution that provided what I needed.
    =IF(COUNTIFS('Leave'!$A$2:$A$44850,"="&'Data'!$A2,'Leave!$B$2:$B$44850,"<="&'Data'!C2,'Leave'!$C$2:$C$44850,">="&'Data'!D2),"Leave","")

Resources