Comparing 2 columns of numbers with multiple numbers in first columns

sylviexcel

New Member
Joined
Mar 19, 2009
Messages
48
I am trying to compare 2 columns of numbers, one column (D1) where the numbers may be repeated. I need to check if the numbers are listed in the second column and if they are return a Yes in a seperate column (F1). I have named the second column data2 (this has unique numbers) and tried the formula below which I found on the site but it is returning some inaccurate data, any help greatly appreciated.

=IF(ISNUMBER(MATCH(D1,data2)),"yes")
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
I am trying to compare 2 columns of numbers, one column (D1) where the numbers may be repeated. I need to check if the numbers are listed in the second column and if they are return a Yes in a seperate column (F1). I have named the second column data2 (this has unique numbers) and tried the formula below which I found on the site but it is returning some inaccurate data, any help greatly appreciated.

=IF(ISNUMBER(MATCH(D1,data2)),"yes")

Try...

=IF(ISNUMBER(MATCH(D1,data2,0)),"yes","")
 
Upvote 0

Forum statistics

Threads
1,222,045
Messages
6,163,583
Members
451,846
Latest member
ajk99

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