Advanced filter does not equal to a list of IDs from another workbook.

Harshil Mehta

Board Regular
Joined
May 14, 2020
Messages
85
Office Version
  1. 2013
Platform
  1. Windows
Hi, I have a list of IDs from range A1, A2 and so on (Including Header in range A1) which I want the code to exclude while filtering the data from another workbook.

My criteria range is B25:G26. I tried using <>*ID* by the pasting this in Range B26 (B25 as the header), which ran fine just for a single ID but does not work for the entire list.

What formula should I type in Range B26 so that the code understands that it should exclude the IDs in rangeA1, A2 and so on?

Could anyone please help me solve this issue?
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hi

Not sure I understood exactly what you need but try this example.

The IDs to exclude are in column A

I used in the Advanced Filter

List Range: $C$1:$C$10
Criteria range: $E$1:$E$2
Copy to: $G$1

In the criteria range I used a calculated field. In E2:

=(SUMPRODUCT(--ISNUMBER(SEARCH($A$2:$A$5,C2)))=0)

In column G I got the ID's in column C that do not contain any of the IDs in column A.


Book1
ABCDEFGH
1IDID_ListExclude_IDsID_List
2AA12AA3False13AB4
3BB13AB4BD24
4CC14BB12AC34
5DDCC16AB34
6BD24
712AC34
8DD
9AB34
101133AA
11
Sheet6
 
Upvote 0
Solution

Forum statistics

Threads
1,223,952
Messages
6,175,594
Members
452,656
Latest member
earth

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