Multi-reference heading lookup/match

jlbox

New Member
Joined
Mar 9, 2011
Messages
2
I need help with what I believe will be a nested lookup of some sort. Essentially I want to be able to match 2 existing criteria to a reference table of values and pull the corresponding heading for the value from that reference table. For example (cells delimited by commas):

TABLE 1 (my data)
-----------------------
NAME, SPECIALTY, SALARY, *WHAT I NEED*
Dr. smith, oncology, $200000, X1
Dr. jones, pediatrics, $100000, X2

REFERENCE TABLE (national data)
----------------------------------
SPECIALTY, 10th%, 25th%, 50th%,... etc
Oncology, $100000, $200000, etc, etc
Pediatrics, $50000, $75000, $100000, etc

The goal is to input a formula that references oncology and $200000 for Dr. Smith, goes to the reference table, and returns the corresponding % heading. In Dr. Smith's case the cell would display "25th%" and in Dr. Jone's case, "50th%."

I could be way off, but this is what I have so far:
INDEX(reference!$A$1:$C$3, MATCH(mydata!E5, reference!$A$2:$A$3, 0), MATCH(mydata!F5, reference!$A$1:$C$3, ????))))

This works if i hardcode the column number where ???? is. Problem is how do I get that to match my data, specialty, etc? I'm not a coder or an excel wiz, so I might be way off base. Help!!
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
This works if i hardcode the column number where ???? is.
But where the ???? is not a column number, it's a flag for Excel to use MATCH in an exact or non-exact way!?!?!
 
Upvote 0
Hey Glenn. I'm an idiot an posted the wrong formula yesterday. What I meant to do was:

INDEX(reference table, 1, INDEX(ref table, MATCH(Specialty name, first column reference table array, 0), MATCH(value, ????, ????)))

Where "1" is the header row
And the nested index is finding the row of the specialty and the column of salary value. That last match is tricky because it needs to match or find the closest value to the number specifically in that specialty row

Again I could be way off. Any suggestions?
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,256
Members
452,901
Latest member
LisaGo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top