Sorry, I can't post image here because of restriction. But, I can't find another way to explain my problem.
I have a sheet like that. And then, I need cell B5 to return a value based on data from table below ID respectively. In cell A1, I used drop down list that contains IDs.
For example:
When A1 is 1 then B5 will return value from L5 and C5 will return value from M5.
when A1 is 2 then B5 will return value from L5 and C5 will return value from M5.
So, I create a formula in B5 like this:
=LOOKUP(A5,LOOKUP($A$1,$E$5:$E$14,$G$5:$G$14),LOOKUP($A$1,$E$5:$E$14,$H$5:$H$14))
And, then I stuck to make G5, H5 and I5 to return a range.
Any solutions?
EDIT: Sorry, I made a mistake. I've edited the example formula above.
UPDATE DETAILS:
Assuming A1 is 1. Then the expected formula will be like this:
=LOOKUP(A5, value of G5 , value of H5)
which G5 for ID 1 should have range K5:K14 and H5 for ID 1 should have range L5:L14 (here's my problem).
if only I can type K5:K14 in G5 and L5:l14 in H5, and both can work as ranges, I think my problem should be solved.
B5
pulling a value from ColumnL
, but then you show a formula whereB5
looks at ColumnsH
andI
!