目前我有这个公式将单元格值组合在一起并将它们组合起来以复制并粘贴到文档中。
=IF(G2="","",J2&CHAR(10)&K2&CHAR(10)&L2&CHAR(10)&G2&" / "&H2&CHAR(10)&T2&"/ LOC NA "&O2&CHAR(10)&N2&" "&M2&CHAR(10)&"POST CONSTRUCTION BILLING REQUIRED / "&R2&" COUNTY")
我想添加一个函数if M2 = "200 AMPS"
,然后将短语添加"INSTALL 1/0 AL TPLX SERVICE"
到输出中。我想添加粗体部分的变体。
=IF(G2="","",J2&CHAR(10)&K2&CHAR(10)&L2&CHAR(10)&G2&" / "&H2&CHAR(10)&T2&"/ LOC NA "&O2&CHAR(10)&N2&" "&M2&CHAR(10)&"POST CONSTRUCTION BILLING REQUIRED / "&R2&" COUNTY"&IF(M2="200 AMPS","INSTALL 1/0 AL TPLX SERVICE",""))