跳到主要内容

如何在Excel中对多个单词应用条件格式搜索?

doc高亮包含任何单词1

对于我们而言,根据特定值突出显示行可能很容易,本文中,我将讨论如何突出显示A列中的单元格,具体取决于是否在D列中找到它们,这意味着该单元格内容中是否包含任何文本。具体列表,然后突出显示如左图所示的屏幕截图。

突出显示单元格的条件格式包含多个值之一

筛选器单元格包含特定值并立即突出显示它们


突出显示单元格的条件格式包含多个值之一

事实上,在 条件格式 可以帮助您解决这项工作,请执行以下步骤:

1. 首先,请为特定单词列表创建一个范围名称,选择单元格文本并输入范围名称 我的清单 (您可以根据需要重命名)到 名字 框,然后按 输入 键,请参见屏幕截图:

doc高亮包含任何单词2

2。 然后选择要突出显示的单元格,然后单击 主页 > 条件格式 > 新规则 新格式规则 对话框中,完成以下操作:

(1.)点击 使用公式来确定要格式化的单元格 在下面 选择规则类型 列表框;

(2.)然后输入以下公式: = SUM(COUNTIF(A2,“ *”&Mylist&“ *”)) (A2 是要突出显示范围的第一个单元格, 我的清单 是您在步骤1)中创建的范围名称 格式化此公式为真的值 文本框;

(3.)然后单击 格式 按钮。

doc高亮包含任何单词3

3。 去的 单元格格式 对话框,然后选择一种颜色以突出显示 标签,请参见屏幕截图:

doc高亮包含任何单词4

4. 然后点击 OK > OK 要关闭对话框,包含任何特定列表单元格值的所有单元格会立即突出显示,请参见屏幕截图:

doc高亮包含任何单词5


筛选器单元格包含特定值并立即突出显示它们

如果你有 Kutools for Excel,其 超级筛选 实用程序,您可以快速筛选包含指定文本值的单元格,然后立即突出显示它们。

Kutools for Excel : 带有300多个便捷的Excel加载项,可以在30天内免费试用. 

安装后 Kutools for Excel,请执行以下操作:

1。 点击 Kutools 加 > 超级筛选,请参见屏幕截图:

2。 在 超级筛选 窗格,请执行以下操作:

  • (1.)检查 指定 选项,然后单击 doc高亮包含任何单词11 按钮选择要过滤的数据范围;
  • (2.)根据需要选择过滤条件之间的关系;
  • (3.)然后在条件列表框中设置条件。

doc高亮包含任何单词8

3。 设置条件后,单击 筛选器 过滤单元格包含所需的特定值。 然后为下面的选中单元格选择一种填充颜色 主页 标签,请参见屏幕截图:

doc高亮包含任何单词9

4。 并且所有包含特定值的单元格都突出显示,现在,您可以通过以下方式取消过滤器: 清除 按钮,请参见屏幕截图:

doc高亮包含任何单词10

单击立即下载并免费试用 Kutools for Excel !


演示:过滤器单元格包含特定值并立即突出显示它们

Kutools for Excel:具有300多个方便的Excel加载项,可以在30天内免费试用,没有任何限制。 立即下载并免费试用!

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 Office 带来选项卡式界面,让您的工作更加轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高50%,并减少数百次鼠标单击!
Comments (34)
Rated 4.5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
=SUMPRODUCT(--ISNUMBER(SEARCH(IF(Mylist<>"",Mylist),A2)))>0
How to Format whole row in this formula
This comment was minimized by the moderator on the site
THANK YOU VERY MUCH, YOU SAVED A LOT OF TIME OF ME.
This comment was minimized by the moderator on the site
Hello, Akash,
Glad it can help you!
Have a good new year! 😄
This comment was minimized by the moderator on the site
Above formula not working, coz , My condition (i.e if my list is blank). And if my list is remaining blank excel formatting all cells. Help me.
This comment was minimized by the moderator on the site
Hello, Akash,
If your data list contains blank cell, please apply the below formula into the Conditional Formatting:
=SUMPRODUCT(--ISNUMBER(SEARCH(IF(Mylist<>"",Mylist),A2)))>0
Please have a try, hope it can help you!
This comment was minimized by the moderator on the site
I want to format whole Row. In this formula how to format whole Row.
This comment was minimized by the moderator on the site
I want to format only the text contained in my list. I do not want to format if my list (one or two cell of my list) is blank
This comment was minimized by the moderator on the site
Hello, AKASH
To solve your problem, the following article may help you:
https://www.extendoffice.com/documents/excel/2499-excel-conditional-formatting-ignore-blank-zero.html

Please have a try, thank you!
This comment was minimized by the moderator on the site
Greetings!

I am trying to use a range of words in a row, from another sheet.
My formula looks like this:

=Info!=SUM(COUNTIF($A1,"*"&LGreen&"*"))

"Info" is the sheet, "LGreen" is the row of words i want to use, and the words start at A1 in "Info" sheet.

But i still get "There is a problem with this formula.......
Does it matter if the words are in a row/column? And how do i make that change in the formula?
I would like to use the whole row (continuous), so that i can put in more words later on.
If not, i can select specific range/cells, as long as i understand whats wrong x)

Thanks in advance!
This comment was minimized by the moderator on the site
Hello, Sykopaten

In fact, you just need follow the method in the article, in the first step, you should create a range name for your data list in aother sheet, which can be applied to the entire workbook. And then use the formula: =SUM(COUNTIF(A2,"*"&Mylist&"*")) into the conditional formatting of the worksheet you want to highlihgt the cells.

Or you can insert your excel file as attachment here for us to check.

Thank you!
This comment was minimized by the moderator on the site
Thank you so much to the reply! This surely helped a lot!
Have a great new year! :D
This comment was minimized by the moderator on the site
Hello, Sykopaten,
Glad it can help you!
Happy new year!😀
This comment was minimized by the moderator on the site
Can you provide instructions for how to reverse this formula. In the same example, how would you format cells that did NOT contain a word from your keyword list?
Rated 4.5 out of 5
This comment was minimized by the moderator on the site
Hello, Jeff,
To solve your problem, please apply the below formula:
=IF(SUM(COUNTIF(A2,"*"&Mylist&"*"))=1, 0,1)

Please have a try, hope it can help you!
This comment was minimized by the moderator on the site
Consegui, a formula é funcional e adorei!! obrigado!
This comment was minimized by the moderator on the site
Hello,

is the formula sensitive to space?
This comment was minimized by the moderator on the site
I have a List that contains "Numbers" and when I run this formula it only work on "Word/Text". What shall be my approach for numbers? For example, I have two rego ( registration) number for management team eg 1234 and 6789, so my data in A column will contain a lot of different vehicle number, i want to hightlight GREEN only these two regos.
This comment was minimized by the moderator on the site
This is for the "OR" function. How do I go abouts this with the "AND"?

As in I need to highlight ONLY the cells that have all of the list and not just either of the list.
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations