SUM by Month with IF Statement

kiyo052

Board Regular
Joined
Oct 11, 2013
Messages
134
I need a formula for E2 and F2

In E2, I need the sum of the amounts of February.
Also, if Column B says "TEAM" then divide the amount by 2.
So E2 total should be 450 because 200+200+(100/2)

In F2, I need the sum of the amounts of March.
Also, if Column B says "TEAM" then divide the amount by 2.
So F2 total should be 150 because (100/2)+(100/2)+(100/2)


ABCDEF
1DatePlanAmountFebruaryMarch
22/20Team100450150
32/22Biz200
42/25Biz200
53/1Team100
63/5Team100
73/6Team100

<tbody>
</tbody>
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Try this if the current year can be assumed for the month strings written in F1 and G1

=SUM(SUMIFS($D$2:$D$7,$B$2:$B$7,">="&F$1&1,$B$2:$B$7,"<="&EOMONTH(F$1&1,0),$C$2:$C$7,{"Team","<>Team"})/{2,1})
 
Last edited:
Upvote 0
Thank you so much!

Would it be possible to add one more criteria as well? If it says Team OR Monthly, divide the amount by 2.

Please let me know if this is possible.

Thank you for your help!!!
 
Upvote 0

Forum statistics

Threads
1,214,829
Messages
6,121,827
Members
449,051
Latest member
excelquestion515

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