EXCEL中计算阶梯分段计算公式
作者:互联网
举例一
=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' ]) {
标签:50000,200000,分段,TEXT,EXCEL,20000,500000,计算公式,SUMPRODUCT 来源: https://www.cnblogs.com/xiaohi/p/15358022.html