简体   繁体   English

如何查找和替换完全匹配的文本但不匹配整个单元格内容

[英]How to find and replace exact match text but not match entire cell contents

So basically just find and replace but some of my data is so messy 所以基本上只是查找和替换,但是我的一些数据太乱了

For example I wanna find the word "cat" and replace it with "mr.cat" 例如,我想找到单词“ cat”并将其替换为“ mr.cat”

but there are some word like "redcat" that will show up in my search too 但也有类似“ redcat”的词也会出现在我的搜索中

img

and If I use the match entire cell contents some word like "the cat" will not show 如果我使用匹配的整个单元格内容,则不会显示“猫”之类的字词

img2

Add another column and include the following formula 添加另一列并包括以下公式

 =IF(EXACT(A5,"cat"),"mr.cat",SUBSTITUTE(A5," cat"," mr.cat")) 

例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用INDEX,MATCH,SEARCH返回整个单元格内容的完全匹配? - How to use INDEX, MATCH, SEARCH to return an exact match for the entire cell contents? 在Excel VBA中找到完全匹配的单元格的位置 - find location of a cell with an exact match in excel vba 仅查找替换完全匹配的字符串 - Find Replace Exact String Match Only 在一列中查找完全匹配并返回文本 - Find Exact Match in one Column and return text 在Excel数组中查找文本的完全匹配项(从另一张表中查找),并在同一行中显示特定的单元格值 - Find exact match of text in excel array (from another sheet) and display a specific cell value from the same row 如何匹配精确的字符串值或最接近的匹配excel列单元格 - How to match exact string value or closest match with excel column cell 在另一张纸上找到匹配项,然后替换该行中的单元格 - Find a match on a different sheet then replace a cell in that row 使用 C# 在 WorkSheet 上使用 Cells.Replace() 时如何匹配整个单元格内容 - How to match entire cell content when using Cells.Replace() on a WorkSheet using C# Excel:查找单元格和整个值列之间的任何部分匹配 - Excel: Find any partial match between a cell and an entire column of values 查找是否有 2 个单元格匹配并替换其中 1 个单元格中的文本 - find if 2 cells match and replace the text from 1 of them
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM