Explain SUMPRODUCT formula function

gshaffner

New Member
Joined
Apr 27, 2017
Messages
11
The table below is an analysis of tasks and the variances between actuals and standard. My original intent was to rank equally column G variances. As they are both negative and positive I cannot just use the RANK function in Excel. I found a formula using SUMPRODUCT, which worked, but I do not completely understand how it works. A coworker modified the original formula in column I and the result is in column J. How is it that both fornulas work? Can someone breakdown what the SUMPRODUCT formula in column I is actually doing? I don't want to use a formula that I do not understand how it works.

Many thanks for any help.

Formula in column I:
=SUMPRODUCT((ABS(G3)<=ABS($G$3:$G$17))*($G$3:$G$17<>""))-SUMPRODUCT((ABS(G3)=ABS($G$3:$G$17))*($G$3:$G$17<>""))+1

Formula in column J:
=SUMPRODUCT((ABS(G3)<=ABS($G$3:$G$17))*($G$3:$G$17<>""))


<tbody>
[TD="class: xl49145"]

<colgroup><col style="mso-width-source:userset;mso-width-alt:768;width:16pt" width="21"> <col style="mso-width-source:userset;mso-width-alt:4937;width:101pt" width="135"> <col style="mso-width-source:userset;mso-width-alt:2048; width:42pt" width="56" span="3"> <col style="mso-width-source:userset;mso-width-alt:2267;width:47pt" width="62"> <col style="mso-width-source:userset;mso-width-alt:3474;width:71pt" width="95"> <col style="width:48pt" width="64"> <col style="mso-width-source:userset;mso-width-alt:2852;width:59pt" width="78"> <col style="mso-width-source:userset;mso-width-alt:2560; width:53pt" width="70" span="2"> </colgroup><tbody>
[TD="class: xl49160, width: 21, align: right"]1[/TD]
[TD="class: xl49161, width: 135"]A[/TD]
[TD="class: xl49161, width: 56"]B[/TD]
[TD="class: xl49161, width: 56"]C[/TD]
[TD="class: xl49161, width: 56"]D[/TD]
[TD="class: xl49161, width: 62"]E[/TD]
[TD="class: xl49161, width: 95"]F[/TD]
[TD="class: xl49161, width: 64"]G[/TD]
[TD="class: xl49161, width: 78"]H[/TD]
[TD="class: xl49161, width: 70"]I[/TD]
[TD="class: xl49162, width: 70"]J[/TD]

[TD="class: xl49163, align: right"]2[/TD]
[TD="class: xl49147"] [/TD]
[TD="class: xl49148"]Actuals[/TD]
[TD="class: xl49148"]Inspect[/TD]
[TD="class: xl49148"]Move[/TD]
[TD="class: xl49148"]Function[/TD]
[TD="class: xl49148"]Standard[/TD]
[TD="class: xl49148"]Variance[/TD]
[TD="class: xl49148"]Variance %[/TD]
[TD="class: xl49149"]Ranking 1[/TD]
[TD="class: xl49150"]Ranking 2[/TD]

[TD="class: xl49163, align: right"]3[/TD]
[TD="class: xl49151"]Task 1[/TD]
[TD="class: xl49142"] 18.4 [/TD]
[TD="class: xl49142"] 5.0 [/TD]
[TD="class: xl49142"] 10.0 [/TD]
[TD="class: xl49142"] 5.4 [/TD]
[TD="class: xl49142"] 20.4 [/TD]
[TD="class: xl49143"] 2.0 [/TD]
[TD="class: xl49144, align: right"]-9.8%[/TD]
[TD="class: xl49143"] 11.0 [/TD]
[TD="class: xl49152, align: right"]11[/TD]

