compare data in two columns.

ady

New Member
Joined
Apr 22, 2002
Messages
2
Hi,

I'm sure it's easy but, I have two columns of data a1:a300 and b1:b300 and each contain part codes like 01ABC02.
Some codes are repeated in each column and
I want to find (and display the codes) the codes in column a that match the codes in column b. I've tried Or(Exact) but I think that only works with text only.

Any help is much appreciated.

Thanks
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hi,

In C1 type the following:

=COUNTIF($A$1:$A$300,B1)

and copy down your list. Any non-zero results in column C indicate that there is a match of the cell in column B in column A.

You can expand this to report the actual value, but you can easily AutoFilter the resulting list as well.

HTH,
Jay
 
Upvote 0
man that was so simple, my brain just doesn't work at night.

Thanks for the speedy reply.

:))
 
Upvote 0

Forum statistics

Threads
1,215,086
Messages
6,123,040
Members
449,092
Latest member
ikke

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