sumifs condition multiple not blank cells

ivill

New Member
Joined
Oct 3, 2021
Messages
37
Office Version
  1. 2019
Platform
  1. Windows
Jim10301
Kate20403
Green30505
Red40607
Bill50709
Jim608011
Green709013
Karry8010015
Beth9011017
Forte10012019
JIM

=SUMIFS(D1:D10,A1:A10,A11,B1:B10,">0")
The result should be 12
How do i define "or" condition in the SUMIFS formula?
B1:B10,">0" or C1:C10,">0"
if B1 <=0, C1 >0, The result should still be the same as 12
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
That formula does return 12 for me
+Fluff 1.xlsm
ABCD
1Jim10301
2Kate20403
3Green30505
4Red40607
5Bill50709
6Jim608011
7Green709013
8Karry8010015
9Beth9011017
10Forte10012019
11JIM12
Main
Cell Formulas
RangeFormula
B11B11=SUMIFS(D1:D10,A1:A10,A11,B1:B10,">0")
 
Upvote 0
That formula does return 12 for me
+Fluff 1.xlsm
ABCD
1Jim10301
2Kate20403
3Green30505
4Red40607
5Bill50709
6Jim608011
7Green709013
8Karry8010015
9Beth9011017
10Forte10012019
11JIM12
Main
Cell Formulas
RangeFormula
B11B11=SUMIFS(D1:D10,A1:A10,A11,B1:B10,">0")
I'm sorry i should be more clear, but.. my english is worse...
right now, The B1:B10 is the criteria_range2
can i define OR condition? i.e. B1:B10 OR C1:C10
 
Upvote 0
How about
Excel Formula:
=SUMPRODUCT((A1:A10=A11)*(((B1:B10>0)+(C1:C10>0))>0)*(D1:D10))
 
Upvote 0
How about
Excel Formula:
=SUMPRODUCT((A1:A10=A11)*(((B1:B10>0)+(C1:C10>0))>0)*(D1:D10))
calc.xlsm
ABCDE
1NameItem1Item2Qty1Qty2
2JIM10150
3KATE1110350
4GREEN2120550
5RED3130750
6BILL4140950
7JIM51501160
8GREEN61601350
9KARRY71701550
10BETH81801750
11FORTE91901950
12
13JIMTotal12
14
15The condition is Qty2 >=60
16And The result should be 11(Sum_range)
17How to use SUMIFS with The =SUMPRODUCT((A2:A11=A13)*(((B2:B11>0)+(C2:C11>0))>0)*(D2:D11)) to get the result?
2
Cell Formulas
RangeFormula
B3:C11B3=B2+10
D3:D11D3=D2+2
C13C13=SUMPRODUCT((A2:A11=A13)*(((B2:B11>0)+(C2:C11>0))>0)*(D2:D11))


here is another further question, I'm sorry, i'm not sure how to adjust the mini sheet, please check the sheet, How to use SUMIFS with The =SUMPRODUCT((A2:A11=A13)*(((B2:B11>0)+(C2:C11>0))>0)*(D2:D11)) to get the result?
 
Upvote 0
How about
Excel Formula:
=SUMPRODUCT((A2:A11=A13)*(((B2:B11>0)+(C2:C11>0))>0)*(E2:E11>=60)*(D2:D11))
 
Upvote 0
Solution
How about
Excel Formula:
=SUMPRODUCT((A2:A11=A13)*(((B2:B11>0)+(C2:C11>0))>0)*(E2:E11>=60)*(D2:D11))
This expression formula is very useful, thanks very much sir
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,184
Members
452,615
Latest member
bogeys2birdies

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