举例一
=SUMPRODUCT(TEXT(B3-{20000,50000,100000,200000,500000},"0;!0")*{15,5,5,5,5}%)
=SUMPRODUCT(TEXT(B3-{20000,50000,100000,200000,500000},"0;!0")*{20,5,5,5,5}%)
举例二
=SUMPRODUCT(TEXT(B2-{0,10000,30000,50000,80000},"0;!0")*{2,1,1,2,2}%)
参考:https://jingyan.baidu.com/article/636f38bb8b533dd6b84610e7.html
php代码
<?php $config = [ [20000,50000, 0.1],11//20000 到50000之间到按照0.1 = 10%分红 [50000,100000 0. 15] [100000,200000, 0. 2] [200000,9999999999, 0. 25] ]; $share = ; if ($_ GET[' money' ]) {