Alternatives to Index/Match

jamescooper

Well-known Member
Joined
Sep 8, 2014
Messages
834
Hello,

I have a spreadsheet which has 60,000 rows, calculations on every line over many columns.

Using Index/Match a lot of the time, makes the spreadsheet very slow and large, are there any alternatives; or maybe someone could suggest a different approach?

Many thanks.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
have you tried turn-off the automatic calculation and use it when needed?
 
Upvote 0
I presume you've done Copy + Paste Special->Value wherever you can.

My next step would be to look for calculations that don't need to be repeated. If the MATCH is only needed once per column, it would make sense to remove it from the INDEX formula into a single cell and then reference that cell. If that doesn't work for you, perhaps you could rewrite the formulas to perform the searches over smaller ranges?

MATCH is much faster when it does not have to look for an exact match in unsorted data: when the match-type argument in =MATCH(lookup-array, lookup-value, match-type) is 1 or -1. This requires that the data in lookup-array be sorted. Use 1 when the data is sorted ascending, -1 when the data is sorted descending.

If you're looking for only a few INDEX+MATCH values, the DGET function is wickedly fast. Its drawback is that DGET requires extra worksheet space to set up the search criteria. If you've used Advanced Filters, then the setup for DGET and the other D-functions (DSUM, DCOUNT, DMAX, and so on) should be familiar.

VBA could be an option. We know Autofiltering in Excel, where you use Data >> Filter from the ribbon, is quick. Most of the functionality of Autofiltering is available in VBA. Searches can be performed quickly in VBA using Range.Autofilter. You can also perform Advanced Filtering through VBA.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,620
Messages
6,120,554
Members
448,970
Latest member
kennimack

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