I am looking for a way to get a function in excel to retrieve the distance form one zip to another. Lets say i have a list of 100,000 possible recruits and I want to sort by nearest. Id have the conference zip code and then 100,000 recruit zip codes. I'm looking to be able to just write a function =ZipCodeDistance(a2,d1) and then sort by that column. I have found a program for $65 that claims to do this, but I was wondering if there was a free way.
                +3 
                A: 
                
                
              If you have the latitude and longitude for each zip code, you can use trigonometry to calculate the distance as the crow flies.
There is a free database here that you can download.
To do the calculation, see the info here. And some actual Excel-specific calc examples are here.
                  RedFilter
                   2008-12-12 16:30:13
                
              Nope, just know the zip code
                  The Digital Ninja
                   2008-12-12 16:30:34
                I updated the answer with a data source you can use.
                  RedFilter
                   2008-12-12 16:31:40
                Added more info on how to do the calculation.
                  RedFilter
                   2008-12-12 16:33:02
                
                +1 
                A: 
                
                
              
            You can get a list of the post office address for each zip code and geocode each address into a lat, long pair. Do the same for the recruit's address and then use the formula for great circle distance.
Here's a link to a U.S. zip code database:
And another to how to calculate distance between two points on the globe:
                  Steve Moyer
                   2008-12-12 16:36:03