2
|
snrtuemcLv8专家互助发布于2021-3-9 14:59(编辑于 2021-3-9 15:08)
|
假设在A1到E1单元格 CONCATENATE(if(len(A1)=0,"",A1),if(len(B1)=0,"","/"+B1),if(len(C1)=0,"","/"+C1),if(len(D1)=0,"","/"+D1),if(len(E1)=0,"","/"+E1)) 完善下,防止前面为空 CONCATENATE(if(len(A1)=0,"",A1),if(len(B1)=0,"",if(len(A1)=0,B1,"/"+B1)),if(len(C1)=0,"",if(len(B1)=0,C1,"/"+C1)),if(len(D1)=0,"","/"+D1),if(len(E1)=0,"","/"+E1))
|
-
用户H5691967(提问者)
- 多谢!
-
用户H5691967(提问者)
- 我又给完善了一下。
假设拼接G2到M2单元格:
CONCATENATE(
if(len(G2) = 0, \"\", G2),
if(len(H2) = 0, \"\", if(len(G2) = 0, H2, \"/\" + H2)),
if(len(I2) = 0, \"\", if(len(G2+H2) = 0, I2, \"/\" + I2)),
if(len(J2) = 0, \"\", if(len(G2+H2+I2) = 0, J2, \"/\" + J2)),
if(len(K2) = 0, \"\", if(len(G2+H2+I2+J2) = 0, K2, \"/\" + K2)),
if(len(L2) = 0, \"\", if(len(G2+H2+I2+J2+K2) = 0, L2, \"/\" + L2)),
if(len(M2) = 0, \"\", if(len(G2+H2+I2+J2+K2+L2) = 0, M2, \"/\" + M2))
)
|
|