[TD="class: xl49163, align: right"]4[/TD]
[TD="class: xl49151"]Task 2[/TD]
[TD="class: xl49142"] 26.2 [/TD]
[TD="class: xl49142"] 17.7 [/TD]
[TD="class: xl49142"] 2.7 [/TD]
[TD="class: xl49142"] 40.0 [/TD]
[TD="class: xl49142"] 60.4 [/TD]
[TD="class: xl49143"] 34.2 [/TD]
[TD="class: xl49144, align: right"]-56.6%[/TD]
[TD="class: xl49143"] 6.0 [/TD]
[TD="class: xl49152, align: right"]6[/TD]

[TD="class: xl49163, align: right"]5[/TD]
[TD="class: xl49151"]Task 3[/TD]
[TD="class: xl49142"] 32.1 [/TD]
[TD="class: xl49142"][/TD]
[TD="class: xl49142"] 7.5 [/TD]
[TD="class: xl49142"] 23.9 [/TD]
[TD="class: xl49142"] 31.4 [/TD]
[TD="class: xl49143"] (0.7)[/TD]
[TD="class: xl49144, align: right"]2.3%[/TD]
[TD="class: xl49143"] 15.0 [/TD]
[TD="class: xl49152, align: right"]15[/TD]

[TD="class: xl49163, align: right"]6[/TD]
[TD="class: xl49151"]Task 4[/TD]
[TD="class: xl49142"] 35.8 [/TD]
[TD="class: xl49142"][/TD]
[TD="class: xl49142"] 5.0 [/TD]
[TD="class: xl49142"] 32.6 [/TD]
[TD="class: xl49142"] 37.6 [/TD]
[TD="class: xl49143"] 1.8 [/TD]
[TD="class: xl49144, align: right"]-4.9%[/TD]
[TD="class: xl49143"] 14.0 [/TD]
[TD="class: xl49152, align: right"]14[/TD]

[TD="class: xl49163, align: right"]7[/TD]
[TD="class: xl49151"]Task 5[/TD]
[TD="class: xl49142"] 17.6 [/TD]
[TD="class: xl49142"][/TD]
[TD="class: xl49142"] 5.0 [/TD]
[TD="class: xl49142"] 7.5 [/TD]
[TD="class: xl49142"] 12.5 [/TD]
[TD="class: xl49143"] (5.1)[/TD]
[TD="class: xl49144, align: right"]40.5%[/TD]
[TD="class: xl49143"] 9.0 [/TD]
[TD="class: xl49152, align: right"]9[/TD]

[TD="class: xl49163, align: right"]8[/TD]
[TD="class: xl49151"]Task 6[/TD]
[TD="class: xl49142"] 63.2 [/TD]
[TD="class: xl49142"] 1.4 [/TD]
[TD="class: xl49142"] 8.3 [/TD]
[TD="class: xl49142"] 94.9 [/TD]
[TD="class: xl49142"] 104.6 [/TD]
[TD="class: xl49143"] 41.4 [/TD]
[TD="class: xl49144, align: right"]-39.6%[/TD]
[TD="class: xl49143"] 4.0 [/TD]
[TD="class: xl49152, align: right"]4[/TD]

[TD="class: xl49163, align: right"]9[/TD]
[TD="class: xl49151"]Task 7[/TD]
[TD="class: xl49142"] 117.2 [/TD]
[TD="class: xl49142"] 6.8 [/TD]
[TD="class: xl49142"] 8.7 [/TD]
[TD="class: xl49142"] 167.3 [/TD]
[TD="class: xl49142"] 182.8 [/TD]
[TD="class: xl49143"] 65.6 [/TD]
[TD="class: xl49144, align: right"]-35.9%[/TD]
[TD="class: xl49143"] 2.0 [/TD]
[TD="class: xl49152, align: right"]2[/TD]

[TD="class: xl49163, align: right"]10[/TD]
[TD="class: xl49151"]Task 8[/TD]
[TD="class: xl49142"] 34.2 [/TD]
[TD="class: xl49142"][/TD]
[TD="class: xl49142"][/TD]
[TD="class: xl49142"][/TD]
[TD="class: xl49142"] - [/TD]
[TD="class: xl49143"] (34.2)[/TD]
[TD="class: xl49144, align: right"]0.0%[/TD]
[TD="class: xl49143"] 5.0 [/TD]
[TD="class: xl49152, align: right"]5[/TD]

