Note: The other languages of the website are Google-translated. Back to English
登陆  \/ 
x
or
x
点此注册  \/ 
x

or

如何在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 Plus > 超级滤镜,请参见屏幕截图:

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

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

doc高亮包含任何单词8

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

doc高亮包含任何单词9

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

doc高亮包含任何单词10

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


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

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

最佳办公效率工具

Kutools for Excel解决了您的大多数问题,并使您的生产率提高了80%

  • 重用: 快速插入 复杂的公式,图表 以及您以前使用过的任何东西; 加密单元 带密码 创建邮件列表 并发送电子邮件...
  • 超级公式栏 (轻松编辑多行文本和公式); 阅读版式 (轻松读取和编辑大量单元格); 粘贴到过滤范围...
  • 合并单元格/行/列 不会丢失数据; 拆分单元格内容; 合并重复的行/列...防止细胞重复; 比较范围...
  • 选择重复或唯一 行; 选择空白行 (所有单元格都是空的); 超级查找和模糊查找 在许多工作簿中; 随机选择...
  • 确切的副本 多个单元格,无需更改公式参考; 自动创建参考 到多张纸; 插入项目符号,复选框等...
  • 提取文字,添加文本,按位置删除, 删除空间; 创建和打印分页小计; 在单元格内容和注释之间转换...
  • 超级滤镜 (将过滤方案保存并应用于其他工作表); 高级排序 按月/周/日,频率及更多; 特殊过滤器 用粗体,斜体...
  • 结合工作簿和工作表; 根据关键列合并表; 将数据分割成多个工作表; 批量转换xls,xlsx和PDF...
  • 超过300种强大功能。 支持Office / Excel 2007-2019和365。支持所有语言。 在您的企业或组织中轻松部署。 完整功能30天免费试用。 60天退款保证。
kte选项卡201905

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

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高50%,并减少数百次鼠标单击!
officetab底部
Say something here...
symbols left.
You are guest
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    aparnag228@gmail.com · 1 years ago
    Hello,

    is the formula sensitive to space?
  • To post as a guest, your comment is unpublished.
    pri · 1 years ago
    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.
  • To post as a guest, your comment is unpublished.
    Jesse · 1 years ago
    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.
  • To post as a guest, your comment is unpublished.
    Neel · 2 years ago
    In the countif function, a comma did NOT work for me. I had to use a semicolon instead.
    • To post as a guest, your comment is unpublished.
      skyyang · 2 years ago
      Hello, Neel,
      Maybe you have a different language version of Excel instead of English version.
      Thank you for your comment.
  • To post as a guest, your comment is unpublished.
    umairaziz · 2 years ago
    The problem with above KUtools function is 01. It doesn't give the option to highlight the entire row. 02. It searches based on exact match of the cell, and partial match option is not there...... Anyone got a solution, please share as I need this way... thank you!
    • To post as a guest, your comment is unpublished.
      skyyang · 2 years ago
      Hello, Umair,
      The Kutools function in this article can solve your problems, the first one, if you need to highlight the entire rows, please select all the filtered whole rows, and then apply the fill color for them; the second once, you should choose the criteria Contains from the criteria drop down list to filter the rows based on the partial text.
      Please try it again, hope it can help you!
  • To post as a guest, your comment is unpublished.
    HCAZ · 2 years ago
    First great formula my only problem is that I have 3 list and although I changed the list names and used different colors - when I use a drop down all the names have the same colors.
  • To post as a guest, your comment is unpublished.
    Antony · 2 years ago
    this formula doesnot work for me
    • To post as a guest, your comment is unpublished.
      skyyang · 2 years ago
      Hello,Antony,
      Could you explain your problem more clearly, or you can insert a screenshot here. Thank you!
      • To post as a guest, your comment is unpublished.
        Gwen · 2 years ago
        I actually have the same problem, the formula highlights ALL cells in the range, why would that be?
        • To post as a guest, your comment is unpublished.
          skyyang · 2 years ago
          Hi, Gwen,
          The formula in this article works well in my worksheet, could you give your problem more detailed? Or you can insert a screenshot here for your problem.
          Thank you!
  • To post as a guest, your comment is unpublished.
    Rebecca · 2 years ago
    I made my named range table on another tab.

    I highlighted the row before I started making my rule. =$B$7:$X$7

    =SUM(COUNTIF(E7,"*"&CANCELLED&"*"))

    I double checked the 'applies to" and it correctly includes the whole row of the table.

    The rule is working - but only colors the first cell in the row, not the entire row.


    Any idea what I'm doing wrong?

    Can the fact the E7 cell a dynamic drop-down based on a drop-down in D7 be the cause?
    • To post as a guest, your comment is unpublished.
      skyyang · 2 years ago
      Hi, Rebecca,
      If you want to highlight the whole row in your selected range, please use this formula:

      =SUM(COUNTIF($A2,"*"&Mylist&"*"))
      The cell reference should be converted to column absolute ($A2).

      Please try it, hope it can help you!
  • To post as a guest, your comment is unpublished.
    Shirtman · 3 years ago
    Hi, I am using this formula to find IP addresses in a column (from a list).

    It misses out some cells which it should highlight, and vice versa (highlights some which shouldn't be highlighted). The cells do seem to have some similarity to the IP addresses which I am looking for.

    Is it something to do with the fact that there are 4 decimal points? (E.g. if I am looking for 10.54.31.7, it might highlight 10.54.31.5 as well).

    Any ideas as to how I can fix this would be greatly appreciated - it's so close to working!
    • To post as a guest, your comment is unpublished.
      Gwen · 2 years ago
      I have the same problem! Did you ever fix it? I wonder why they replied others but never you...
  • To post as a guest, your comment is unpublished.
    su · 3 years ago
    im unable to do use that formula, can you help in what i might be missing?
    • To post as a guest, your comment is unpublished.
      skyyang · 3 years ago
      Hello, su,
      Make sure the range name in the formula is your own, or you can insert your problem screenshot here.
      Thank you!
  • To post as a guest, your comment is unpublished.
    Rob · 4 years ago
    That's useful technique. Would you mind walking through how it works? Thanks