compare two colums; if item in one is in the other return true

inosent

Board Regular
Joined
Mar 19, 2007
Messages
131
i have 2 columns of data

abc lmn
def opw
ghi rst
xyz abc


in a third column i want to see if an item in col 1 is in col 2, and if it is, say TRUE


for example

abc lmn TRUE
def opw FALSE
ghi rst FALSE
xyz abc FALSE



what is the best way to go about this?
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Hi,

Try with:
Excel Workbook
ABC
1abclmnTRUE
2defopwFALSE
3ghirstFALSE
4xyzabcFALSE
...

Enter formula in C1 and copy down:
Cell Formulas
RangeFormula
C1=IF(IFERROR(MATCH(A1,$B$1:$B$4,0),FALSE),TRUE)


Hope this helps,

Regards.
 
Upvote 0

Forum statistics

Threads
1,224,568
Messages
6,179,595
Members
452,927
Latest member
whitfieldcraig

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top