[TD="class: xl49163, align: right"]11[/TD]
[TD="class: xl49151"]Task 9[/TD]
[TD="class: xl49142"] 36.1 [/TD]
[TD="class: xl49142"] 0.5 [/TD]
[TD="class: xl49142"] 3.8 [/TD]
[TD="class: xl49142"] 27.5 [/TD]
[TD="class: xl49142"] 31.8 [/TD]
[TD="class: xl49143"] (4.3)[/TD]
[TD="class: xl49144, align: right"]13.5%[/TD]
[TD="class: xl49143"] 10.0 [/TD]
[TD="class: xl49152, align: right"]10[/TD]

[TD="class: xl49163, align: right"]12[/TD]
[TD="class: xl49151"]Task 10[/TD]
[TD="class: xl49142"] 35.1 [/TD]
[TD="class: xl49142"] 3.5 [/TD]
[TD="class: xl49142"] 3.3 [/TD]
[TD="class: xl49142"] 26.4 [/TD]
[TD="class: xl49142"] 33.2 [/TD]
[TD="class: xl49143"] (1.9)[/TD]
[TD="class: xl49144, align: right"]5.8%[/TD]
[TD="class: xl49143"] 12.0 [/TD]
[TD="class: xl49152, align: right"]12[/TD]

[TD="class: xl49163, align: right"]13[/TD]
[TD="class: xl49151"]Task 11[/TD]
[TD="class: xl49142"] 91.3 [/TD]
[TD="class: xl49142"] 14.0 [/TD]
[TD="class: xl49142"] 2.2 [/TD]
[TD="class: xl49142"] 9.0 [/TD]
[TD="class: xl49142"] 25.2 [/TD]
[TD="class: xl49143"] (66.1)[/TD]
[TD="class: xl49144, align: right"]262.3%[/TD]
[TD="class: xl49143"] 1.0 [/TD]
[TD="class: xl49152, align: right"]1[/TD]

[TD="class: xl49163, align: right"]14[/TD]
[TD="class: xl49151"]Task 12[/TD]
[TD="class: xl49142"] 73.1 [/TD]
[TD="class: xl49142"] 6.5 [/TD]
[TD="class: xl49142"] 4.1 [/TD]
[TD="class: xl49142"] 60.6 [/TD]
[TD="class: xl49142"] 71.2 [/TD]
[TD="class: xl49143"] (1.9)[/TD]
[TD="class: xl49144, align: right"]2.7%[/TD]
[TD="class: xl49143"] 13.0 [/TD]
[TD="class: xl49152, align: right"]13[/TD]

[TD="class: xl49163, align: right"]15[/TD]
[TD="class: xl49151"]Task 13[/TD]
[TD="class: xl49142"] 40.1 [/TD]
[TD="class: xl49142"] 3.1 [/TD]
[TD="class: xl49142"] 20.3 [/TD]
[TD="class: xl49142"] 11.1 [/TD]
[TD="class: xl49142"] 34.5 [/TD]
[TD="class: xl49143"] (5.6)[/TD]
[TD="class: xl49144, align: right"]16.2%[/TD]
[TD="class: xl49143"] 8.0 [/TD]
[TD="class: xl49152, align: right"]8[/TD]

[TD="class: xl49163, align: right"]16[/TD]
[TD="class: xl49151"]Task 14[/TD]
[TD="class: xl49142"] 87.7 [/TD]
[TD="class: xl49142"] 19.4 [/TD]
[TD="class: xl49142"] 3.5 [/TD]
[TD="class: xl49142"] 77.0 [/TD]
[TD="class: xl49142"] 99.9 [/TD]
[TD="class: xl49143"] 12.2 [/TD]
[TD="class: xl49144, align: right"]-12.2%[/TD]
[TD="class: xl49143"] 7.0 [/TD]
[TD="class: xl49152, align: right"]7[/TD]

