Latitude Longitude formula ?

S

Selchie

Hello... I am new here and am looking for some advise on a formula for
Latitude and Longitude. I am using Excel 97 and I am making a sea log
for my husband. I have figured out how to change metric Lat/Long (DDD)
into normal Lat/Long (DMS = degree, minutes, seconds).

A metric Lat/Long reading would look like this:
48.367123 by 124.6112.

The normal reading most people are accustom to seeing looks like this:

48°22'02" by 124°36'44".

In order to make Excel change the metric reading into DMS first you
have to divide the metric reading by 24, that coding would be =(A1/24).
I got that to work fine. Then you have to Custom format your cells to
show:
[h]°mm'ss\"

I got that to work just fine also. My readings show as the DMS such as
48°22'02" which is what I want.

My problem is that I need the seconds portion to read in the
hundredths... three number places (.000) not just two number places
(.00). I can't figure out the formula for this and I haven't been able
to find it anywhere on the Internet either. If I try adding another
"s" to the second portion of the formula, I still only get two number
places... (.00) it won't add the third place. If I try using "mmm"
instead of "sss" it gives me the month... of course as that is the
coding for a month. If I try "ddd" it gives me the day... because of
the day coding.

If ANYONE knows how to do this or can help me with this I sure would
appreciate it... it's driving me nuts :rolleyes:

Thank you... you have a great forum here :)

Selchie
 
S

Selchie

That's where I learned how to do what I've figured out so far.

Researching further I found this format: [h]°mm'ss.0\"
you can add as many 0's as needed with this.

That gives me the third seconds number place, but there is a decimal
point between the second and third number (00.0). I am just wondering
if that would be a valid and true value/conversion though??? If it is,
I think I could live with that... just wouldn't look as clean and
professional as I would like.

My problem is that I am dealing with two different things... distance
or place on Earth and time... and wanting all that in one formula.
Heck... my REAL problem is that I am just learning this :rolleyes: .

Thank you very much for such a quick reply Frank... it did help :)

Selchie
 
D

David McRitchie

Hi Selchie,

I have a workbook on my site that was sent to me by
Vedran Cetkovic on 2004-01-24 which he developed 7 years ago
and uses almost every day to generate nautical waypoints.
You can download the zip file (84KB) from
http://www.mvps.org/dmcritchie/excel/zipfikles/waypoints.zip
the name of the Excel file (184KB) is
great circle & rhumb line.xls

If you do not have a program to unzip files you can download
a free program UltimateZip ( http://www.ultimate.zip ) which
I use all the time to unzip files. see my webnofee.htm page.

----------------------------------------------------
This is one contribution for Your page
Latitudes and Longitudes if you want to add.
I developed the program 7 years ago.
Since than I am working almost every day with it
an it is guaranteed good and very precise.

Program is valid on all hemispheres,
all around globe.

Regards (replace --- by at sign)
vedran.cetkovic --- ri.htnet.hr
 
D

Dave Peterson

I bet David didn't mean that extra K in zipfiles:

http://www.mvps.org/dmcritchie/excel/zipfiles/waypoints.zip

David said:
Hi Selchie,

I have a workbook on my site that was sent to me by
Vedran Cetkovic on 2004-01-24 which he developed 7 years ago
and uses almost every day to generate nautical waypoints.
You can download the zip file (84KB) from
http://www.mvps.org/dmcritchie/excel/zipfikles/waypoints.zip
the name of the Excel file (184KB) is
great circle & rhumb line.xls

If you do not have a program to unzip files you can download
a free program UltimateZip ( http://www.ultimate.zip ) which
I use all the time to unzip files. see my webnofee.htm page.

----------------------------------------------------
This is one contribution for Your page
Latitudes and Longitudes if you want to add.
I developed the program 7 years ago.
Since than I am working almost every day with it
an it is guaranteed good and very precise.

Program is valid on all hemispheres,
all around globe.

Regards (replace --- by at sign)
vedran.cetkovic --- ri.htnet.hr
------------------------------------------------

---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top