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!
 

offthelip

Well-known Member
Joined
Dec 23, 2017
Messages
1,006
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
 

Forum statistics

Threads
1,082,131
Messages
5,363,337
Members
400,726
Latest member
Shahzad Taimoor

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top