我的公式适用于列H
,但现在我们添加了列,I
如何告诉 excel 使用这个公式中的空I
列H
=ROUND(IF(H4<=F4*0.03,H4,IF(H4<=F4*0.05,((F4*0.03)+(H4-F4*0.03)*0.5),
(F4*0.03)+((F4*0.02)*0.5))),2)
答案1
怎么样:
=IF(H4<>"",ROUND(IF(H4<=F4*0.03,H4,IF(H4<=F4*0.05,((F4*0.03)+(H4-F4*0.03)*0.5),(F4*0.03)+((F4*0.02)*0.5))),2),ROUND(IF(I4<=F4*0.03,H4,IF(I4<=F4*0.05,((F4*0.03)+(H4-F4*0.03)*0.5),(F4*0.03)+((F4*0.02)*0.5))),2))
答案2
谢谢你的帮助。我确实希望它从列中提取如果列为零而不是空白的数据。你帮了大忙。这是正常工作的公式!非常令人兴奋的东西! =IF(TRIM(H4)="0",ROUND(IF(I4<=F4*0.03,I4,IF(I4<=F4*0.05,((F4*0.03)+(I4-F4*0.03)*0.5),(F4*0.03)+((F4*0.02)*0.5))),2),ROUND(IF(H4<=F4*0.03,H4,IF(H4<=F4*0.05,((F4*0.03)+(H4-F4*0.03)*0.5),(F4*0.03)+((F4*0.02)*0.5))),2))