简体   繁体   English

我如何比较两列以查看B单元格中的值是否出现在A列的任何位置?

[英]How can i compare two columns to see if the value in the B cell appears anywhere in column A?

I have 2 columns like this (yep, Porn) 我有2列这样的(是的,色情)

A                           B
menshealthbase.com          XVIDEOS.COM
dailyrx.com                 ASHLEYRNADISON.COM
puzzleovergames.com         PORNHUB.COM
adventuregamesland.com      DOUBLEPIMP.COM

and i'd like to see if the value in cell B1 appears anywhere in column A (the actual column is over 20,000 values). 并且我想查看单元格B1中的值是否出现在A列的任何位置(实际列超过20,000个值)。 If yes, then I'd like it to print either a 'yes' or 'no' in column C 如果是,那么我希望它在C列中打印“是”或“否”

Any suggestions? 有什么建议么? my experience with vlookup is limited 我对vlookup的经验有限

Try this in column C: 在C列中尝试以下操作:

=IF(ISNUMBER(MATCH(B1, A:A, 0)), "Found", "")

This will search column A for the value in B1 and return "Found" if it's found or leave it blank otherwise. 这将在A列中搜索B1的值,如果找到,则返回“ Found”,否则将其留空。

Step 1 Uppercase Column A 步骤1大写A列

步骤1大写A列

Step 2 MATCH them 步骤2配对

步骤2配对

暂无
暂无

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

相关问题 Excel-如何比较2列中的单元格,如果B列匹配,则使用B列中匹配单元格旁边的C列中的值? - Excel - How to Compare Cells from 2 Columns then if Column B Matches, Use the Value in Column C next to the Matching Cell in Column B? 如何比较两列,从 VBA 中的第 1 列中的值确定第 2 列的值,而不在第 2 列中添加公式 - How can I compare two columns, determine the value of column 2 from the value in column 1, in VBA, without adding a formula into column 2 Excel“认为”单元格具有值,但是我在任何地方都看不到值 - Excel “thinks” a cell has a value but I cannot see value anywhere 比较两个Excel列A&B,并在一个单元格中添加A中不存在的条目的第三列C的数据 - Compare two Excel columns A&B and add in one cell the data of a third column C of the entries not present in A 如何比较单元格中的数据以查看是否为错误,文本为“ 0”或任何其他值? - How can I compare the data in a cell to see if it is an error, “0” as text, or any other value? 如果在列B的任何位置找到来自列A的值,请突出显示列B中的单元格 - Highlight Cell in Column B if Value from Column A is Found Anywhere in Column B 如何比较两列并在单个单元格中返回匹配值? - How Can I Compare Two Columns and Return the Matched Values in a Single Cell? 两列的映射,例如如果 A 列中的一个单元格自动从 B 列中删除值,则将被删除 - Mapping of two columns such as if one cell from column A get deleted value from column B automatically will be deleted VBA - 在 A 列中查找重复项,然后检查 B 列中是否有单元格值 - VBA - Find Duplicates in Column A and then check to see if there a cell value in Column B 如何将两列与数据合并,如果一列的单元格为空,相邻的单元格已满? - How can I merge two columns with data where if one column's cell is empty the adjacent cell is full?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM