slow calc SUMPROD

Mcstefan

Board Regular
Joined
May 17, 2014
Messages
52
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am using the formula below simply to add the numbers of one column if certain criterias are met. The file has a large number of formulas like this one and more than that, the data table has a large number of lines and columns. After updating the sql data, the SUMPROD below takes more than one minute to calculate. Any ideas of what could I replace this formula with to speed up the calculation?=SUMPRODUCT(--('SQL WRAP Data'!$A$3:$A$200867=$A$1)*('SQL WRAP Data'!$B$3:$B$200867=$A96)*('SQL WRAP Data'!$C$3:$C$200867=$B96)*('SQL WRAP Data'!$D$3:$D$200867=$B97),INDEX('SQL WRAP Data'!$I$3:$CB$200867,,MATCH(X$6,'SQL WRAP Data'!$I$2:$CB$2,0)))

Cristian.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
SUMPRODUCT is notoriously slow. If you want to speed it up, you're better off using 'helper columns' to do the multiplicaton, and then a SUMIF at the end.

Alternatively, maybe a Pivot Table can produce the result you're looking for?

Caleeco
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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