条件格式化单元格,如果它们的值等于另一列的ANY值 [英] Conditional formatting cells if their value equals ANY value of another column

查看:133
本文介绍了条件格式化单元格,如果它们的值等于另一列的ANY值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 A B 列中的数据。列的数据大部分是 A 的数据重复,但并不总是。例如:

I have data in the A and B column. B column's data is mostly duplicates of A's data, but not always. For example:

A
Budapest
Prague
Paris
Bukarest
Moscow
Rome
New York

B
Budapest
Prague
Los Angeles
Bukarest

如果<$ c中的值,我需要搜索 A 列$ c> B 存在于那里。如果一行匹配,我需要将 A 中的行的背景颜色更改为红色或某物。

I need to search the A column if the values in B exists there. If a row matches, I need to change the row's background colour in A to red or something.

什么功能我需要使用,如何?

What function do I need to use, and how?

对不起,我是Excel中的新手。

Sorry, I'm a newbie in Excel.

推荐答案

这是公式

根据公式在条件格式中创建一个新的规则。使用以下公式并将其应用于 $ A:$ A

create a new rule in conditional formating based on a formula. Use the following formula and apply it to $A:$A

=NOT(ISERROR(MATCH(A1,$B$1:$B$1000,0)))






这里是如果遇到问题,下载示例表

更新

这里是 pnuts 的建议也是完美​​的:

UPDATE
here is @pnuts's suggestion which works perfect as well:

=MATCH(A1,B:B,0)>0


这篇关于条件格式化单元格,如果它们的值等于另一列的ANY值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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