Can I use multiple sum ranges in the SUMIF function?

Barcode

Board Regular
Joined
Sep 8, 2009
Messages
75
Can I use multiple sum ranges in the SUMIF function?

I'm trying to add 3 cells in different ranges in a SUMIF function.

I have tried the following 2 formulas but both give errors:
=SUMIF($F$4:$F$462,"audcad",($Q$4:$Q$462+$M$4:$M$462+$N$4:$N$462))
=SUMIF($F$4:$F$462,"audcad",SUM($Q$4:$Q$462+$M$4:$M$462+$N$4:$N$462))

I have about 30 of these looking for different text.

What am I doing wrong or do I need a different function?

Bob
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
SUMIF and similar function, require ranges as their arguments.

Try

=SUMIF(F$4:$F$462,"audcad", $Q$4:$Q$462)+SUMIF(F$4:$F$462,"audcad", $M$4:$M$462)+SUMIF(F$4:$F$462,"audcad", $N$4:$N$462)
 
Upvote 0
=SUM(SUMIF($F$4:$F$462,"audcad",$Q$4:$Q$462),SUMIF($F$4:$F$462,"audcad",$M$4:$M$462),SUMIF($F$4:$F$462,"audcad",$N$4:$N$462))

would be an appropriate choice for reasons of efficiency.

Otherwise, control+shift+enter, not just enter:

=SUM(IF($F$4:$F$462,"audcad",$Q$4:$Q$462+$M$4:$M$462+$N$4:$N$462))
 
Upvote 0
Thanks very much mikerickson & Aladin Akyurek. Exactly what I needed. Very much appreciated.

Bob
 
Upvote 0

Forum statistics

Threads
1,214,936
Messages
6,122,340
Members
449,079
Latest member
rocketslinger

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