Efficiency question: SumIfs vs Array

GDRitter

New Member
Joined
Oct 5, 2015
Messages
2
I have a report I make for every month end. We dump tons of raw data out of SQL and then I slice and dice it into a table that the customer wants.

We're talking 200k rows of info across 25 columns.

I have to conditionally sum certain columns based on many logical checks on other columns. For this I've been using some big ugly array formulas. When I do this, it takes me probably 90 minutes to just fill the formulas down my table and then convert to values because the processing is so intense for my computer.

But it occurs to me today, that I should be able to produce the same results by using =SumIfs instead of an array. Would you expect this to be better performing, the same, or worse?

Here's an example of one of my array formulas.

Code:
=--SUM(([mainestats.xlsx]Sheet1!$T$2:$T$250000=$A$1)*([mainestats.xlsx]Sheet1!$B$2:$B$250000=$A13)*([mainestats.xlsx]Sheet1!$R$2:$R$250000="RECALL")*([mainestats.xlsx]Sheet1!$E$2:$E$250000))

I'll have a similar formula across 11 columns and copied down 24 rows (2 years of stats, by month). Then this will be duplicated across 10 or so tabs, one for each facility of this client that we service. If I try to fill my formulas on more than 1 tab at a time, it's basically hopeless. So I do one tab, wait a couple minutes, convert to values, do the second tab, wait a few minutes, convert to values, etc.

Just to clarify. My array formulas work completely right - they just are very slow to calculate and I'm wondering how to improve performance without asking the boss for a beefier computer. (I have a Core i5 with 8GB RAM laptop)
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
I would expect the use of sumifs formulas in place of array formulas to speed up your workbook significantly.
 
Upvote 0
But it occurs to me today, that I should be able to produce the same results by using =SumIfs instead of an array. Would you expect this to be better performing, the same, or worse?

I would also expect better results using SUMIFS, but you know what - why not just try it and see?
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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