发布网友 发布时间:2022-04-19 13:05
共4个回答
热心网友 时间:2023-07-06 15:54
研究出两个比较笨的公式,抛砖引玉:
一、数组公式,需三键确认,如金额大于10亿,需修改公式中的上限“999999999”:
B2=SUM((IF((--TEXT(A2-{0,500,1000,5000,10000},"0;""0"""))>{500,500,4000,5000,999999999},{500,500,4000,5000,999999999},(--TEXT(A2-{0,500,1000,5000,10000},"0;""0"""))))*{0.8,0.7,0.6,0.55,0.5})
二、普通公式:
B2=SUMPRODUCT((A2>={500,1000,5000,10000})*{400,350,2400,2750})+SUMPRODUCT((LOOKUP(A2,{0,500,1000,5000,10000})={0,500,1000,5000,10000})*{0.8,0.7,0.6,0.55,0.5})*(A2-LOOKUP(A2,{0,500,1000,5000,10000}))
热心网友 时间:2023-07-06 15:55
输入
=SUMPRODUCT(TEXT(A2-{0,501,1001,5001,10000},"0;!0")*{0.8,-0.1,-0.1,-0.05,-0.05})
详见附图示例
热心网友 时间:2023-07-06 15:55
可以用lookup()查找。
=IF(A2="",0,LOOKUP(A2,{0,501,1001,5001,10001},{0.8,0.7,0.6,0.55,0.5}))
热心网友 时间:2023-07-06 15:56
=if(A2<=500,"80%",IF(A2<=1000,“70%”,if(A2<=5000,"60%",if(A2<=10000,"55%","50%"))))