sumifs with two criterias in two columns

go2bobby

New Member
Joined
Nov 20, 2018
Messages
2
ColumnAColumnBColumnCColumnD
CodeUserRoleHours
PMRamService5
DevSatishDBA9
InternalJohnService99
ArchMarySR Cons22
InternalMarySR Cons8
ArchxxxSR Cons9
ArchyyyCons8
My criteria is sumif should ignore if column A is "Internal" along with Column C is "Service".
The formula I used in Result column is =SUMIFS($D$2:$D$8,$B$2:$B$8,$B12,$A$2:$A$8,"<>Internal",$C$2:$C$8,"<>Service"). I am not getting the expected Result.
UserResultExpected ResultRemark
Ram05Since A2 is not Internal eventhough C2 is Service it should sum 5
Satish99
John00Since A4 is internal and C4 is Service it should not sum
Mary2230Eventhough A6 is Internal C6 is no Service it should sum 8 (8+22 = 30)
xxx99
yyy88

<colgroup><col span="3"><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
So the only ones you dont want summing are when column A shows Internal and column C shows Service?? If so:

=SUMPRODUCT($D$2:$D$8,--($B$2:$B$8=A12),--(($A$2:$A$8<>"internal")+($C$2:$C$8<>"service")>0))
 
Upvote 0

Forum statistics

Threads
1,214,813
Messages
6,121,705
Members
449,048
Latest member
81jamesacct

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