Formula slowing down spreadsheet calculation time

Vegas01

New Member
Joined
Jun 15, 2021
Messages
43
Office Version
  1. 2019
Platform
  1. Windows
Afternoon everyone

I have the formula below and seems to be taking a real long time to calculate and slowing work time.

=IF(F8=6295,INDEX('Pricelist (6 Account) disc'!$D:$D,MATCH(1,('Pricelist (6 Account) disc'!$B:$B=$B8)*('Pricelist (6 Account) disc'!$E:$E=MAX(IF(('Pricelist (6 Account) disc'!$B:$B=$B8)*('Pricelist (6 Account) disc'!$E:$E<=ABS($D8)),'Pricelist (6 Account) disc'!$E:$E,0))),0)),INDEX('Pricelist (5 accounts)'!$G:$G,MATCH(1,('Pricelist (5 accounts)'!A:A=$B8)*('Pricelist (5 accounts)'!$D:$D=MAX(IF(('Pricelist (5 accounts)'!$A:$A=$B8)*('Pricelist (5 accounts)'!$D:$D<=ABS($D8)),'Pricelist (5 accounts)'!$D:$D,0))),0)))

Page "Pricelist (5 accounts)" has 15,000 lines
Page "Pricelist (6 Account) disc" has 19,000 line
Page doing the formula on has 1,600 lines

Added another 1,600 lines and took 2 minutes to calculate, I that does not seem long but it is annoying, I know it is this formulas as I have done test with the workbook with the formula in and out.

Any reason why it taking so long to calculate.

Thanks in advance
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Have you tried not using full column references like 'Pricelist (6 Account) disc'!$B:$B and instead using 'Pricelist (6 Account) disc'!$B1:$B20000?
Or use an excel table so that you can use structured references instead?
 
Upvote 0
Anonymous 1378 thanks for that I will look into it.
 
Upvote 0

Forum statistics

Threads
1,215,085
Messages
6,123,030
Members
449,092
Latest member
ikke

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