Compare two text columns

ms02kk1

New Member
Joined
Apr 13, 2012
Messages
5
I want to compare two columns in excel that have text in each cell. If in column 2 there is the same text with the column 1 then next to column 1 I need to be post next to the cell that there is the same text the word YES and if not then next to column 1 to be post NO. Column 1 cells is from A1:A16, Column 2 is from C1:C4 and the column with YES and NO is from B1:B14. See example below:



Column 1 Column 2

a NO c
b NO h
c YES l
d NO n
e NO
f NO
g NO
h YES
i NO
j NO
k NO
l YES
m NO
n YES
 
hi - welcome to the board.

=if(isnumber(match(a1,$b$1:$b$10,0)),"Yes","No")

...adjust ranges to suit.
 
Upvote 0

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