Clean Up Inventory Workbook - Compare 2 Columns & Filter Out Data

fischXcell2

New Member
Joined
May 24, 2024
Messages
4
Office Version
  1. 2021
Platform
  1. Windows
  2. MacOS
Hello Everyone.
Although I have been using Excel for years and years, I am only just learning to use formulas, functions and VBA.

There are two columns of inventory numbers. Column A has items that need to be destroyed. Column B has items that have been destroyed.

I want to clean up Column A by removing all the inventory numbers that are in Column B. In other words, if the inventory number exists in Column B, it must be removed from Column A.

Is there a function or combination of functions that will accomplish this? It would be awesome if it could be a dynamic function.
I tried using Filter and Filter with If, but I am just not skilled enough to figure it out.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Something like this?
Excel Formula:
=FILTER(A2:A100, NOT(ISNUMBER(MATCH(A2:100,B2:100,0))), "")
 
Upvote 0
@Vogateer
You're missing a few letters for the cell reference.
Rich (BB code):
=FILTER(A2:A100, NOT(ISNUMBER(MATCH(A2:A100,B2:B100,0))), "")

You can simplify with ISERROR().
Excel Formula:
=FILTER(A2:A100, ISERROR(MATCH(A2:A100,B2:B100,0)))
 
Upvote 0
Solution
@Vogateer
You're missing a few letters for the cell reference.
Rich (BB code):
=FILTER(A2:A100, NOT(ISNUMBER(MATCH(A2:A100,B2:B100,0))), "")

You can simplify with ISERROR().
Excel Formula:
=FILTER(A2:A100, ISERROR(MATCH(A2:A100,B2:B100,0)))[/CODE
[/QUOTE]
Yes, good catch.
 
Upvote 0
You're welcome. @Vogateer did most of the heavy lifting.
So, can you guys help at all with the zeros? I attached a screenshot. It's not really all that important, but I wouldn't mind having a better understanding of the formula and why it's returning the zeros.
 

Attachments

  • Screen Shot 2024-05-25 at 23.31.56.png
    Screen Shot 2024-05-25 at 23.31.56.png
    250.6 KB · Views: 2
Upvote 0
So, can you guys help at all with the zeros? I attached a screenshot. It's not really all that important, but I wouldn't mind having a better understanding of the formula and why it's returning the zeros.
Never mind!! I fixed it....I changed zu verschotten to a Named Range and the zeros disappeared. Here's the formula that I used:

=SORT(FILTER(zu_verschrotten,ISERROR(MATCH(zu_verschrotten,O3:O99,0)),""),1,1)
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,239
Members
452,621
Latest member
Laura_PinksBTHFT

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