EXCEL if公式多个条件下使用
如上图,超期7天,结算价降2%,超14天,降4%,超20天,降7%。在D列显示,如何表达公式。555,木有钱呢
=C2*(1-lookup(--B2,{0,7,14,20},{0,0.02,0.04,0.07}))
D2输入公式:
=if(B2>晌薯7,(1-0.02)*C2,if(B2>棚谨雹14,(1-0.04)*C2,if(B2>20,(1-0.07)*C2)))
选中D2,下拉填充D列。链帆
D2=IF(B2>20,C2*0.93,IF(B2>14,C2*0.96,IF(B2>7,C2*0.98,C2)))