简体   繁体   English

有条件地格式化其文本部分与特定列中的一系列单元格中的任何值匹配的单元格

[英]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.

相关问题 如果单元格区域中有任何文本,请用文本填充单元格 - Fill in a cell with text if a range of cells has any text Excel - 如果不包含特定文本且非空白,则有条件地格式化列中的单元格 - Excel - Conditionally format cell in column if NOT containing specific text and is NOT BLANK 如果另一个单元格的值为“ x”,则将一系列单元格的格式设置为未锁定 - Format a range of cells as unlocked if another cell has a value of “x” VBA 如何根据该范围内一个单元格的值有条件地格式化一系列单元格? - VBA How do I conditionally format a range of cells based on the value of one cell in that range? 有没有一种方法可以拆分具有部分删除线文本的单元格内容? - Is there a way to split contents of a cell which has part of its text strikenthrough? 如果单元格范围包含文本,匹配到列A,则返回Y / N - IF cell range has text, match to column A, return Y/N 如果 Excel 2010 中单元格范围内的单元格包含特定文本,请将整个单元格文本移动到不同的列中 - If a cell in range of cells in Excel 2010 contains specific text, move whole cell text into a different column 根据列中的文本将单元格值复制并粘贴到特定的单元格 - Copy and paste cell value to specific cells based on text in column 根据单元格值有条件清除一行中单元格范围的内容 - Conditionally clear contents of range of cells in a row based on cell value 根据VBA中其他单元格的值,有条件地格式化单元格的循环范围 - Conditionally formatting a looped range of cells based on value in other cell in VBA
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM