在Excel公式中组合连接和if

时间:2013-08-14 15:33:28

标签: excel excel-2007 excel-formula

如何将IF(ISBLANK公式添加到此公式

=CONCATENATE(TEXT('Unapplied Report'!A5,"0000"),TEXT('Unapplied Report'!C5,"000"),TEXT('Unapplied Report'!D5,"0000"))

没有任何错误。我已经尝试了几次,只是得到了公式错误消息。

2 个答案:

答案 0 :(得分:7)

也许你正在寻找这个?

=CONCATENATE(IF(ISBLANK('Unapplied Report'!A5),"",TEXT('Unapplied Report'!A5,"0000")),
             IF(ISBLANK('Unapplied Report'!C5),"",TEXT('Unapplied Report'!C5,"000")),
             IF(ISBLANK('Unapplied Report'!D5),"",TEXT('Unapplied Report'!D5,"0000")))

这将仅连接那些非空白的单元格。

答案 1 :(得分:3)

我认为这就是你要找的东西:

=IF('Unapplied Report'!A5="","",TEXT('Unapplied Report'!A5,"0000"))&IF('Unapplied Report'!C5="","",TEXT('Unapplied Report'!C5,"0000"))&IF('Unapplied Report'!D5="","",TEXT('Unapplied Report'!D5,"0000"))