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

本秂侑毒 提交于 2019-12-25 04:31:04

问题


I have 2 columns like this (yep, Porn)

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). If yes, then I'd like it to print either a 'yes' or 'no' in column C

Any suggestions? my experience with vlookup is limited


回答1:


Try this in column 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.




回答2:


Step 1 Uppercase Column A

Step 2 MATCH them



来源:https://stackoverflow.com/questions/31272900/how-can-i-compare-two-columns-to-see-if-the-value-in-the-b-cell-appears-anywhere

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!