设入库量在a列,在b2输入:
=MIN(2,IF(A2="",0,IF(A2<=1,0.06,IF(A2<=2,0.1,ROUNDUP(A2,-1)*0.02))))
设出库量在c列,在d2输入:
=MIN(20,IF(C2="",0,IF(C2<=1,0.5,IF(C2<=2,0.55,ROUNDUP(C2,-1)*0.1))))
=IF(A1<=1,0.06+0.5,IF(A1<=2,0.1+0.55,IF(A1<=10,0.2+1,IF(A1>10,MIN(ROUNDDOWN(A1/10,0)*2*(0.2+1),20+2)))))
=IF(IF(A1<=1,0.06+0.5,IF(A1<=2,0.1+0.55,IF(A1<=10,0.2+1,IF(A1>10,ROUNDDOWN(A1/10,0)*2*(0.2+1)))))>22,22)
给个附件再帮你做啦,这个公式不难的,
你这样的话给个图片数据点位置也不知道,不好帮你直接写下来公式
if(a,b,c),如果条件a成立,则输出b,如果不成立,则输出c