设置Excel中表一的A1:E4单元格为:
收入 0% 5.01% 25.01% 25.01%
0 100% 80% 60% 0%
50000 100% 60% 50% 0%
200000.01 100% 40% 30% 0%
注:小数点后带0.01的是为了控制临界点(即等于20万、等于5%等情况)
表二:A1:D7计算结果如下:
姓名 收入 完成比例 发放情况
张三 5000 10% 80%
李四 100000 20% 60%
王五 300000 25% 40%
a 50000 30% 0%
b 200000 10% 60%
c 200001 10% 40%
其中D2中的公式如下,将此公式向下填充即可:
=INDEX(表一!$B$2:$E$4,MATCH(B2,表一!$A$2:$A$4,1),MATCH(C2,表一!$B$1:$E$1,1))
直接在表一的D2单元格输入公式
=IF(B2<50000,LOOKUP(C2,{0,0.05001,0.15001,0.25001},{1,0.8,0.6,0}),IF(B2>200000,LOOKUP(C2,{0,0.05001,0.15001,0.25001},{1,0.4,0.3,0}),LOOKUP(C2,{0,0.05001,0.15001,0.25001},{1,0.6,0.5,0})))
下拉即可