从包含文本字符串的另一个单元格创建单个单元格列表
Create single cell list from another cell containing a text string
有没有一种方法可以在不影响 x400 行的情况下从另一个单元格中的字符串在单个单元格中构建列表。
我尝试了以下方法,但并不满意
=CONCATENATE(A19&CHAR(10), ";")
=TEXTJOIN( "; "&CHAR(10),TRUE,A19)
=TEXTJOIN({"; "}, TRUE, A11&CHAR(10))
Input String
Desired Output List In Single Cell
smtp:postmaster@test.com;smtp:user1@onetest.co.uk;smtp:user1@testing.com;SMTP:user1@thetest.com;smtp:user1@test.local;X400:C=GB;A= ;P=Test;O=Exchange;S=User;G=1;
smtp:postmaster@test.com; smtp:user1@onetest.co.uk; smtp:user1@testing.com; SMTP:user1@thetest.com; smtp:user1@test.local; X400:C=GB;A=;P=Test;O=Exchange;S=User;G=1;
解析字符串并使用 SUBSTITUTE:
=SUBSTITUTE(LEFT(A1,SEARCH("x400",A1)-1),";",";"&CHAR(10))&MID(A1,SEARCH("x400",A1),LEN(A1))
有没有一种方法可以在不影响 x400 行的情况下从另一个单元格中的字符串在单个单元格中构建列表。
我尝试了以下方法,但并不满意
=CONCATENATE(A19&CHAR(10), ";")
=TEXTJOIN( "; "&CHAR(10),TRUE,A19)
=TEXTJOIN({"; "}, TRUE, A11&CHAR(10))
Input String | Desired Output List In Single Cell |
---|---|
smtp:postmaster@test.com;smtp:user1@onetest.co.uk;smtp:user1@testing.com;SMTP:user1@thetest.com;smtp:user1@test.local;X400:C=GB;A= ;P=Test;O=Exchange;S=User;G=1; | smtp:postmaster@test.com; smtp:user1@onetest.co.uk; smtp:user1@testing.com; SMTP:user1@thetest.com; smtp:user1@test.local; X400:C=GB;A=;P=Test;O=Exchange;S=User;G=1; |
解析字符串并使用 SUBSTITUTE:
=SUBSTITUTE(LEFT(A1,SEARCH("x400",A1)-1),";",";"&CHAR(10))&MID(A1,SEARCH("x400",A1),LEN(A1))