What to do when vlookup() or index(match()) take up too many resources?

acemanhattan

New Member
Joined
May 11, 2016
Messages
45
I have a model that takes raw healthcare data and then reprices it based on the procedure type, and the corresponding relevant values from a fee schedule. Basically on a given row we'll look at the procedure code, go find that on our fee schedule, and then return values corresponding information from the fee schedule (fee, type, and a few other pieces of info helpful to pricing).

The problem I'm having is that the raw data set can be up to 13,000 rows, with each row looking at the fee schedule up to 6 times, with the fee schedule itself being 15,000 rows; basically I think the number of Index(Matches)) I'm using, and the range over which I'm using it has become prohibitive (model runs really really slow). I need to figure out a way to optimize this if possible. Data is like this

Raw data would be the "Code" (and other stuff) with additional columns being index(match()) formulas; codes can show up an unlimited number of times and we can have tens of thousands of rows.
CodeFlag1Flag2Flag3
aY25.001.2
bY1213
aY251.2

<tbody>
</tbody>

Fee Schedule would have no calculations (code only shows up once extend 15,000 rows).
CodeFlag1Flag2Flag3
aY25.001.2
bY1213
cN1.5.01
dYNSP0

<tbody>
</tbody>


Any thoughts?
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,216,117
Messages
6,128,937
Members
449,480
Latest member
yesitisasport

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