Hi Everyone,
I have a table in A22:E26, it has the categories A,B,C,D and E in row 22. In rows 23 to 26 it has values that i want to look up and return in cell B9.
The user inputs the value of the category they are in into B6. Either A,B,C,D or E.
They also input a value into E5, This decides which row the data is returned from. If the value in E5 is 0 to 26000, it would be the data in row 23, 26001 to 39000 Row 24, 39001 to 48000 row 25, 48001 and higher row 26. E.G category C at 48002 would return the value in C26, Category A at 10000 would return the value in A23 an so on.
I am using the formula
=IF(AND(E5>=MIN($K$4:$K$7), E5<=MAX($L$4:$L$7)), INDEX($A$23:$E$26, MATCH(B6, $A$22:$E$22, 0), MATCH(E5, $A$23:$A$26, 1)), "Invalid Input")
Which is the closest i have got to getting this to work.
However i keep getting the wrong cell returned as an answer.
E.G if i have Category D and a value of 27000 it should return the value in D24 but i get the value from A25.
I will try to upload a copy of the sheet later if needed.
Thanks
I have a table in A22:E26, it has the categories A,B,C,D and E in row 22. In rows 23 to 26 it has values that i want to look up and return in cell B9.
The user inputs the value of the category they are in into B6. Either A,B,C,D or E.
They also input a value into E5, This decides which row the data is returned from. If the value in E5 is 0 to 26000, it would be the data in row 23, 26001 to 39000 Row 24, 39001 to 48000 row 25, 48001 and higher row 26. E.G category C at 48002 would return the value in C26, Category A at 10000 would return the value in A23 an so on.
I am using the formula
=IF(AND(E5>=MIN($K$4:$K$7), E5<=MAX($L$4:$L$7)), INDEX($A$23:$E$26, MATCH(B6, $A$22:$E$22, 0), MATCH(E5, $A$23:$A$26, 1)), "Invalid Input")
Which is the closest i have got to getting this to work.
However i keep getting the wrong cell returned as an answer.
E.G if i have Category D and a value of 27000 it should return the value in D24 but i get the value from A25.
I will try to upload a copy of the sheet later if needed.
Thanks