• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

SUM IF S formula help

115shelley

New Member
hello- i am having trouble figuring out where my error is.
I am trying to sum the total payments for each sales rep by each month
i have attached a sample file as well as noting the formula i tried in Cell C58( there is an ` to make the formula visible)

`=sumifs(D2:D50,C2:C50,"A",A2:A50,"Payment","month"(B2:B50),="1")


thanks for your help.
 

Attachments

  • sample data 2.21.16.xlsx
    92.2 KB · Views: 8
Try something like this..

=SUMPRODUCT(D2:D2194*(C2:C2194="A")*(A2:A2194="Payment")*(MONTH(B2:B2194)=1))
 
Another option in using SUMIFS function.

One formula way

1] In Summary Table, C2202, copy across down :

=SUMIFS($D$2:$D$2194,$C$2:$C$2194,$B2202,$A$2:$A$2194,"Payment",$B$2:$B$2194,">="&DATE(2015,MONTH("1"&C$2200),1),$B$2:$B$2194,"<="&DATE(2015,MONTH("1"&C$2200)+1,0))

Or,

With helper column way

1] F3, sopy down :

=IF(B3="","",MONTH(B3))

2] In Summary Table, C2206, copy across down :

=SUMIFS($D$2:$D$2194,$C$2:$C$2194,$B2202,$A$2:$A$2194,"Payment",$F$2:$F$2194,MONTH("1"&C$2200))

Regards
Bosco
 

Attachments

  • Copy of sample data 2.21.16 (1).xlsx
    121.3 KB · Views: 2
hello- i am having trouble figuring out where my error is.
I am trying to sum the total payments for each sales rep by each month
i have attached a sample file as well as noting the formula i tried in Cell C58( there is an ` to make the formula visible)

`=sumifs(D2:D50,C2:C50,"A",A2:A50,"Payment","month"(B2:B50),="1")


thanks for your help.


Why don't you clear all the blank rows out of your data and use a Pivot Table to summarize everything? You can very quickly play What if with that approach rather than having to re-write formulas. You will also see that in your table there are a bunch of payments with no associated Reps ...

Don't get me wrong, I love SUMPRODUCT solutions, but they're more complex to create and amend than having a basic Excel Table and Pivoting from it ...
 

Attachments

  • sample data 2.21.16 - DME.xlsx
    109.7 KB · Views: 2
Back
Top