Substitute for Sumproduct

trone77

Board Regular
Joined
Dec 28, 2009
Messages
137
Needing to replace the formulas I have with my workbook due to slow calculation and saving times, I was wondering if I could use for instance COUNTIFS instead of the SUMPRODUCT without the use of an array formula. The formula I'm looking to replace is listed below:

=SUMPRODUCT(('[AY.xlsx]1998-2015'!$X$1:$X$8766=$K5)+('[AY.xlsx]1998-2015'!$X$1:$X$8766=$L5),--('[AY.xlsx]1998-2015'!$B$1:$B$8766=N$2),--('[AY.xlsx]1998-2015'!$W$1:$W$8766=$J5),--('[AY.xlsx]1998-2015'!$Y$1:$Y$8766=N$3))
 

Some videos you may like

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

t0ny84

Board Regular
Joined
Jul 6, 2020
Messages
132
Office Version
  1. 365
  2. 2016
  3. 2013
Platform
  1. Windows
  2. Mobile
  3. Web
What about just using SUM()?

Is your workbook AY.xlsxor is this one you are just grabbing data from?
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
47,926
Office Version
  1. 365
Platform
  1. Windows
The options available to you could depend on your Excel version(s). I suggest that you update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 

Watch MrExcel Video

Forum statistics

Threads
1,123,350
Messages
5,601,122
Members
414,429
Latest member
Bilaal xaka

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
Top