[TD="class: xl49163, align: right"]17[/TD]
[TD="class: xl49151"]Task 15[/TD]
[TD="class: xl49142"] 88.9 [/TD]
[TD="class: xl49142"][/TD]
[TD="class: xl49142"] 18.0 [/TD]
[TD="class: xl49142"] 126.9 [/TD]
[TD="class: xl49142"] 144.9 [/TD]
[TD="class: xl49143"] 56.0 [/TD]
[TD="class: xl49144, align: right"]-38.7%[/TD]
[TD="class: xl49143"] 3.0 [/TD]
[TD="class: xl49152, align: right"]3[/TD]

[TD="class: xl49163, align: right"]18[/TD]
[TD="class: xl49153"]SUBTOTAL[/TD]
[TD="class: xl49139"] 797.0 [/TD]
[TD="class: xl49139"] 77.9 [/TD]
[TD="class: xl49139"] 102.4 [/TD]
[TD="class: xl49139"] 710.1 [/TD]
[TD="class: xl49139"] 890.4 [/TD]
[TD="class: xl49140"] 93.4 [/TD]
[TD="class: xl49141"]-10.5%[/TD]
[TD="class: xl49146"][/TD]
[TD="class: xl49152"] [/TD]

[TD="class: xl49163, align: right"]19[/TD]
[TD="class: xl49151"]Task 16[/TD]
[TD="class: xl49142"] 67.5 [/TD]
[TD="class: xl49142"][/TD]
[TD="class: xl49142"] 23.0 [/TD]
[TD="class: xl49142"][/TD]
[TD="class: xl49142"] 23.0 [/TD]
[TD="class: xl49143"] (44.5)[/TD]
[TD="class: xl49144, align: right"]193.6%[/TD]
[TD="class: xl49146"][/TD]
[TD="class: xl49152"] [/TD]

[TD="class: xl49163, align: right"]20[/TD]
[TD="class: xl49151"]Task 17[/TD]
[TD="class: xl49142"] 98.0 [/TD]
[TD="class: xl49142"] 63.2 [/TD]
[TD="class: xl49142"][/TD]
[TD="class: xl49142"][/TD]
[TD="class: xl49142"] 63.2 [/TD]
[TD="class: xl49143"] (34.8)[/TD]
[TD="class: xl49144, align: right"]55.0%[/TD]
[TD="class: xl49146"][/TD]
[TD="class: xl49152"] [/TD]

[TD="class: xl49163, align: right"]21[/TD]
[TD="class: xl49151"]Task 18[/TD]
[TD="class: xl49142"] - [/TD]
[TD="class: xl49142"] 63.1 [/TD]
[TD="class: xl49145"][/TD]
[TD="class: xl49145"][/TD]
[TD="class: xl49142"] 63.1 [/TD]
[TD="class: xl49143"] 63.1 [/TD]
[TD="class: xl49144, align: right"]-100.0%[/TD]
[TD="class: xl49146"][/TD]
[TD="class: xl49152"] [/TD]

[TD="class: xl49163, align: right"]22[/TD]
[TD="class: xl49153"]Subtotal[/TD]
[TD="class: xl49139"] 165.5 [/TD]
[TD="class: xl49139"] 126.3 [/TD]
[TD="class: xl49139"] 23.0 [/TD]
[TD="class: xl49139"] - [/TD]
[TD="class: xl49139"] 149.3 [/TD]
[TD="class: xl49140"] (16.2)[/TD]
[TD="class: xl49141"]10.8%[/TD]
[TD="class: xl49146"][/TD]
[TD="class: xl49152"] [/TD]

