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,323
Messages
5,364,579
Members
400,809
Latest member
formulasataglance

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top