突出显示包含 Excel 中字符串列表中的文本的单元格 [英] Highlight cells containing text from a list of strings in Excel
本文介绍了突出显示包含 Excel 中字符串列表中的文本的单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从单元格列表中的列表中搜索任何字符串并突出显示它们.例子:
I want to search for any string from a list within a list of cells and highlight them. Example:
在这种情况下,单元格 A1
、A3
和 A6
应突出显示.这就像按 ctrl+f,插入汽车"并突出显示结果单元格,对每个关键字重复.我怎样才能实现自动化?
In this case cells A1
, A3
and A6
should be highlighted. It's like to press ctrl+f, insert "car" and highlight result cells, repeated for every keyword. How I can automate this?
推荐答案
可以使用条件格式.
选择 A1:A6,然后在条件格式中(在主页"选项卡上)使用使用公式确定要格式化的单元格"选项和此公式
Select A1:A6 and then in conditional formatting (on Home tab) use the "use a formula to determine which cells to format" option with this formula
=COUNT(SEARCH(B$1:B$3,A1))
按要求格式化>确定
这篇关于突出显示包含 Excel 中字符串列表中的文本的单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文