Indexing & Matching from two tables with multiple criteria: resulting with a column header label

Yukontornado

New Member
Joined
Sep 27, 2017
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Here is my scenario:
I have a need to find a particular percentile from a header row on another sheet in a separate tab within the same workbook, based on criteria from two columns in another worksheet. See example below:

PROVIDERPROVIDER TYPEProvider SpecialtyProvider FTEwRVU
(adjusted to 1.0)
% tile using wRVUComp
(adjusted to 1.0)
% tile using Comp
Dr. XPhysicianEndocrinology/Metabolism1.04651.91 $ 239,699.20
DR. YPhysicianFamily Medicine: Ambulatory Only (No Inpatient Work)1.05429.04 $ 232,500.00
Dr. ZPhysicianGastroenterology0.62537.06 $ 375,000.00
<colgroup><col width="101" style="width: 76pt; mso-width-source: userset; mso-width-alt: 3584;"> <col width="142" style="width: 106pt; mso-width-source: userset; mso-width-alt: 5034;"> <col width="342" style="width: 256pt; mso-width-source: userset; mso-width-alt: 12145;"> <col width="116" style="width: 87pt; mso-width-source: userset; mso-width-alt: 4124;"> <col width="138" style="width: 104pt; mso-width-source: userset; mso-width-alt: 4920;"> <col width="128" style="width: 96pt; mso-width-source: userset; mso-width-alt: 4551;"> <col width="143" style="width: 107pt; mso-width-source: userset; mso-width-alt: 5091;"> <col width="127" style="width: 95pt; mso-width-source: userset; mso-width-alt: 4522;"> <tbody> </tbody>




In column F I need to find corresponding percentile from the example below using the wRVU number in column E above (4651.91) and provider specialty in column C (Endocrinology/Metabolism) as
criteria. So looking at the sheet below (different tab in same workbook):



Provider Specialty49 % tileMedian51 % tile52 % tile53 % tile54 % tile55 % tile56 % tile57 % tile58 % tile59 % tile60 % tile
Allergy/Immunology4,610.144,666.224,690.184,767.364,829.864,848.834,878.504,904.014,981.234,987.045,032.285,060.77
Anesthesiology: Pain Management6,459.276,548.006,636.846,860.756,904.006,948.277,146.987,166.977,272.047,272.877,384.557,452.44
Bariatrics (Nonsurgical)************
Cardiology: Electrophysiology10,701.5610,797.4710,875.3010,972.1211,044.0211,142.6211,357.0011,413.8711,435.4811,466.1911,589.2111,640.98
Cardiology: Invasive8,129.048,241.318,340.008,387.008,420.668,484.298,506.998,561.608,603.988,675.748,755.838,797.00
Cardiology: Invasive-Interventional9,235.549,308.299,373.569,551.659,627.729,692.369,763.279,852.499,901.619,963.6410,033.4610,181.63
Cardiology: Noninvasive7,119.207,218.287,333.877,394.617,502.357,565.237,727.727,806.927,917.638,006.318,088.418,193.76
Critical Care: Intensivist3,804.343,848.444,015.234,030.304,063.414,084.904,095.124,118.934,224.884,261.084,333.374,377.79
Dentistry************
Dermatology6,806.566,853.326,889.207,002.407,037.007,131.007,233.647,301.797,401.257,589.297,684.787,752.97
Dermatology: Dermatopathology************
Dermatology: Mohs Surgery15,950.9215,976.0016,028.7416,081.4916,140.8116,202.6116,244.8316,263.5516,325.1816,579.9116,834.6317,293.46
Emergency Medicine6,448.246,525.796,576.066,603.726,689.156,720.896,786.706,901.956,994.787,090.357,219.937,272.05
Endocrinology/Metabolism4,438.284,535.804,541.324,579.924,598.824,635.954,689.724,718.214,818.354,834.584,907.834,939.98
Family Medicine (with OB)4,229.644,275.374,316.194,375.074,412.634,440.154,488.994,524.964,552.274,572.844,594.114,637.47
<colgroup><col width="338" style="width: 253pt; mso-width-source: userset; mso-width-alt: 12003;"> <col width="77" style="width: 58pt; mso-width-source: userset; mso-width-alt: 2730;"> <col width="68" style="width: 51pt; mso-width-source: userset; mso-width-alt: 2417;"> <col width="74" style="width: 56pt; mso-width-source: userset; mso-width-alt: 2645;" span="10"> <tbody> </tbody>


I would want to find the closest value to my search requirement value of (4651.91) from column E and specialty from column C (endocrinology/Metabolism) in the second worksheet and return the column header (percentile) for that closest value. So in this case I would want a return value of “54 % tile” because it is next lowest value from 4651.91 that we are searching for.

Does this make sense of what I need to accomplish? I have been playing with Indexing and matching but with no success to this point. Any help on this solution would be GREATLY appreciated!

Thank you for looking at this for me
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Well, I came up with a solution that works perfectly - but I sure would like to see if there is an EASIER way to do this. I am sure someone else out there has a need to do a lookup via multiple criteria. Enjoy the solution and I hope someone has a shorter version!

To solve the wRVU quesion: MGMA wRVU 2017


=IFERROR(IF(ISTEXT(LOOKUP(SMALL(INDEX('MGMA wRVU 2017'!$B$12:$CD$209,MATCH(C2,'MGMA wRVU 2017'!$A$12:$A$209,0),),COUNTIF(INDEX('MGMA wRVU 2017'!$B$12:$CD$209,MATCH(C2,'MGMA wRVU 2017'!$A$12:$A$209,0),),"<="&E2)+1),INDEX('MGMA wRVU 2017'!$B$12:$CD$209,MATCH(C2,'MGMA wRVU 2017'!$A$12:$A$209,0),0),'MGMA wRVU 2017'!$B$11:$CD$11)),
LOOKUP(SMALL(INDEX('MGMA wRVU 2017'!$B$12:$CD$209,MATCH(C2,'MGMA wRVU 2017'!$A$12:$A$209,0),),COUNTIF(INDEX('MGMA wRVU 2017'!$B$12:$CD$209,MATCH(C2,'MGMA wRVU 2017'!$A$12:$A$209,0),),"<="&E2)+1),INDEX('MGMA wRVU 2017'!$B$12:$CD$209,MATCH(C2,'MGMA wRVU 2017'!$A$12:$A$209,0),0),'MGMA wRVU 2017'!$B$11:$CD$11),
">90th %tile"),"")
 
Upvote 0
Edit to my solution above - this will actually pick 55%, which still works for me.
 
Upvote 0

Forum statistics

Threads
1,215,429
Messages
6,124,838
Members
449,193
Latest member
MikeVol

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