Remove selected numbers from a query

Anthony G.

Active Member
Joined
Mar 24, 2002
Messages
465
Hello to All...

The source table consists of random numbers: 190, 45, 78 etc...I'd like to filter qite a few of them but I only know how to carry that out for one number - <>78. How would I do that for, let's say, 10 numbers?

Thanks,

Anthony
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Create a temporary table with the numbers you want to filter on.

Then create a query containing your main table and the new table.

Create a relationship between the numbers in the main table and the new table.

Make it a one-to-many from the new table to the main table.

I.E. set it to show all values from new table and only those that match in main table
 
Upvote 0
You could try going to the SQL and changing the '=' in th JOIN expresion to <>.

Access Query Builde won't like this but it should work.

There are other alternatives involving using subqueries as criteria.
 
Upvote 0
When in Query design view go View>SQL View.

The other way also involves SQL.
 
Upvote 0

Forum statistics

Threads
1,221,773
Messages
6,161,855
Members
451,724
Latest member
sledparty

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