我正在寻找一个执行以下操作的Excel IF语句
如果单元格A3
超出预算A1,则打印文本“Over Budget by $”然后Sum(a3-a1)
所以,结果应该是这样的:
超出预算27美元
有谁知道我怎么能做到这一点?
谢谢!
我正在寻找一个执行以下操作的Excel IF语句
如果单元格A3
超出预算A1,则打印文本“Over Budget by $”然后Sum(a3-a1)
所以,结果应该是这样的:
超出预算27美元
有谁知道我怎么能做到这一点?
谢谢!
Answers:
http://office.microsoft.com/en-us/excel-help/if-HP005209118.aspx
=IF(A3<=A1,"Within budget","Over budget by $"&(A3-A1))
=IF(A3>A1,"Over budget by $ " &(A3-A1),"")
=IF(A1=A3,"Budget balanced",IF(A3<A1,"Within budget","Over budget by $ "&(A3-A1)))
(发布评论为Hoang值得接受点)