How to Create Sum Product in Many Creteria

Joko Purnomo

Board Regular
Joined
Jul 14, 2008
Messages
62
Office Version
  1. 2016
Platform
  1. Windows
Source Data

FruitAmountQuantity
Apple128.038
24​
Pineapple79.545
7​
Mango82.161
24​
Guava36.993
24​
Pomegranate14.661
106​
Banana8.200
32​
Watermelon323.207
3​
Dragon fruit16.691
4​
Avocado80.599
23​
Strawberry23.970
31​
Blueberry859.813
23​
Blackberry1.302
4​
Blackcurrant954.597
4​
Raspberry93.610
14​
Cranberry827.543
7​
Guava68.991
40​
Pomegranate953.697
159​
Banana661.039
4​
Watermelon916.716
27​
Dragon fruit93.950
4​
Avocado444.607
34​
Strawberry812.470
61​
Blueberry491.406
26​
Blackberry41.430
164​

Dashboard
FruitAmount (Quantity > = 4 dan < 50)Amount (Quantity > = 4 dan < 200)
Apple??
Pineapple
Mango
Guava
Pomegranate
Banana
Watermelon
Dragon fruit
Avocado
Strawberry
Blueberry
Blackberry
Blackcurrant
Raspberry
Cranberry

How to fill the blank dashboard above with formula Source Data, i want to sum the amount with criteria (Quantity > = 4 dan < 50) and the amount with criteria (Quantity > = 4 dan < 200)

Thank for helping
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Try the below:
Book1
ABCDEFGHI
1
2FruitAmountQuantityAmount (Quantity > = 4 dan < 50)Amount (Quantity > = 4 dan < 200)
3Apple128.03824Apple0128.038
4Pineapple79.5457Pineapple079.545
5Mango82.16124Mango082.161
6Guava36.99324Guava36.993105.984
7Pomegranate14.661106Pomegranate14.66114.661
8Banana8.232Banana8.28.2
9Watermelon323.2073Watermelon00
10Dragon fruit16.6914Dragon fruit16.691110.641
11Avocado80.59923Avocado080.599
12Strawberry23.9731Strawberry23.9723.97
13Blueberry859.81323Blueberry00
14Blackberry1.3024Blackberry42.73242.732
15Blackcurrant954.5974Blackcurrant00
16Raspberry93.6114Raspberry093.61
17Cranberry827.5437Cranberry00
18Guava68.99140
19Pomegranate953.697159
20Banana661.0394
21Watermelon916.71627
22Dragon fruit93.954
23Avocado444.60734
24Strawberry812.4761
25Blueberry491.40626
26Blackberry41.43164
27
Sheet1
Cell Formulas
RangeFormula
G3:G17G3=SUMIFS(Dan,Fruit,F3,Dan,"<50",Qty,">=4")
H3:H17H3=SUMIFS(Dan,Fruit,F3,Dan,"<200",Qty,">=4")
Named Ranges
NameRefers ToCells
Dan=Sheet1!$C$3:$C$26G3:H17
Fruit=Sheet1!$B$3:$B$26G3:H17
Qty=Sheet1!$D$3:$D$26G3:H17
 
Upvote 0
Your question is a bit confusing as you mention dan as one of the criteria, but there is nothing to say what dan is.
At a guess maybe.
Fluff.xlsm
ABCDEFGH
1FruitAmountQuantityFruitAmount (Quantity > = 4 dan < 50)Amount (Quantity > = 4 dan < 200)
2Apple128.03824Apple128.038128.038
3Pineapple79.5457Pineapple79.54579.545
4Mango82.16124Mango82.16182.161
5Guava36.99324Guava105.984105.984
6Pomegranate14.661106Pomegranate0968.358
7Banana8.232Banana669.239669.239
8Watermelon323.2073Watermelon916.716916.716
9Dragon fruit16.6914Dragon fruit110.641110.641
10Avocado80.59923Avocado525.206525.206
11Strawberry23.9731Strawberry23.97836.44
12Blueberry859.81323Blueberry1351.2191351.219
13Blackberry1.3024Blackberry1.30242.732
14Blackcurrant954.5974Blackcurrant954.597954.597
15Raspberry93.6114Raspberry93.6193.61
16Cranberry827.5437Cranberry827.543827.543
17Guava68.99140
18Pomegranate953.697159
19Banana661.0394
20Watermelon916.71627
21Dragon fruit93.954
22Avocado444.60734
23Strawberry812.4761
24Blueberry491.40626
25Blackberry41.43164
Data
Cell Formulas
RangeFormula
G2:G16G2=SUMIFS(B:B,A:A,F2,C:C,">=4",C:C,"<50")
H2:H16H2=SUMIFS(B:B,A:A,F2,C:C,">=4",C:C,"<200")
 
