Sort Postcodes

tedc

Board Regular
Joined
Oct 31, 2003
Messages
194
I have a list of club members with their address and post (zip) codes.
I would like to be able to extract data that lies between 2250 and 2420 zip codes inclusive.
Thanks in advance
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
You would need to look at creating a query to fulfill this if you want to keep a list.

Create New Query Design View > Select Table and then Fields > In Zip Code Criteria (Below tick box) add in this Between "2250" And "2420"

Sample SQL statement shows this, I have used the Northwind Traders sample database

SELECT Customers.CompanyName, Customers.City, Customers.Region, Customers.PostalCode, Customers.Country
FROM Customers
WHERE (((Customers.PostalCode) Between "2250" And "2420") AND ((Customers.Country)="usa"));
 
Upvote 0
If those are actually US zipcodes you should have the field defined as text, that way you will not lose the leading zero. If not US just ignore this message.

Jack
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,849
Members
452,948
Latest member
UsmanAli786

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