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,078,470
Messages
5,340,511
Members
399,381
Latest member
impurnasekar

Some videos you may like

This Week's Hot Topics

  • Problem with Radio Button's format control
    I am creating an employee evaluation template (a sample is below) Column A is the category Column B, C D, E and F will be ratings (unacceptable...
  • Last Display on userform to a Listbox
    [CODE=vba] lstdisplay.ColumnCount = 15 lstdisplay.RowSource = "A1:O600000" [/CODE] So when i do this it Displays everything on the sheet i am...
  • Rename and move files to a new location
    Dear all, I have an excel file with the following information. The actual file name is at column A but i want to rename it using the following...
  • Help with True/False Formula
    Hello! Am stumped how to fix this formula, in which my result returns 'True', but it should return False. =IF(AG2=True...
  • Clear extra characters from a provided range of cells
    Dear All, I have following code which gives me desired output to remove extra characters from a provided range. But it takes too much time when...
  • Help with Current and highest streaks
    Hi there, I've just joined the forum and this is my first post. I've already spent quite a bit of time searching the net and this forum for a...
Top