Let's say I have this data with the labeled columns:
Column A is an input. I need cell G1 to match the value in row 1 to what is in cell A2. So in this example, A2 is 120 so G1 would populate with 10. If A2 was 168 it would be 14. That part is straight forward, but there are rules. What goes in G1 has to be within 1 column of the representative value in A1. So A1 is 7, I can only have in G1 5, 7, or 10. If the value in A2 is less than 60, it would return 0. No matter how large the value is in A2, in this example, cell G1 cannot be larger than 10.
Please help.
A | B | C | D | E | F | G |
7 | 5 | 7 | 10 | 14 | 15.167 | |
120 | 60 | 84 | 120 | 168 | 182 |
Column A is an input. I need cell G1 to match the value in row 1 to what is in cell A2. So in this example, A2 is 120 so G1 would populate with 10. If A2 was 168 it would be 14. That part is straight forward, but there are rules. What goes in G1 has to be within 1 column of the representative value in A1. So A1 is 7, I can only have in G1 5, 7, or 10. If the value in A2 is less than 60, it would return 0. No matter how large the value is in A2, in this example, cell G1 cannot be larger than 10.
Please help.