# matching numbers

#### mypig7

##### Active Member
I have 2 columns of numbers.

What formula can I use to tell me "yes" if a number that appears in the 1st column (column A) also appears somewhere in the second column (column B).

If it doesn't appear, I want "no" to appear.
The numbers aren't necessarily on the same line if they are in both tables.

Thanks

### Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Try

=IF(COUNTIF(\$B:\$B,\$A1)>=1,"Yes","No")

Von Pookie said:
Try

=IF(COUNTIF(\$B:\$B,\$A1)>=1,"Yes","No")

=ISNUMBER(MATCH(\$A1,\$B:\$B,0))

is faster.

many thanks

Replies
5
Views
260
Replies
29
Views
966
Replies
2
Views
95
Replies
12
Views
364
Replies
12
Views
335

1,211,963
Messages
6,105,108
Members
447,947
Latest member
OX_2005

### 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.

### Which adblocker are you using?

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

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