Match function or other to compare columns

lonelyrobot99

New Member
Joined
Aug 26, 2010
Messages
8
I am trying to compare two columns to find the unique numbers in the 2nd column. For example I might want to compare A1 through A25 to B1 through B25. Is there a match function or other function that will highlight or otherwise show only the unique numbers in the B column as compared to the A column?

Any help would be appreciated.

Thanks.
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
I am trying to compare two columns to find the unique numbers in the 2nd column. For example I might want to compare A1 through A25 to B1 through B25. Is there a match function or other function that will highlight or otherwise show only the unique numbers in the B column as compared to the A column?

Any help would be appreciated.

Thanks.
One way...

Enter this formula in C1 and copy down to C25:

=IF(COUNT(MATCH(B1,A$1:A$25,0)),"","Unique")

Numbers that appear in column B but not in column A will be labled as "Unique".
 
Upvote 0
I am trying to compare two columns to find the unique numbers in the 2nd column. For example I might want to compare A1 through A25 to B1 through B25. Is there a match function or other function that will highlight or otherwise show only the unique numbers in the B column as compared to the A column?

Any help would be appreciated.

Thanks.
If you've got 100,000 or so rows you can do it very fast with VBA, but I guess you don't ...
 
Upvote 0
Thanks T. Valko that helps, I am playing around with the formula and I am trying to figure out if there is a way to compare multiple columns for unique numbers. For example if I wanted to find all the unique numbers in D1 through D25 as compared to both A1 through A25 and B1 through B25. Do you know how to do this?
 
Upvote 0
Thanks T. Valko that helps, I am playing around with the formula and I am trying to figure out if there is a way to compare multiple columns for unique numbers. For example if I wanted to find all the unique numbers in D1 through D25 as compared to both A1 through A25 and B1 through B25. Do you know how to do this?
With a bit of a tweak...

=IF(COUNTIF(A$1:B$25,D1),"","Unique")
 
Upvote 0

Forum statistics

Threads
1,224,507
Messages
6,179,181
Members
452,893
Latest member
denay

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