summation

MilindP

New Member
Joined
Aug 11, 2017
Messages
6
modepartyitemqtybookstextbooksdepots
CashDepot1Book100pg100Book100pgTextBookBDepot1
CashDepot1Book200pg25Book200pgTextBookCDepot2
CashDepot3Book200pg65Book400pgTextBookEDepot3
CashSHOPPencilLight150Book800pg
ChqSHOPBook200pg150
ChqSHOPTextBookE75
CashSHOPTextBookE75
ChqSHOPPencilLight35
ChqSHOPTextBookE144

<tbody>
</tbody>
SUMPRODUCT(SUMIFS(qty,mode,"Cash",item,books)) the answer is 190
but is one more criteria is added to this ---
SUMPRODUCT(SUMIFS(qty,mode,"Cash",item,books,party,depots)) the answer is 100 which is incorrect
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Hi, you won't be able to use SUMIFS() to do that, you could try this alternative instead:

=SUMPRODUCT(--(mode="Cash"),--ISNUMBER(MATCH(item,books,0)),--ISNUMBER(MATCH(party,depots,0)),qty)
 
Upvote 0
your first formula should has answer of 125, the first 2 lines matched, and the second answer of 100 is correct

try

=SUMPRODUCT(qty,(mode="cash")*(item=books))

and

=SUMPRODUCT(qty,(mode="cash")*(item=books)*(party=depots))
 
Upvote 0
Im not sure if this always works but so far it seems to:

=SUMPRODUCT(SUMIFS(qty,mode,"Cash",item,books,party,TRANSPOSE(depots)))
 
Upvote 0

Forum statistics

Threads
1,215,310
Messages
6,124,184
Members
449,147
Latest member
sweetkt327

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