Vlookup

goodmachine

Board Regular
Joined
Oct 7, 2009
Messages
70
In column A, I have a set of codes that I would like to validate are in column B. I need a formula that will tell me what codes in column A are in column B. Second, what are the outlier codes in column B that are not in column A. Column A is the "source of truth" for the data. There may be some rogue values in column B, so I want to be able to identify those as well.

I appreciate the help.

Thanks.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
What codes in A that ARE in B
=ISNUMBER(MATCH(A1,B:B,0))
Filled down to end of column A
TRUE means A is in B

What codes in B that ARE NOT in A
=ISNA(MATCH(B1,A:A,0))
Filled down to end of column B.
TRUE means B is NOT in A


Hope that helps.
 
Upvote 0

Forum statistics

Threads
1,215,043
Messages
6,122,812
Members
449,095
Latest member
m_smith_solihull

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