简体   繁体   English

如果单元格值在另一列的列表中,则突出显示一列中的文本单元格

[英]Highlight text cells in one column if cell value is in a list in a different column

I'm trying to highlight certain cells that match to any other cell in a different column. 我正在尝试突出显示与其他列中的其他任何单元格匹配的某些单元格。 For example I have a huge list of names in column A, and in Column PI have a column of names that are not supposed to be contacted. 例如,我在A列中有一个庞大的名称列表,在PI列中有一个不应该联系的名称列。 I want every name in column A that exists in column P to be highlighted. 我希望突出显示P列中存在的A列中的每个名称。

I have tried conditional formatting however it won't accept multiple text entries. 我尝试了条件格式,但是它不接受多个文本条目。 I did have a simple duplicate format set up, however if I have multiple entries in A that are the same they are highlighted as well. 我确实设置了一个简单的重复格式,但是如果我在A中有多个相同的条目,它们也会被突出显示。 It is easy enough with numbers however as it is text I have found it much more difficult. 用数字很容易,但是因为它是文本,所以我发现它要困难得多。

Can anyone help with a formula or such that could help me solve this? 任何人都可以提供有助于解决此问题的公式或方法吗?

Please select ColumnA, HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true: : 请选择ColumnA,HOME>样式-条件格式设置,新规则..., 使用公式来确定要格式化的单元格在此公式为true的情况下设置值的 格式

=ISNUMBER(MATCH($A1,$P:$P,0))

Format... , select your choice of formatting, OK, OK: 格式... ,选择所需的格式,然后单击确定:

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM