How to delete Certain Characters in a excel 2010 cell

后端 未结 3 1900
北海茫月
北海茫月 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:05

    Replace [ with nothing, then ] with nothing.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2021-02-07 11:22

    Another option: =MID(A1,2,LEN(A1)-2)

    Or this (for fun): =RIGHT(LEFT(A1,LEN(A1)-1),LEN(LEFT(A1,LEN(A1)-1))-1)

    0 讨论(0)
提交回复
热议问题