如何删除Excel 2010单元格中的某些字符 [英] How to delete Certain Characters in a excel 2010 cell

查看:163
本文介绍了如何删除Excel 2010单元格中的某些字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在列AI中有一个名为

[John Smith]

[John Smith]

仍然希望他们在A但是[]删除...

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

推荐答案

如果 [John Smith] / code>在单元格A1中,然后使用此公式来执行所需操作:

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

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

内部SUBSTITUTE替换所有实例的[与并返回一个新的字符串,然后另一个SUBSTITUTE替换]的所有实例用并返回最终结果。

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.

这篇关于如何删除Excel 2010单元格中的某些字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