I have the following table to search: A1:D10
<tbody>
</tbody>
For each of these records, I need to return the CHG value from column D where from the table below, the ISO field is a match and the PC field is between the Start and End values inclusive.
That is to say:
ISO = DE and PC = 1 in the table below should bring back the value of 1 from D2 above.
ISO = DE and PC = 44 in the table below should bring back the value of 5 from D5 above.
ISO = DK and PC = 3 in the table below should not return a value from the table above.
ISO = EE and PC = 55 in the table below should bring back the value of 6 from D9 above.
<tbody>
</tbody>
I am looking for Formula based answers is possible please.
Many thanks for your time.
ISO | Start | End | CHG |
DE | 1 | 1 | 1 |
DE | 10 | 20 | 2 |
DE | 21 | 30 | 4 |
DE | 40 | 55 | 5 |
DK | 10 | 20 | 8 |
DK | 21 | 30 | 9 |
EE | 21 | 30 | 3 |
EE | 40 | 55 | 6 |
EE | 56 | 56 | 7 |
<tbody>
</tbody>
For each of these records, I need to return the CHG value from column D where from the table below, the ISO field is a match and the PC field is between the Start and End values inclusive.
That is to say:
ISO = DE and PC = 1 in the table below should bring back the value of 1 from D2 above.
ISO = DE and PC = 44 in the table below should bring back the value of 5 from D5 above.
ISO = DK and PC = 3 in the table below should not return a value from the table above.
ISO = EE and PC = 55 in the table below should bring back the value of 6 from D9 above.
ISO | PC | CHG |
DE | 1 | |
DE | 10 | |
DE | 44 | |
DE | 20 | |
DE | 31 | |
DK | 3 | |
DK | 10 | |
DK | 15 | |
DK | 30 | |
DK | 31 | |
EE | 1 | |
EE | 21 | |
EE | 55 | |
EE | 56 | |
EE | 57 |
<tbody>
</tbody>
I am looking for Formula based answers is possible please.
Many thanks for your time.