SUMIFS formula help

rikvny02

Board Regular
Joined
Aug 9, 2022
Messages
95
Office Version
  1. 365
Platform
  1. Windows
I need to add an addition condition to the below formula. I'd like to only pull the total from if A:A = E2. Any help would be grateful. Thanks.

1729871554395.png


G2: =IF(SUMIFS(C:C,B:B,">="&E5,B:B,"<="&F5)=0,"",(SUMIFS(C:C,B:B,">="&E5,B:B,"<="&F5)))
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
SUMIFS is not limited to two conditions, you can add more, i,e,
Rich (BB code):
SUMIFS(C:C,B:B,">="&E5,B:B,"<="&F5,A:A,E2)
 
Upvote 0
SUMIFS is not limited to two conditions, you can add more, i,e,
Rich (BB code):
SUMIFS(C:C,B:B,">="&E5,B:B,"<="&F5,A:A,E2)
Just an FYI. The formula is in "G6" not g2.

I tried your formula and it returns "$0". I would expect a return value of $336 coming from cell "C4"

ps. sorry I cant use the XL2BB at work.
 
Upvote 0
I didn't post the whole formula, I was just showing you how you can add more arguments to SUMIFS, figuring you should be able to do that is both spots of your formula, i.e.
for G2:
Excel Formula:
=IF(SUMIFS(C:C,B:B,">="&E5,B:B,"<="&F5,A:A,$E$2)=0,"",(SUMIFS(C:C,B:B,">="&E5,B:B,"<="&F5,A:A,$E$2)))
(note that since you appear to be wanting to copy this formula to other cells, and always want to look in cell E2, we should "lock" the E2 reference down with the dollar signs before the row and column references, like I show above)
 
Upvote 0
Solution
I didn't post the whole formula, I was just showing you how you can add more arguments to SUMIFS, figuring you should be able to do that is both spots of your formula, i.e.
for G2:
Excel Formula:
=IF(SUMIFS(C:C,B:B,">="&E5,B:B,"<="&F5,A:A,$E$2)=0,"",(SUMIFS(C:C,B:B,">="&E5,B:B,"<="&F5,A:A,$E$2)))
(note that since you appear to be wanting to copy this formula to other cells, and always want to look in cell E2, we should "lock" the E2 reference down with the dollar signs before the row and column references, like I show above)
Hand to forehead. I was not hitting F4 and locking cell E2. Sometimes its right in front of your face and u cant see it
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,173
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