Excel公式帮助:如果单元格为空,则为xyz

时间:2017-07-14 17:56:38

标签: excel if-statement google-sheets

根据以下标准帮助制定公式:

If cells I and J are blank then K = "Initiated" 
If cell I has a date and J is blank then K = "Invited" 
If cells I and J have a date then K = "Complete"

我将如何编写此公式 - 我相信我会从以下内容开始 - 但是,这只会返回错误

=IF(AND(NOT(ISBLANK(I2));NOT(ISBLANK(J2)));IF((I2&J2="";"Initiated";"Invited");"Complete"))

1 个答案:

答案 0 :(得分:0)

在列K中输入此公式,

=IF(AND(I1="";J1="");"Initiated";IF(AND(I1<>"";J1<>"");"Complete";"Invited"))

enter image description here