How to delete Certain Characters in a excel 2010 cell

后端 未结 3 1928
北海茫月
北海茫月 2021-02-07 10:31

In column A I have a load of name that look like this

[John Smith]

I still want them in A but the [] removed...

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-07 11:19

    If [John Smith] is in cell A1, then use this formula to do what you want:

    =SUBSTITUTE(SUBSTITUTE(A1, "[", ""), "]", "")
    

    The inner SUBSTITUTE replaces all instances of "[" with "" and returns a new string, then the other SUBSTITUTE replaces all instances of "]" with "" and returns the final result.

提交回复
热议问题