发布网友 发布时间:2022-04-30 11:09
共2个回答
热心网友 时间:2022-06-21 14:03
你的描述绕得真的是有点晕啊!
你的意思是不是需要分段分档核算总价?!
若A14是输入的数量,则应该是在C14单元格输入公式:
=SUM(TEXT(MAX(5,A14)-{0,5,10,15,20,30,50,100},"0;!0")*{800,-200,-200,0,0,-25,-25,0})
是否是这个意思?
追问首先,感谢你的回答!追答
按你的要求,估计是公式:
=SUM(TEXT(MAX(5,A14)-{0,5,10,15,20,30,50,100},"0;!0")*{800,-200,-200,0,0,-25,-25,0})
应该可以使用了吧…………
热心网友 时间:2022-06-21 14:04
=INDEX($C:$C,$B14-1)+(INDEX($C:$C,$B14)-INDEX($C:$C,$B14-1))/(INDEX(A:A,SMALL(IF($A$2:$A$9>=A14,ROW($A$2:$A$9),65536),1))-INDEX(A:A,SMALL(IF($A$2:$A$9>=A14,ROW($A$2:$A$9),65536),1)-1))*(A14-INDEX(A:A,SMALL(IF($A$2:$A$9>=A14,ROW($A$2:$A$9),65536),1)-1))追答
=INDEX($C:$C,SMALL(IF($A$2:$A$9>=A14,ROW($A$2:$A$9),65536),1)-1)+(INDEX($C:$C,SMALL(IF($A$2:$A$9>=A14,ROW($A$2:$A$9),65536),1))-INDEX($C:$C,SMALL(IF($A$2:$A$9>=A14,ROW($A$2:$A$9),65536),1)-1))/(INDEX(A:A,SMALL(IF($A$2:$A$9>=A14,ROW($A$2:$A$9),65536),1))-INDEX(A:A,SMALL(IF($A$2:$A$9>=A14,ROW($A$2:$A$9),65536),1)-1))*(A14-INDEX(A:A,SMALL(IF($A$2:$A$9>=A14,ROW($A$2:$A$9),65536),1)-1))