INDEX and MATCH functions

rasputin1970

New Member
Joined
Sep 10, 2015
Messages
14
One of these days I was using INDEX+MATCH function in a large table (7800 rows and 30 columns) and one doubt came to my mind:

- In terms of CPU workload, memory, excel etc, is there any difference between INDEX(table_column C:C!;MATCH(1;(table_column F:F!!=xpto....) and INDEX(table_column C5:C76!;MATCH(1;(table_column F5:F67!!=xpto....)?

- Is there any limit in the number of INDEX functions that can be used in a Excel Workbook?

- Is there any limit in the "extension" of the INDEX function? see the formula I've used below:

=IFNA(CONCATENATE($F5;" ";IF($I5<>"";INDEX(Global!$F:$F;MATCH(1;(Global!$B:$B=$C5)*(Global!$C:$C=$F5)*(Global!$D:$D=CONCATENATE($D5;"_";$E5;I$3));0));IF($J5<>"";INDEX(Global!$F:$F;MATCH(1;(Global!$B:$B=$C5)*(Global!$C:$C=$F5)*(Global!$D:$D=CONCATENATE($D5;"_";$E5;J$3));0));INDEX(Global!$F:$F;MATCH(1;(Global!$B:$B=$C5)*(Global!$C:$C=$F5)*(Global!$D:$D=CONCATENATE($D5;"_";$E5;L$3));0))));" ";IF($I5<>"";INDEX(Global!$G:$G;MATCH(1;(Global!$B:$B=$C5)*(Global!$C:$C=$F5)*(Global!$D:$D=CONCATENATE($D5;"_";$E5;I$3));0));IF($J5<>"";INDEX(Global!$G:$G;MATCH(1;(Global!$B:$B=$C5)*(Global!$C:$C=$F5)*(Global!$D:$D=CONCATENATE($D5;"_";$E5;J$3));0));INDEX(Global!$G:$G;MATCH(1;(Global!$B:$B=$C5)*(Global!$C:$C=$F5)*(Global!$D:$D=CONCATENATE($D5;"_";$E5;L$3));0)))));"")

Thanks
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Definitely a difference. But not so much due to the index or match function.
It's more because of all the criteria expressions
(Global!$B:$B=$C5)

Index itself doesn't care about entire column references.
Match does a little.
But that setup forces excel to evaluate every single cell in column B.
You should definitely use the restricted range.

I understand the need to accommodate fluctuating range sizes.
You probably have a number where you can say "my data will surely never be more than xx rows".
Use that number +10%

You started by saying you have 7800 rows. Use 10000.
10K is MUCH better than a million.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,513
Messages
6,125,262
Members
449,219
Latest member
daynle

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