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 = [

[2000050000, 0.1],11//20000 到50000之间到按照0.1 = 10%分红

[50000100000 0. 15]

[1000002000000. 2]

[20000099999999990. 25]

];

$share = ;

if ($_ GET[' money' ]) {

 

posted @ 2021-09-30 20:06  article  阅读(3181)  评论(0编辑  收藏  举报