How to delete Certain Characters in a excel 2010 c

2020-06-03 00:04发布

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条回答
Root(大扎)
2楼-- · 2020-06-03 00:38

Replace [ with nothing, then ] with nothing.

查看更多
冷血范
3楼-- · 2020-06-03 00:46

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.

查看更多
SAY GOODBYE
4楼-- · 2020-06-03 01:02

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)

查看更多
登录 后发表回答