SUMIF vs SUMIFS performance

gaj104

Well-known Member
Joined
Nov 9, 2002
Messages
864
Hi,

Has any one carried out any analysis on the performance of the 2 over a large dataset? I'm optimising a workbook and wondering which performs better, a SUMIF with a helper column, or SUMIFS direct to the columns?

Thanks
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hi,

Has any one carried out any analysis on the performance of the 2 over a large dataset? I'm optimising a workbook and wondering which performs better, a SUMIF with a helper column, or SUMIFS direct to the columns?

Thanks

The question is not very clear...

One would expect that:

=SUMIF(CondRange,Cond,SumRange)

=SUMIFS(SumRange,CondRange,Cond)

would share the same temporal profile.

If SUMIFS is faster than SUMIF at single condition, everybody on 2007 or later would like to know that.
 
Upvote 0
I think what is being asked is something like

=SUMIFS(SumRange,Cond1Range,Cond1,Cond2Range,Cond2)

is better than

ConcatRange(helper column): =Cond1&Cond2
=SUMIF(ConcatRange,Cond1&Cond2,SumRange)


Personally, I think the use of the helper column would be faster. But have not done any testing.
And the difference is likely very small.
 
Upvote 0
Yes, you are right on my not so clear clarity :)

I meant to say how the performance compares on a multiple criteria basis. In 2003 I would concatenate the 2 or more columns. In 2007 a straight sumifs on the columns is substituted, but wondering does this actually better performance?

Thanks

Edit: In fact jonmo explains it better than me :) Be interesting to know if anyone had done any actual testing.
 
Last edited:
Upvote 0
I would've used SUMPRODUCT prior to XL2007, so it's hard to say for me.
 
Upvote 0
Yes, you are right on my not so clear clarity :)

I meant to say how the performance compares on a multiple criteria basis. In 2003 I would concatenate the 2 or more columns. In 2007 a straight sumifs on the columns is substituted, but wondering does this actually better performance?

Thanks

Edit: In fact jonmo explains it better than me :) Be interesting to know if anyone had done any actual testing.

Concatenation means additional operations. Trading off memory against speed might be less relevant here for Sumifs like SumIf operates on range objects and they are fast (faster than SumProduct, for example). Moreover, conditions which do not involve equality tests would be difficult to handle with concatenation.
 
Upvote 0

Forum statistics

Threads
1,226,049
Messages
6,188,567
Members
453,484
Latest member
jlo1673

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