[英]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: 尝试这个:
=VLOOKUP(A1,B:B,1,FALSE)=A1
=VLOOKUP(A1,B:B,1,FALSE)=A1
This is what it should look like when you are done. 这就是您完成后的样子。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.