Alternative to Sumproduct

Corleone

Well-known Member
Joined
Feb 2, 2003
Messages
717
hi
I have a spread sheet which has a few thousand formulas similar to the one below causing the spreadsheet to take a while to calculate
whenever an entry is made
is there an alternative to the formula below - im using excel 2010


=SUMPRODUCT((ACTIVITIES!$C$2:$C$5000=$A7)*(ACTIVITIES!$N$2:$N$5000=CI$1))

Thanks
 

Some videos you may like

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Corleone

Well-known Member
Joined
Feb 2, 2003
Messages
717
Cheers Joe
I have just tried the countifs formula which works fine, however the calc duration is about the same
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
56,593
Office Version
  1. 365
Platform
  1. Windows
Are you saying that you have a few thousand of these SUMPRODUCT or COUNTIF formulas?
That probably would tax the system.
So you have any VBA code running in the background too?

It sounds like you *may* possibly have a database-type environment (I don't know enough about your project to say for sure, but the fact you may be using thousands of formulas like that suggests that might be the case).
While you can use Excel for it, that really isn't what it was designed for, so performance may be slow and clunky. You may have better results using a database program like Access, SQL, or Oracle.
 

Watch MrExcel Video

Forum statistics

Threads
1,127,387
Messages
5,624,389
Members
416,026
Latest member
melvic69

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