View Single Post
  #2   Report Post  
Squid
 
Posts: n/a
Default

http://www.cpearson.com/excel/latlong.htm

Forgot about the greatest excel help site on the web. Thanks Chip!

"Squid" wrote:

I need help constructing a formula to determine the distance between 2 zip
codes (actually the demical Lat & Lon). The zip code information was
downloaded from http://data.geocomm.com/editorspicks...ensuszips.html

I found the formula on this site: http://www.dbazine.com/weeg9.shtml

Column D: Decimal Longitude
Column E: Decmimal Latitude
Column F: DLON
Column G: DLAT
Column H: A
Column I: C
Column J: D


My excel equivlent formulas a
DLON = =ABS(D3-D2)
DLAT = =ABS(E3-E2)
A = SIN(G2/2)^2+COS(E2)*COS(E3)*SIN(F2/2)^2
C = 2*ASIN(MIN(1,SQRT(H2)))
D = 0.017453293*I2

But result is not correct. Anybody know what I did wrong?

TIA
Mike