[英]Conditionally format a cell which has part of its text match any value from a range of cells in a specific column
In excel 2010 I have 2 columns: 在excel 2010中,我有2列:
Column A has a list of urls, like: 列A具有网址列表,例如:
http://domain.com/12345 http://domain.com/12345
http://domain.com/23445 http://domain.com/23445
http://domain.com/15321 http://domain.com/15321
http://domain.com/97754 http://domain.com/97754
Column B has a list of numbers like: B列具有以下数字列表:
86860 86860
12345 12345
74663 74663
23232 23232
34556 34556
23333 23333
How do I highlight cells in column A which url contains the number that matches any number in in column B? 如何突出显示A列中包含与B列中的任何数字相匹配的数字的单元格?
In other words I need each cell in column A to be checked against every cell in column B and to highlight all the cases where the url in cell from column A contains the number found in any of the cells in column B. 换句话说,我需要对照B列中的每个单元格检查A列中的每个单元格,并突出显示所有情况,其中A列中的单元格中的url包含B列中任何单元格中找到的数字。
So only the first cell in column A in the example above will be highlighted because it contains the number 12345 from column B. 因此,仅上例中列A中的第一个单元格将突出显示,因为它包含列B中的数字12345。
Thanks 谢谢
Select entire column A
and apply Conditional formatting with this formula: 选择整个列A
并使用以下公式应用条件格式:
=OR(ISNUMBER(FIND($B$1:$B$6,A1)))
where $B$1:$B$6
range of all numbers in column B
其中$B$1:$B$6
在列中的所有的数字范围B
Result: 结果:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.