Upvote 1
Solution
Your question is a bit confusing as you mention dan as one of the criteria, but there is nothing to say what dan is.
At a guess maybe.
Fluff.xlsm
ABCDEFGH
1FruitAmountQuantityFruitAmount (Quantity > = 4 dan < 50)Amount (Quantity > = 4 dan < 200)
2Apple128.03824Apple128.038128.038
3Pineapple79.5457Pineapple79.54579.545
4Mango82.16124Mango82.16182.161
5Guava36.99324Guava105.984105.984
6Pomegranate14.661106Pomegranate0968.358
7Banana8.232Banana669.239669.239
8Watermelon323.2073Watermelon916.716916.716
9Dragon fruit16.6914Dragon fruit110.641110.641
10Avocado80.59923Avocado525.206525.206
11Strawberry23.9731Strawberry23.97836.44
12Blueberry859.81323Blueberry1351.2191351.219
13Blackberry1.3024Blackberry1.30242.732
14Blackcurrant954.5974Blackcurrant954.597954.597
15Raspberry93.6114Raspberry93.6193.61
16Cranberry827.5437Cranberry827.543827.543
17Guava68.99140
18Pomegranate953.697159
19Banana661.0394
20Watermelon916.71627
21Dragon fruit93.954
22Avocado444.60734
23Strawberry812.4761
24Blueberry491.40626
25Blackberry41.43164
Data
Cell Formulas
RangeFormula
G2:G16G2=SUMIFS(B:B,A:A,F2,C:C,">=4",C:C,"<50")
H2:H16H2=SUMIFS(B:B,A:A,F2,C:C,">=4",C:C,"<200")
Thanks very much
 
Upvote 0
How about countifs condition for column G (Quantity > = 4 dan < 50) and column H (Quantity > = 4 dan < 200), we whan know the total quantity for the creteria???

Help me master
 
Upvote 0
How about countifs condition for column G (Quantity > = 4 dan < 50) and column H (Quantity > = 4 dan < 200), we whan know the total quantity for the creteria???

Help me master
You just replace SUMIFS with COUNTIFS and use the same criteria except the first element:

=COUNTIFS(A:A,F2,C:C,">=4",C:C,"<50")
 
Upvote 0
1705832747014.png


Why pivot table of amount, which discount 5%, the result is same, i add new column beside the pivot column, with formula (=5%*GETPIVOTDATA("Amount (Quantity > = 4 dan < 200)";$B5;"Fruit";"Apple")) and the result is same

And one case again, when i do value filter top 10 on the vipottable, the formula the right besides tobe error

help me
 
Upvote 0
Did either the two formulae posted do what you originally asked for?
 
Upvote 0
Yes sir, the last posting of my question is a part of my problem, two questions before is solved, the last i want to combine vipot table, and other formula beside vipot table, buat i don't know why the result is same. Like the screenshot above, i add new column (Discount 5%) of each column from the vipot table, and result is same, i know its wrong, but i don't find why by my self?

Other side, when i do value filter on vipot table to be top 10, the formula the column beside vipot table tobe error.

Is possible the pivot table result to connect another formula beside ? If possible please help me sir, to solve my problem


Thank you for your support and answer


Best regards
 
Upvote 0
As this is a significantly different question, it needs a new thread. Thanks
 
Upvote 0

Forum statistics

Threads
1,215,168
Messages
6,123,402
Members
449,098
Latest member
ArturS75

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