Hello everyone,
I have a problem with build a function from many if, sums and count
[TABLE="class: outer_border, width: 500, align: left"]
<TBODY>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]Name[/TD]
[TD]Category[/TD]
[TD]Positive / Negative[/TD]
[TD]Number[/TD]
[/TR]
[TR]
[TD]AA[/TD]
[TD]x[/TD]
[TD]Positive[/TD]
[TD][TABLE="width: 104"]
<TBODY>[TR]
[TD="align: right"]103 503 253,74</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]BB[/TD]
[TD]x[/TD]
[TD]Negative[/TD]
[TD][TABLE="width: 104"]
<TBODY>[TR]
[TD="align: right"]42 125 221,42</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]CC[/TD]
[TD]y[/TD]
[TD]Positive[/TD]
[TD][TABLE="width: 104"]
<TBODY>[TR]
[TD="align: right"]85 401 512,22</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]DD[/TD]
[TD]z[/TD]
[TD]Positive[/TD]
[TD][TABLE="width: 104"]
<TBODY>[TR]
[TD="align: right"]30 600 783,38</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]EE[/TD]
[TD]y[/TD]
[TD]Negative[/TD]
[TD][TABLE="width: 104"]
<TBODY>[TR]
[TD="align: right"]32 698 328,06</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]FF[/TD]
[TD]y[/TD]
[TD]Positive[/TD]
[TD][TABLE="width: 104"]
<TBODY>[TR]
[TD="align: right"]36 048 545,10</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]GG[/TD]
[TD]y[/TD]
[TD]Positive[/TD]
[TD][TABLE="width: 104"]
<TBODY>[TR]
[TD="align: right"]993 354,51</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]HH[/TD]
[TD]x[/TD]
[TD]Negative[/TD]
[TD][TABLE="width: 104"]
<TBODY>[TR]
[TD="align: right"]774 600,81</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]II[/TD]
[TD]z[/TD]
[TD]Positive[/TD]
[TD][TABLE="width: 104"]
<TBODY>[TR]
[TD="align: right"]10 420 490,23</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]JJ[/TD]
[TD]z[/TD]
[TD]Positive[/TD]
[TD][TABLE="width: 104"]
<TBODY>[TR]
[TD="align: right"]23 557 656,72</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]KK[/TD]
[TD]x[/TD]
[TD]Negative[/TD]
[TD][TABLE="width: 104"]
<TBODY>[TR]
[TD="align: right"]1 141 258,86</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]LL[/TD]
[TD]z[/TD]
[TD]Positive[/TD]
[TD][TABLE="width: 104"]
<TBODY>[TR]
[TD="align: right"]1 162 261,71</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]MM[/TD]
[TD]x[/TD]
[TD]Positive[/TD]
[TD][TABLE="width: 104"]
<TBODY>[TR]
[TD="align: right"]1 170 530,17</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]NN[/TD]
[TD]y[/TD]
[TD]Negative[/TD]
[TD][TABLE="width: 104"]
<TBODY>[TR]
[TD="align: right"]92 860 585,07</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]sum[/TD]
[TD][TABLE="width: 136"]
<TBODY>[TR]
[TD="align: right"][TABLE="width: 136"]
<TBODY>[TR]
[TD]462 458 382,00</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
</TBODY>[/TABLE]
I would like to build a function counting quantity (countif/countifs) of "name" for each category, only "positive" which sum ( each category ) will be over 80%
E.g.
Category X = 1
Because
=sumifs($D$4:$D$17;$B$4:$B$17;B20;$C$4:$C$17;$C$4) => category "X" and "Positive"
104673783,91 * 0,8 = 83739027,128
and
103 503 253,74</SPAN> > 83739027,128
so only 1 name gave over 80%
[TABLE="width: 500"]
<TBODY>[TR]
[TD]X[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Y[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Z[/TD]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]
Many thanks in advance!
I have a problem with build a function from many if, sums and count
[TABLE="class: outer_border, width: 500, align: left"]
<TBODY>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]Name[/TD]
[TD]Category[/TD]
[TD]Positive / Negative[/TD]
[TD]Number[/TD]
[/TR]
[TR]
[TD]AA[/TD]
[TD]x[/TD]
[TD]Positive[/TD]
[TD][TABLE="width: 104"]
<TBODY>[TR]
[TD="align: right"]103 503 253,74</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]BB[/TD]
[TD]x[/TD]
[TD]Negative[/TD]
[TD][TABLE="width: 104"]
<TBODY>[TR]
[TD="align: right"]42 125 221,42</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]CC[/TD]
[TD]y[/TD]
[TD]Positive[/TD]
[TD][TABLE="width: 104"]
<TBODY>[TR]
[TD="align: right"]85 401 512,22</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]DD[/TD]
[TD]z[/TD]
[TD]Positive[/TD]
[TD][TABLE="width: 104"]
<TBODY>[TR]
[TD="align: right"]30 600 783,38</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]EE[/TD]
[TD]y[/TD]
[TD]Negative[/TD]
[TD][TABLE="width: 104"]
<TBODY>[TR]
[TD="align: right"]32 698 328,06</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]FF[/TD]
[TD]y[/TD]
[TD]Positive[/TD]
[TD][TABLE="width: 104"]
<TBODY>[TR]
[TD="align: right"]36 048 545,10</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]GG[/TD]
[TD]y[/TD]
[TD]Positive[/TD]
[TD][TABLE="width: 104"]
<TBODY>[TR]
[TD="align: right"]993 354,51</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]HH[/TD]
[TD]x[/TD]
[TD]Negative[/TD]
[TD][TABLE="width: 104"]
<TBODY>[TR]
[TD="align: right"]774 600,81</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]II[/TD]
[TD]z[/TD]
[TD]Positive[/TD]
[TD][TABLE="width: 104"]
<TBODY>[TR]
[TD="align: right"]10 420 490,23</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]JJ[/TD]
[TD]z[/TD]
[TD]Positive[/TD]
[TD][TABLE="width: 104"]
<TBODY>[TR]
[TD="align: right"]23 557 656,72</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]KK[/TD]
[TD]x[/TD]
[TD]Negative[/TD]
[TD][TABLE="width: 104"]
<TBODY>[TR]
[TD="align: right"]1 141 258,86</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]LL[/TD]
[TD]z[/TD]
[TD]Positive[/TD]
[TD][TABLE="width: 104"]
<TBODY>[TR]
[TD="align: right"]1 162 261,71</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]MM[/TD]
[TD]x[/TD]
[TD]Positive[/TD]
[TD][TABLE="width: 104"]
<TBODY>[TR]
[TD="align: right"]1 170 530,17</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]NN[/TD]
[TD]y[/TD]
[TD]Negative[/TD]
[TD][TABLE="width: 104"]
<TBODY>[TR]
[TD="align: right"]92 860 585,07</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]sum[/TD]
[TD][TABLE="width: 136"]
<TBODY>[TR]
[TD="align: right"][TABLE="width: 136"]
<TBODY>[TR]
[TD]462 458 382,00</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
[/TD]
[/TR]
</TBODY>[/TABLE]
I would like to build a function counting quantity (countif/countifs) of "name" for each category, only "positive" which sum ( each category ) will be over 80%
E.g.
Category X = 1
Because
=sumifs($D$4:$D$17;$B$4:$B$17;B20;$C$4:$C$17;$C$4) => category "X" and "Positive"
104673783,91 * 0,8 = 83739027,128
and
103 503 253,74</SPAN> > 83739027,128
so only 1 name gave over 80%
[TABLE="width: 500"]
<TBODY>[TR]
[TD]X[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Y[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Z[/TD]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]
Many thanks in advance!