sumifs with name range and lookup conditions

MilindP

New Member
Joined
Aug 11, 2017
Messages
6
[TABLE="width: 412"]
<tbody>[TR]
[TD]mode[/TD]
[TD]party[/TD]
[TD]item[/TD]
[TD]qty[/TD]
[TD][/TD]
[TD]books[/TD]
[/TR]
[TR]
[TD]Cash[/TD]
[TD]Depot1 [/TD]
[TD]Book100pg[/TD]
[TD="align: right"]100[/TD]
[TD][/TD]
[TD]Book100pg[/TD]
[/TR]
[TR]
[TD]Cash[/TD]
[TD]Depot1[/TD]
[TD]Book200pg[/TD]
[TD="align: right"]25[/TD]
[TD][/TD]
[TD]Book200pg[/TD]
[/TR]
[TR]
[TD]Cash[/TD]
[TD]Depot3[/TD]
[TD]Book200pg[/TD]
[TD="align: right"]65[/TD]
[TD][/TD]
[TD]Book400pg[/TD]
[/TR]
[TR]
[TD]Cash[/TD]
[TD]Depot1[/TD]
[TD]PencilLight[/TD]
[TD="align: right"]150[/TD]
[TD][/TD]
[TD]Book800pg[/TD]
[/TR]
[TR]
[TD]Chq[/TD]
[TD]Depot3[/TD]
[TD]Book200pg[/TD]
[TD="align: right"]150[/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Chq[/TD]
[TD]Depot2[/TD]
[TD]Book400pg[/TD]
[TD="align: right"]75[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Cash[/TD]
[TD]Depot1[/TD]
[TD]TextBookE[/TD]
[TD="align: right"]75[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Chq[/TD]
[TD]Depot3[/TD]
[TD]TextBookB[/TD]
[TD="align: right"]35[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Chq






[/TD]
[TD]Depot2






[/TD]
[TD]
PencilDark







[/TD]
[TD="align: right"]144






[/TD]
[TD]



[TABLE="width: 412"]
<tbody>[TR]
[TD="align: right"]=sumifs(qty,mode,"Cash",item,{"Book100pg","Book200pg"} gives answer 100+25+65 = 190

=sumifs(qty,mode,"Cash",item,books) = answer 0
any solution for this


[/TD]
[TD]









[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]






[/TD]
[TD][/TD]
[/TR]
</tbody><colgroup><col span="2"><col><col span="2"><col></colgroup>[/TABLE]
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
[TABLE="class: grid"]
<tbody>[TR]
[TD][/TD]
[TD]
A
[/TD]
[TD]
B
[/TD]
[TD]
C
[/TD]
[TD]
D
[/TD]
[TD]
E
[/TD]
[TD]
F
[/TD]
[/TR]
[TR]
[TD]
1
[/TD]
[TD]mode[/TD]
[TD]party[/TD]
[TD]item[/TD]
[TD]qty[/TD]
[TD][/TD]
[TD]books[/TD]
[/TR]
[TR]
[TD]
2
[/TD]
[TD]Cash[/TD]
[TD]Depot1[/TD]
[TD]Book100pg[/TD]
[TD]
100​
[/TD]
[TD][/TD]
[TD]Book100pg[/TD]
[/TR]
[TR]
[TD]
3
[/TD]
[TD]Cash[/TD]
[TD]Depot1[/TD]
[TD]Book200pg[/TD]
[TD]
25​
[/TD]
[TD][/TD]
[TD]Book200pg[/TD]
[/TR]
[TR]
[TD]
4
[/TD]
[TD]Cash[/TD]
[TD]Depot3[/TD]
[TD]Book200pg[/TD]
[TD]
65​
[/TD]
[TD][/TD]
[TD]Book400pg[/TD]
[/TR]
[TR]
[TD]
5
[/TD]
[TD]Cash[/TD]
[TD]Depot1[/TD]
[TD]PencilLight[/TD]
[TD]
150​
[/TD]
[TD][/TD]
[TD]Book800pg[/TD]
[/TR]
[TR]
[TD]
6
[/TD]
[TD]Chq[/TD]
[TD]Depot3[/TD]
[TD]Book200pg[/TD]
[TD]
150​
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
7
[/TD]
[TD]Chq[/TD]
[TD]Depot2[/TD]
[TD]Book400pg[/TD]
[TD]
75​
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
8
[/TD]
[TD]Cash[/TD]
[TD]Depot1[/TD]
[TD]TextBookE[/TD]
[TD]
75​
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
9
[/TD]
[TD]Chq[/TD]
[TD]Depot3[/TD]
[TD]TextBookB[/TD]
[TD]
35​
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
10
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
11
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
12
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
190​
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

d12=
SUMPRODUCT(SUMIFS(D2:D9,A2:A9,A2,C2:C9,F2:F3))

 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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