compare 2 columns and remove rows that match

ibf

New Member
Joined
Sep 29, 2006
Messages
18
I'm not sure how to do this or if it can be done. I have 2 columns of of numbers. I want to remove numbers in column A if the number is in column B. I've tried to look it up on how to do but can't find anything.
Can some one help??

Column A Column B
3551001 3551002
3551002 3551004
3551003
3551004
3551005

I would like result to look like this:

Column A Column B
3551001 3551002
3551003 3551004
3551005
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
You could put the following formula in Column C (or wherever). Select cells C1 through the lenth of your data in Column A, hit F2, enter this =if(iserror(match($A$1:$A$5, $B1:$B2, 0)), $A$1:$A5, ""), and confirm it with Shift+Control+Enter. That will give you everything in Column A that isn't in Column B.
 
Upvote 0

Forum statistics

Threads
1,213,563
Messages
6,114,329
Members
448,564
Latest member
ED38

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