Multiple Lookups

mArkcpp

Board Regular
Joined
Aug 8, 2002
Messages
60
Hello. I've searched the forums, but I haven't run across a solution to my problem.

I have a table that looks something like this:

10 20 30 40 50 60 70 80 90 100 %
ID1 0.5 2 5 10 15 25 35 55 85 100
ID2 5 7 10 20 45 75 150 250 300 400
ID3 etc..............
ID4 etc...........

I need to look up one of the IDs (specified by the user), read across to another value that is specified by the user, then read the % value across the top that corresponds to that ID and number.

I've tried combinations of lookups, V and H Lookups, MATCH, Index, but I can't get anything to work.

I thought I could get match to get the row then do a lookup on just that row of data to get the % value across the top, but I can't figure that out.

Any help would be greatly appreciated. I was hoping there was a function to do this rather than a macro.

Thanks,
Mark
 

acw

MrExcel MVP
Joined
Feb 13, 2004
Messages
4,814
Mark

Assuming that your data is in the range A1:K3 and the lookup id is in A7 and the value in A8 then try

Code:
=INDEX(B1:K1,MATCH(A8,OFFSET(B1:K1,MATCH(A7,A2:A3,0),0)))

Tony
 

mArkcpp

Board Regular
Joined
Aug 8, 2002
Messages
60
Tony, thanks for the help!! It worked perfectly. Now I just need to work through it so that I understand it. Thanks for the quick response.

Mark
 

Forum statistics

Threads
1,082,639
Messages
5,366,708
Members
400,914
Latest member
anandkb

Some videos you may like

This Week's Hot Topics

Top