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

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
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,216,052
Messages
6,128,509
Members
449,455
Latest member
jesski

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