如何使用EXCEL公式在双引号之间交换文本

时间:2019-10-28 17:57:39

标签: excel excel-formula

我试图在EXCEL单单元格中的双引号之间交换文本。

Example Text:  {"TEST1", "METHOD"},

Expected Result: {"METHOD", "TEST1"},

尝试了此功能,但不起作用。

=right(A1,len(A1)-find(" ",A1))&" "&left(A1,find(",",A1)-1)

2 个答案:

答案 0 :(得分:1)

尝试:

enter image description here

B1中的公式:

="{"&MID(A1,FIND(",",A1)+2,LEN(A1)-FIND(",",A1)-2)&", "&MID(A1,2,FIND(",",A1)-2)&"}"

答案 1 :(得分:0)

更短的公式选项

="{"&SUBSTITUTE(MID(A1&A1,FIND(",",A1)+2,LEN(A1)-2),"}{",", ")&"}"