SumProduct Alternative - Performance Issues

MTURKS83

New Member
Joined
Mar 17, 2019
Messages
2
Hi,

I quite often use SumProduct to perform calculations where I have multiple criteria in rows and at least 1 criteria in the columns, the formula may look like:
=SUMPRODUCT((Column1 = X)*(Column 2 = Y)*(Row1 = A)* (Data Set))

The number of rows in Column1/2 could be 5000 plus and the Row1 would normally be about 50 columns across

I find that this will make the workbook extremely slow and was hoping that something could provide an alternative formula that is not so calculation intensive

Thanks!
 

Some videos you may like

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

offthelip

Well-known Member
Joined
Dec 23, 2017
Messages
1,732
Office Version
  1. 2010
Platform
  1. Windows
The way I do those sort of calculations is to use a "Helper" column, where you create an extra column with both "column" conditions in it, then you can use the IFS functions on the row. This will be much faster than sum product
 

MTURKS83

New Member
Joined
Mar 17, 2019
Messages
2
Thanks Offthelip. I'm not 100% sure how that would work when I am trying to retrieve a sum of values from a dataset based on both column and row criteria?

I'm thinking only SUMPRODUCT allows this calculation? Maybe the best idea is to reorganise the dataset so it is aggregated and a standard SUMIF can be performed?

Many thanks
 

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