我正在尝试用分号分隔符连接其他每一列中的单元格。我拥有并且基本上有效的公式是:
=IF(SUBSTITUTE(TRIM(H2&" "&J2&" "&L2&" "&N2&" "&P2&" "&R2&" "&T2&" "&V2&" "&X2&" "&Z2)," ","; ")="","",SUBSTITUTE(TRIM(H2&" "&J2&" "&L2&" "&N2&" "&P2&" "&R2&" "&T2&" "&V2&" "&X2&" "&Z2)," ","; "))
但是我遇到的问题是一些单元格包含带空格的文本,并且公式将分隔符放在合法空格的位置。我该如何纠正?
提前致谢!