简体   繁体   English

检查一列以查看其是否包含另一列中的值,并突出显示重复项

[英]Check one column to see if it contains a value from another column and highlight duplicates

I need a formula to highlight all rows in a column if the value exists in another column. 如果值存在于另一列中,则我需要一个公式来突出显示该列中的所有行。 So if I have Column A and it has 100 rows 20 of them just have the word cat, 20 dog, 20 bird and 40 lizard. 因此,如果我有A列并且它有100行,那么其中20列就是猫,20狗,20鸟和40蜥蜴。 and in Column BI only have 1 row that says cat and one row that says bird I need all the cat and bird rows in column A highlighted. 而在BI栏中,只有1行表示猫,另一行表示鸟,我需要在A列中突出显示所有的猫和鸟行。 I have been looking for something like this for a while now and can not find it anywhere. 我一直在寻找类似的东西已经有一段时间了,在任何地方都找不到。

Try this: 尝试这个:

  1. Select all cells to be formatted 选择所有要格式化的单元格
  2. Create new conditional formatting rule 创建新的条件格式设置规则
  3. Select the last option Use a formula to determine which cells to format 选择最后一个选项使用公式来确定要格式化的单元格
  4. In the formula box enter this: =VLOOKUP(A1,B:B,1,FALSE)=A1 在公式框中输入以下内容: =VLOOKUP(A1,B:B,1,FALSE)=A1
  5. Click Format button and choose the color you want 单击格式按钮,然后选择所需的颜色
  6. Click OK 点击确定

This is what it should look like when you are done. 这就是您完成后的样子。

在此处输入图片说明

暂无
暂无

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

相关问题 检查列中的重复项并突出显示它 - Check the Duplicates in column and highlight it 如果另一列中的相应行包含特定值,我想使用条件格式突出显示一列中的单元格 - I want to use conditional formatting to highlight a cell in one column if the corresponding line in another column contains a specific value 检查一列中的一个值是否在另一列中 - Check if one value in one column is in another column 尝试突出显示一列中值与另一列重复的实例 - Trying to highlight instances in one column where the value is duplicated in another column 如何删除一列中的所有重复项,并保持值最高的行(来自另一列) - How do I remove all duplicates in one column, and keep the row with highest value (from another column) 检查一列的任何值是否包含另一列的任何值 - Check if any values of one column contains any values from another column 删除重复项并根据另一列中的值指望一列 - Remove duplicates and count on one column based on values from another column 删除重复项并根据另一列中的值指望一列 - Remove duplicates and count on one column based on values from another column 我试图找到一个公式,如果它包含位于另一列中的任何单词,可以突出显示一列中的单元格 - I am trying to find a formula that can highlight a cell in one column if it contains any of the words located in another column 检查值是否包含在另一列中,然后根据该值获取值 (Excel) - Check if value contains in another column and then get value based on that (Excel)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM