Array formulas making document huge. Another option?

Jasesair

Active Member
Joined
Apr 8, 2015
Messages
282
Office Version
  1. 2016
I have a spreadsheet that features the below formula, and because there are so many array formulas, the workbook size is really blowing out. The formula works properly - it's just made the workbook really slow to do anything.

It's an index match formula, matching two criteria, as per below:
{=INDEX('Weekly Entry'!$C:$C,MATCH(1,($A4='Weekly Entry'!$B:$B)*(B$2='Weekly Entry'!$A:$A),0))}

If anyone can provide a fix for the formula so it doesn't have to be an array, I'd really appreciate it!
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
You should try to avoid using A: A. you can use OFFSET to define dynamic regions
test.xlsm
ABCD
113Array Formula
2313Array Formula
313Normal Formula
4C
Sheet2
Cell Formulas
RangeFormula
C1C1=INDEX(CC,MATCH(1,($A4=AA)*(B$2=BB),))
C2C2=INDEX(CC,MATCH($A4&B$2,AA&BB,))
C3C3=VLOOKUP($A4&B$2,IF({1,0},AA&BB,CC),2,)
Press CTRL+SHIFT+ENTER to enter array formulas.

sheet Weekly Entry
test.xlsm
ABC
1A111
2B212
3C313
4D414
5E515
6F616
7H717
8I818
9J919
10K1020
Weekly Entry
 
Upvote 0
I almost forgot that I used a Define Name to make the formula look shorter
AA
Excel Formula:
=OFFSET('Weekly Entry'!A1,,,COUNTA('Weekly Entry'!A:A))
BB
Excel Formula:
=OFFSET('Weekly Entry'!B1,,,COUNTA('Weekly Entry'!A:A))
CC
Excel Formula:
=OFFSET('Weekly Entry'!C1,,,COUNTA('Weekly Entry'!A:A))
 
Upvote 0
Another option
Excel Formula:
=INDEX('Weekly Entry'!$C2:$C1000,AGGREGATE(15,6,(ROW('Weekly Entry'!$C2:$C1000)-ROW('Weekly Entry'!$C2)+1)/($A4='Weekly Entry'!$B2:$B1000)/(B$2='Weekly Entry'!$A2:$A1000),1))
The biggest problem with your formula is that you are using whole column references. If you limit the range the formula looks at you will see a marked improvement in speed.
 
Upvote 0
Can you add a key column to the Weekly Entry sheet that concatenates A&B for each row?
 
Upvote 0
Is there only one match or can there be more?
In that case do you need the first, last?
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,901
Members
449,097
Latest member
dbomb1414

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