如果单元格不是空白,则使用串联将文本和公式合并

时间:2018-06-29 05:46:38

标签: excel excel-formula

  =CONCATENATE("THIS IS THE EXECUTION PAGE of the Agreement made between "&A1&" "&A2&" as Developer and "&A3&" as Purchaser(s),"",IF(A4<>"","and "&A5&" "&A6&" as Proprietor","") in respect of Parcel No. "&A7&",""")

使用上述公式,我试图得出一个句子,如果单元格A4为空,则为:
这是A1作为开发商的A2与A3作为买方的A3签订的协议的执行页面

并且如果单元格A4不为空白,则为:
这是关于A7号包裹的开发商A1 A2和作为购买者的A3与作为所有者的A5 A6之间达成的协议的执行页面

但是它不允许我这样做。请告知哪里出了问题?

1 个答案:

答案 0 :(得分:1)

这是您想要的吗?

="THIS IS THE EXECUTION PAGE of the Agreement made between " & A1 & " " & A2 & " as Developer and " & A3 & " as Purchaser(s) " & IF(ISBLANK(A4), "",  "and "  & A5 & " " & A6 & " as Proprietor") & " in respect of Parcel No. " & A7