Sumif over multiple ranges

blindbe2

New Member
Joined
Nov 30, 2005
Messages
7
I'm trying to sum over 4 weekly ranges if the corresponding range is greater than zero.

Formula is:
=SUMIF(O4:O10,O14:O20,O24:O28,O32:O37,">0",K4:K10,K14:K20,K24:K28,K32:K37)

The problem seems to be in the O32:037 as it doesn't turn a color like the other ranges when it is entered. Additionally the entire sum range does not turn a color.

is there another way to do it that is permissible? Right now it is returning a #value error in the destination cell.

Thanks
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
I don't believe you can use multiple ranges with SUMIF, what's in the intermediate cells i.e. O11, K11, O12, K12 etc.?
 
Upvote 0
This is a 2 week example. I'd like to total after each week and have a monthly total at the end. The "?" represents where I'm trying to get the #WIN and #PD to total.
Milwaukee Contracts 2006.xls
KLMNOP
3# WIN#PD# OTHERJIM A.BUD
42250
51575
66330
7102,550
8
9
10
11181-3,130575
12
13# WIN#PD# OTHERJIM A.BUD
1463,826
153214,200
1664,120
174419,850
18
19
20
217612-23,97018,026
22
23JIM A.BUD
249413-27,10018,601
25
26#WIN??
27#PD??
Jan
 
Upvote 0
I figured it out myself. Sumif function does not support multiple ranges as a single function. My final function:

=SUMIF(O4:O10,">0",K4:K10)+SUMIF(O14:O20,">0",K14:K20)+SUMIF(O24:O28,">0",K24:K28)+SUMIF(O32:O37,">0",K32:K37)

This works well.
 
Upvote 0

Forum statistics

Threads
1,214,887
Messages
6,122,095
Members
449,064
Latest member
Danger_SF

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