在 Excel 中查找和替换特殊字符 * 和 ?

来源:互联网 发布:手机淘宝体检中心 编辑:程序博客网 时间:2024/05/18 02:18

上班的时候,旁边一个 MM 问我,怎么把 Excel 文件里所有的 * 号删除?我问她,直接查找 * ,用空字符串替换不行吗?她说不行,这样会把所有的内容都删除的。哦,* 和 ?在 Excel 里面也是通配符。我接着想到了[*],但这是 Access 的专利,在 Excel 里行不通。不得已打开 Excel 帮助文件一查,原来 Excel 里的转义符是波浪号(~)。

下面是 Excel 帮助文件的原话:

You can find asterisks, question marks, and tilde characters (~) in worksheet data by preceding them with a tilde character in the Find what box. For example, to find data that contains "?", you would type ~? as your search criteria.

查找 *,?和 ~ 三个特殊字符,在它们前面加上波浪号(~) 。

原创粉丝点击