remove items from a excel column


I have 1000 lines in column A and have 100 lines in column B
I need to remove the 100 items in column B , from column A

Any ideas ?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Will there be multiple columnB values in columnA?

You should be able to use columnB as a criteria range as long as they have the same column header.  Apply an advanced filter (In-place) and then delete the visible columnA cells (with shift-up)
MilesLoganAuthor Commented:
No --- >Will there be multiple columnB values in columnA?

Can you give me a more detail walk through or a link on this ?

You should be able to use columnB as a criteria range as long as they have the same column header.  Apply an advanced filter (In-place) and then delete the visible columnA cells (with shift-up)
Advanced filter should be close to the regular filter menu/ribbon item.  There needs to be the same column header value at the top of colA and colB.  The dialog is simple enough.
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
If you are interested for a formula solution, you may try this.....

Assuming you have row1 as header row, column A has data in the range A2:A1000 and column B has data in the range B2:B100 then in another column say in C2 try this Array Formula which requires confirmation with Ctrl+Shift+Enter instead of Enter alone.

In C2

and copy down until you get blank cells.
The above formula will return values from column A which are not present in column B.

Remember that an Array Formula is confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.  You will know the array is active when you see curly braces { } appear around your formula.  If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.  Press F2 on that cell and try again.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rob HensonFinance AnalystCommented:
Simpler formula than that suggested above.

In column C:


This will give a number result for those in column A that are also in column B and an #NA result for those that are not found. Apply a filter and in the drop down on column C deselect the #NA option. This will leave only the values that are in column B visible. Then two options,

1) select the column A values as a block and press delete key, this will just delete the visible values. When you disable the filter the blank rows will be interspersed so data will need to be sorted to get the values together.

2) select the column A values as a block and delete rows. This will leave the results all together as a block with no blank rows but it will also delete the values in column B because the whole row has been deleted. If you want this option but don't want the column B values deleted then move the column B values to a range below the initial 1000 rows in column A or to another sheet.

Rob H
MilesLoganAuthor Commented:
Thank you both !
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.