[TD="class: xl49164, align: right"]23[/TD]
[TD="class: xl49154"]TOTAL [/TD]
[TD="class: xl49155"] 962.5 [/TD]
[TD="class: xl49155"] 204.2 [/TD]
[TD="class: xl49155"] 125.4 [/TD]
[TD="class: xl49155"] 710.1 [/TD]
[TD="class: xl49155"] 1,039.7 [/TD]
[TD="class: xl49156"] 77.2 [/TD]
[TD="class: xl49157"]-7.4%[/TD]
[TD="class: xl49158"] [/TD]
[TD="class: xl49159"] [/TD]

</tbody>
[/TD]
[TD="class: xl49146"][/TD]
[TD="class: xl49146, width: 56"][/TD]
[TD="class: xl49146, width: 56"][/TD]
[TD="class: xl49146, width: 62"][/TD]
[TD="class: xl49146, width: 95"][/TD]
[TD="class: xl49146, width: 64"][/TD]
[TD="class: xl49146, width: 78"][/TD]
[TD="class: xl49147, width: 70"][/TD]
[TD="class: xl49148, width: 70"][/TD]

[TD="class: xl49149"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49141"][/TD]
[TD="class: xl49142, align: right"][/TD]
[TD="align: right"][/TD]
[TD="class: xl49150, align: right"][/TD]

[TD="class: xl49149"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49141"][/TD]
[TD="class: xl49142, align: right"][/TD]
[TD="align: right"][/TD]
[TD="class: xl49150, align: right"][/TD]

[TD="class: xl49149"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49141"][/TD]
[TD="class: xl49142, align: right"][/TD]
[TD="align: right"][/TD]
[TD="class: xl49150, align: right"][/TD]

[TD="class: xl49149"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49141"][/TD]
[TD="class: xl49142, align: right"][/TD]
[TD="align: right"][/TD]
[TD="class: xl49150, align: right"][/TD]

[TD="class: xl49149"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49141"][/TD]
[TD="class: xl49142, align: right"][/TD]
[TD="align: right"][/TD]
[TD="class: xl49150, align: right"][/TD]

[TD="class: xl49149"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49141"][/TD]
[TD="class: xl49142, align: right"][/TD]
[TD="align: right"][/TD]
[TD="class: xl49150, align: right"][/TD]

[TD="class: xl49149"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49141"][/TD]
[TD="class: xl49142, align: right"][/TD]
[TD="align: right"][/TD]
[TD="class: xl49150, align: right"][/TD]

[TD="class: xl49149"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49141"][/TD]
[TD="class: xl49142, align: right"][/TD]
[TD="align: right"][/TD]
[TD="class: xl49150, align: right"][/TD]

[TD="class: xl49149"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49141"][/TD]
[TD="class: xl49142, align: right"][/TD]
[TD="align: right"][/TD]
[TD="class: xl49150, align: right"][/TD]

[TD="class: xl49149"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49141"][/TD]
[TD="class: xl49142, align: right"][/TD]
[TD="align: right"][/TD]
[TD="class: xl49150, align: right"][/TD]

[TD="class: xl49149"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49141"][/TD]
[TD="class: xl49142, align: right"][/TD]
[TD="align: right"][/TD]
[TD="class: xl49150, align: right"][/TD]

[TD="class: xl49149"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49141"][/TD]
[TD="class: xl49142, align: right"][/TD]
[TD="align: right"][/TD]
[TD="class: xl49150, align: right"][/TD]

[TD="class: xl49149"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49141"][/TD]
[TD="class: xl49142, align: right"][/TD]
[TD="align: right"][/TD]
[TD="class: xl49150, align: right"][/TD]

[TD="class: xl49149"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49141"][/TD]
[TD="class: xl49142, align: right"][/TD]
[TD="align: right"][/TD]
[TD="class: xl49150, align: right"][/TD]

[TD="class: xl49149"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49141"][/TD]
[TD="class: xl49142, align: right"][/TD]
[TD="align: right"][/TD]
[TD="class: xl49150, align: right"][/TD]

[TD="class: xl49151"][/TD]
[TD="class: xl49137"][/TD]
[TD="class: xl49137"][/TD]
[TD="class: xl49137"][/TD]
[TD="class: xl49137"][/TD]
[TD="class: xl49137"][/TD]
[TD="class: xl49138"][/TD]
[TD="class: xl49139"][/TD]
[TD="class: xl49144"][/TD]
[TD="class: xl49150"][/TD]

[TD="class: xl49149"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49141"][/TD]
[TD="class: xl49142, align: right"][/TD]
[TD="class: xl49144"][/TD]
[TD="class: xl49150"][/TD]

[TD="class: xl49149"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49141"][/TD]
[TD="class: xl49142, align: right"][/TD]
[TD="class: xl49144"][/TD]
[TD="class: xl49150"][/TD]

[TD="class: xl49149"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49143"][/TD]
[TD="class: xl49143"][/TD]
[TD="class: xl49140"][/TD]
[TD="class: xl49141"][/TD]
[TD="class: xl49142, align: right"][/TD]
[TD="class: xl49144"][/TD]
[TD="class: xl49150"][/TD]

[TD="class: xl49151"][/TD]
[TD="class: xl49137"][/TD]
[TD="class: xl49137"][/TD]
[TD="class: xl49137"][/TD]
[TD="class: xl49137"][/TD]
[TD="class: xl49137"][/TD]
[TD="class: xl49138"][/TD]
[TD="class: xl49139"][/TD]
[TD="class: xl49144"][/TD]
[TD="class: xl49150"][/TD]

[TD="class: xl49152"][/TD]
[TD="class: xl49153"][/TD]
[TD="class: xl49153"][/TD]
[TD="class: xl49153"][/TD]
[TD="class: xl49153"][/TD]
[TD="class: xl49153"][/TD]
[TD="class: xl49154"][/TD]
[TD="class: xl49155"][/TD]
[TD="class: xl49156"][/TD]
[TD="class: xl49157"][/TD]

</tbody>
 
Last edited:

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
You basically have 3 copies of the same sumproduct function there.
The only difference is 2 of them use
ABS(G3)<=ABS($G$3:$G$17)
And one uses
ABS(G3)=ABS($G$3:$G$17)

The one in I looks complicated, but it's really just
Sumproduct1 minus Sumproduct2 + 1

So I'm really only going to address a single sumproduct function
And I'm going to change it to just 3 rows instead of 15, just for sake of ease.
So lets take this
=SUMPRODUCT((ABS(G3)<=ABS($G$3:$G$5))*($G$3:$G$5<>""))

ABS removes the sign from a number, so a negative becomes a positive..
G3 = 2, so ABS(G3) = 2 (if it was G5, -0.7 would become 0.7)
=SUMPRODUCT((2<=ABS($G$3:$G$17))*($G$3:$G$17<>""))
G4 and G5 = 34.2 and -0.7
=SUMPRODUCT((2<=ABS({2,34.2,-0.7}))*({2,34.2,-0.7}<>""))
ABS converts negatives to positives
=SUMPRODUCT((2<={2,34.2,0.7})*({2,34.2,-0.7}<>""))

Now you have 2 arrays of criteria expressions with True or False results.
is 2 <= {2, 34.2, 0.7}
and
is{2, 34.2, 0.7} Not Blank

=SUMPRODUCT({TRUE,FALSE,TRUE}*{TRUE,TRUE,TRUE})

Now those 2 arrays are multiplied against each other.
When applying math operations (like * - + or /), then TRUE = 1 and FALSE = 0
=SUMPRODUCT({1,0,1}*{1,1,1})
1*1 = 1
0*1 = 0
1*1 = 1
=SUMPRODUCT({1,0,1})
The array is then summed,
1+0+1 = 2


Hope that helps.
 
Last edited:
Upvote 0
I think

=SUMPRODUCT({TRUE,FALSE,TRUE}*{TRUE,TRUE,TRUE})

evaluates to

SUMPRODUCT({1,0,1})

without first getting TRUE to 1, etc. then multiplying pairwise.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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