remove items from a excel column

HI EE

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 ?
LVL 2
MilesLoganAsked:
Who is Participating?
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.

aikimarkCommented:
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)
0
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)
0
aikimarkCommented:
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.
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

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
=IFERROR(INDEX($A$2:$A$1000,SMALL(IF($A$2:$A$1000<>"",IF(ISNA(MATCH($A$2:$A$1000,$B$2:$B$100,0)),ROW($A$2:$A$1000)-ROW($A$2)+1)),ROWS(A$1:A1))),"")

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.
0

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:

=MATCH(A1,$B$1:$B$1000,0)

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.

Thanks
Rob H
0
MilesLoganAuthor Commented:
Thank you both !
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.