SUMIFS vs SUMPRODUCT

FinAnalyst

New Member
Joined
Dec 15, 2016
Messages
3
Hi All,

I've got a range (C3:AA5000) that I want to sum. There are also two criteria rows above the range (C1:AA2) and two criteria columns left of the range (A3:B5000).

I am currently using SUMPRODUCT() and it works well, if a little slow. I've been asked to change it to a SUMIFS() as it will be quicker. To my knowledge SUMIFS() will not work for this type of summing.

Is anyone able to provide a definitive answer whether SUMIFS() will or wont work for my scenario? I've pasted an example below.

The goal is to sum to the "Account" level

Thank you in advance.


ABCDEF
16/12/201516/01/201616/12/201516/01/2016
AccountSub Accountbudgetbudgetactualsactuals
aaa154169139156
aab131176120120
aac148195179196
aad163188169123
aae171187172182
aaf111172126161
aag115189154130
aah149133172119
bba166162180149
bbb110171132154
bbc103179192168
bbd124108116191
bbe147174136154
bbf170137163161
bbg189170192155
bbh183182170141

<tbody>
</tbody><colgroup><col><col><col span="4"></colgroup>
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Yes, SUMIFS() is generally faster than SUMPRODUCT().
What is your SUMPRODUCT formula?
 
Upvote 0
Also, it looks like your sub account is unique anyway? Or is that just sample data, is your actual data that different?

and what top criteria would you be using? (which date/s)
 
Last edited:
Upvote 0
Hi All,

Thank you all for the quick responses.


My criteria is: Sum to Account level (a, b, c etc...) by the date (every period) for several years and the type (budget and actuals).

I will also be summing from multiple raw data tabs in the worksheet to a summary tab. Each raw data tab is in the same format as the example I posted. I need to sum each tab to the corresponding Account level.

This is my sumproduct based on the example I posted:
Code:
[=SUMPRODUCT($C$3:$F$18,($A$3:$A$18=$S3)*($C$2:$F$2=T$2)*($C$1:$F$1=T$1))/CODE]

Below is the example being summed by Account, Type and Date. This is how I currently do it. 

@FDibbins My actual data has multiple Subaccounts, some that are unique, some that are not. We use the 15th of every month for the period. We are doing analysis on future financial years which is why we use dates. 

 
[TABLE="class: grid, width: 206"]
<tbody>[TR]
[TD][B]S[/B]
[/TD]
[TD][B]T[/B]
[/TD]
[TD][B]U[/B]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: right"]16/12/2015
[/TD]
[TD="align: right"]16/12/2015
[/TD]
[/TR]
[TR]
[TD]Account
[/TD]
[TD]Budget
[/TD]
[TD]Actuals
[/TD]
[/TR]
[TR]
[TD][B]a[/B]
[/TD]
[TD="align: right"]1142
[/TD]
[TD="align: right"]1231
[/TD]
[/TR]
[TR]
[TD][B]b[/B]
[/TD]
[TD="align: right"]1192
[/TD]
[TD="align: right"]1281
[/TD]
[/TR]
</tbody>[/TABLE]


Hope I've explained it clearly enough. Please let me know if I'm not making sense. 

Thank you all :)
 
Upvote 0
Try the following array formula (to be entered using Ctrl+Shift+Enter, not just Enter):

=SUMIF($A$3:$A$18,$S3,INDEX($C$3:$F$18,0,MATCH(T$1&T$2,$C$1:$F$1&$C$2:$F$2,0)))
 
Upvote 0

Forum statistics

Threads
1,214,392
Messages
6,119,257
Members
448,880
Latest member
aveternik

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