Why is my SUMIFS formula with 2 "DNE" criteria (w/in the same row) acting as an "OR" instead of an "AND?"

carlcryptocurrency

New Member
Joined
Dec 8, 2017
Messages
4
<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>
NameTxProductPriceFeesTotal
JohnPurchaseWidget$500.00$55.00$555.00
RobCreditFlibbity Jibbet$400.00$1.00$401.00
GeorgeCreditClown$300.00$5.00$305.00
MaryPurchasePoppins$250.00$30.00$280.00
KarenDebitWidget$125.00$8.00$133.00
JohnPurchaseFlibbity Jibbet$10.00$15.00$25.00
JohnCreditClown$775.00$10.00$785.00
"=SUMIFS(F2:F8,A2:A8,"<>John",B2:B8,"<>Purchase")"is omitting rows 2, 5, 7, & 8 for a total of$839.00
NameTxProductPriceFeesTotal
JohnPurchaseWidget$500.00$55.00$555.00
RobCreditFlibbity Jibbet$400.00$1.00$401.00
GeorgeCreditClown$300.00$5.00$305.00
MaryPurchasePoppins$250.00$30.00$280.00
KarenDebitWidget$125.00$8.00$133.00
JohnPurchaseFlibbity Jibbet$10.00$15.00$25.00
JohnCreditClown$775.00$10.00$785.00
What do we do so it only omits rows 2 & 7 for an accurate total of$1,904

<tbody>
</tbody>
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Carl, your SUMIFS is essentially saying this (in words):

"Sum up all values from column F from among the subset that first eliminates every instance of 'John' and then further eliminates 'Purchase' from the remaining options."

And that's not what you want.

Give this a try:

Code:
=SUMPRODUCT((A2:A8&B2:B8 <> "JohnPurchase")*(F2:F8))
 
Upvote 0
Your intent is:

=SUM(F2:F8)-SUMIFS(F2:F8,A2:A8,"john",B2:B8,"purchase")

where the SUMIFS bit indeed runs as it were, an and.
 
Upvote 0

Forum statistics

Threads
1,215,402
Messages
6,124,708
Members
449,182
Latest member
mrlanc20

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