Return Results That Do Not Match Filter

Hastings

New Member
Joined
Feb 14, 2024
Messages
10
Office Version
  1. 365
Platform
  1. Windows
I am usining the script below to filter out data from the Data Tab that match my items in the Criteria Tab and return them in the Dest Tab.
How would I change this script to return items that dont match my criteria?

1719403899023.png
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
I wouldn't use that script as starting point as it's pretty specific to its original purpose. (also, you posted it as a picture for some reason, which means anyone wanting to use it would have to type it out from scratch!)
I'd use an advanced filter instead with a two cell criteria range - blank first cell and under that a formula like =COUNTIF(Criteria!$A:$A,Data!N2)=0
 
Upvote 0
You also have Excel 365, so you could probably use the newer FILTER function, but you would need to provide some more details, what range in both sheets?
 
Upvote 0
You also have Excel 365, so you could probably use the newer FILTER function, but you would need to provide some more details, what range in both sheets?
If I do the advanced filter I can return everything but sue.jones (see filter list at the bottom) but if I add more names to the list to omitt it doesnt work.

SourceFYBillMonthActivityCodeCodeDescriptionServiceTypeBeginDateEndDateUnitsRateChargeAccountNumberAgencyNameDescription
VIP
2024​
12​
CC10Client Computing - Tier 1 ($550 max HW)Rated
45261​
45291​
1​
60​
60​
HSMSAA00Accountingbob.smith@gmail.com Dell OptiPlex 5070 SFF Desktop 144W9Z2 Warren
VIP
2024​
12​
CC10Client Computing - Tier 1 ($550 max HW)Rated
45261​
45291​
1​
60​
60​
HZZXAP00SalesDell OptiPlex 5070 SFF Desktop 144W9Z2 sue.jones@gmail.com
VIP
2024​
12​
CC10Client Computing - Tier 1 ($550 max HW)Rated
45261​
45291​
1​
20​
60​
HSSXBA00PurchasingDell OptiPlex 5070 SFF Desktop bill.black@gmail.com144W9Z2
VIP
2024​
12​
CC10Client Computing - Tier 1 ($550 max HW)Rated
45261​
45291​
1​
30​
60​
HSMSAA00ITbad.name@gmail.com Dell OptiPlex 5070 SFF Desktop 144W9Z2
VIP
2024​
12​
CC11Client Computing - Tier 1 ($550 max HW)Rated
45261​
45291​
1​
60​
60​
HSMSAA01HRscott.kline Dell OptiPlex 5070 SFF Desktop 144W9Z3
Description
<>*sue.jones*
 
Upvote 0

Forum statistics

Threads
1,221,580
Messages
6,160,625
Members
451,659
Latest member
honggamthienha

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