Hello,
I am trying to create a lookup using multiple criteria that compares a date to date ranges to pull back a result. I was looking at index and match but this is beyond my skill level and hoped someone could help.
Basically I am trying to say return the year in the lookup table when the ID matches and the date is greater than equal to the begin and less than or equal to the end date.
Criteria Expected Result |Lookup Table
ID Date Year |ID Begin Date End Date Year
CY 1/2/2020 2020 |CY 1/1/2020 12/31/2020 2020
CY 5/2/2021 2021 |CY 1/1/2021 12/31/2021 2021
VA 7/24/2020 2021 |VA 5/1/2019 4/30/2020 2020
VA 9/13/2019 2020 |VA 5/1/2020 4/30/2021 2021
YR 5/24/2020 2020 |VA 5/1/2021 4/30/2022 2022
YR 10/23/2021 2022 |YR 7/1/2019 6/30/2020 2020
|YR 7/1/2020 6/30/2021 2021
|YR 7/1/2021 6/30/2022 2022
I will also try and upload the sheet to make it easier.
Thanks for the help
Stephen
Bookmarks