INDEX/MATCH array REALLY slow

cherryduck

New Member
Joined
Aug 9, 2017
Messages
4
Hi there, I'm using an INDEX/MATCH array to look up a date and name in one sheet and return the number of hours worked into another.

The E column in the Overtime sheet contains the name, the H column in the Overtime sheet contains the date. B3 holds the month in name format (April for example) and F6, G6 etc (ie row 6) contains the current day in numerical value (01 for 1st, 02 for 2nd etc).

I've gotten this working with the following formula:

Code:
=IFERROR(INDEX(Table_owssvr_1[#All],MATCH(1,(Overtime!$E:$E=$B7)*(TEXT(Overtime!$H:$H,"mmmm")=$B$3)*(TEXT(Overtime!$H:$H,"DD")=F$6),0),10),"")

In the above case, B7 is where our name is, on the next line down we'll be looking at the name in B8 and so on. The 10th column in the Overtime sheet holds the number of hours worked.

It works, however it is SLOW. With a small test data set of 5 values in the overtime sheet, it took roughly 10 minutes to update :eeek:

Can anyone suggest how I could speed this up? I'm using Excel 2016 on a Windows 7 laptop.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
because you use the whole column, $H:$H etc as range that is over 1m cells each.
try to limit the ranges just larger than needed, e.g. $H$1:$H$1000 etc
 
Last edited:
Upvote 0
Hi. You need to use a more appropriate range. Using full column references means excel has to do a million calculations even if cells are empty. ie dont use A:A use A1:A100
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

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