Hi guys,
I'm trying to find an index/match/sumproduct formula with multiple criteria within a list, but the kicker is, it should also look for a date between a date range which is in 2 different columns and the formula should return a text and/or number from the dataset if it matches exactly with the criteria & the date is within a certain range.
Please check out the attached file; which looks like this
FL EQ SALES DOC BEGINDATE ENDDATE CONTRACT
5501014 Instr Instr 1 450000153 1/01/2016 31/12/2016 POR1
5501015 Instr Instr 1 450000154 1/01/2016 31/12/2016 FULL1
5501014 Instr Instr 1 450000153 1/01/2017 31/12/2017 7
5501015 Instr Instr 1 450000154 1/01/2017 31/12/2017 FULL3
5501014 Instr Instr 2 450000153 1/01/2016 31/12/2016 FULL4
5501015 Instr Instr 2 450000154 1/01/2016 31/12/2016 POR5
5501014 Instr Instr 2 450000153 1/01/2017 31/12/2017 FULL6
5501015 Instr Instr 2 450000154 1/01/2017 31/12/2017 POR7
5501015 Instr 1 10/04/2017 FULL1
How to check if these 3 parameters (550105, Instr 1 and on the date of 10/04/2017) there
was a valid contract in the system ? Then return the contract tekst back
Formula should also work for when the formula must return a value
In this case, the requested formula should return FULL3 as answer because the date of 10/04/2017 falls within the range between 01/01/2017 and 31/12/2017
but if the date changes to 15/07/2016, the formula should return FULL1 as answer
and if the FL changes to 5501014, the answer should be 7
I'm trying to find an index/match/sumproduct formula with multiple criteria within a list, but the kicker is, it should also look for a date between a date range which is in 2 different columns and the formula should return a text and/or number from the dataset if it matches exactly with the criteria & the date is within a certain range.
Please check out the attached file; which looks like this
FL EQ SALES DOC BEGINDATE ENDDATE CONTRACT
5501014 Instr Instr 1 450000153 1/01/2016 31/12/2016 POR1
5501015 Instr Instr 1 450000154 1/01/2016 31/12/2016 FULL1
5501014 Instr Instr 1 450000153 1/01/2017 31/12/2017 7
5501015 Instr Instr 1 450000154 1/01/2017 31/12/2017 FULL3
5501014 Instr Instr 2 450000153 1/01/2016 31/12/2016 FULL4
5501015 Instr Instr 2 450000154 1/01/2016 31/12/2016 POR5
5501014 Instr Instr 2 450000153 1/01/2017 31/12/2017 FULL6
5501015 Instr Instr 2 450000154 1/01/2017 31/12/2017 POR7
5501015 Instr 1 10/04/2017 FULL1
How to check if these 3 parameters (550105, Instr 1 and on the date of 10/04/2017) there
was a valid contract in the system ? Then return the contract tekst back
Formula should also work for when the formula must return a value
In this case, the requested formula should return FULL3 as answer because the date of 10/04/2017 falls within the range between 01/01/2017 and 31/12/2017
but if the date changes to 15/07/2016, the formula should return FULL1 as answer
and if the FL changes to 5501014, the answer should be 7