突出显示Excel中的字符串列表中包含文本的单元格 [英] Highlight cells containing text from a list of strings in Excel

查看:358
本文介绍了突出显示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,插入 car并突出显示结果单元格一样(对每个关键字重复)。我该如何自动化?

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屋!

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