You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Converting GPS decimal value coordinates to DMS coordinate/format using Numbers

I have been given GPS decimal format for latitude and longitude and would like to convert them to a DMS (Degree, minutes, seconds) format. I know how to calculate this as well as how to add this in Excel, yet having issues figuring out how to do this using Numbers for Mac.


Can anyone tell me how to change the format in a cell so DMS (Degree, minutes, seconds) format is displayed? Thanks in advance.


Cheers

MacBook Pro 13″, macOS 10.15

Posted on Dec 19, 2020 8:15 PM

Reply
Question marked as Top-ranking reply

Posted on Dec 21, 2020 5:51 AM

Hi Whatzerface,


To my knowledge, Numbers does not have such a format (either built-in or custom).

The closest I can get is this:


Formula in E2 =B2&"°"&C2&"'"&D2&""""


Your original question was how to convert a decimal value to degrees, minutes and seconds. Your latest reply shows a Date and Time value in cell B3. I fail to see the connection to latitude and longitude 🤔.


Regards,

Ian.

6 replies
Question marked as Top-ranking reply

Dec 21, 2020 5:51 AM in response to Whatzerface

Hi Whatzerface,


To my knowledge, Numbers does not have such a format (either built-in or custom).

The closest I can get is this:


Formula in E2 =B2&"°"&C2&"'"&D2&""""


Your original question was how to convert a decimal value to degrees, minutes and seconds. Your latest reply shows a Date and Time value in cell B3. I fail to see the connection to latitude and longitude 🤔.


Regards,

Ian.

Dec 20, 2020 2:15 AM in response to Whatzerface

Fairly easy process to describe: The letter, degrees and minutes will be the same in either notation, the decimal minutes are in 'milliminutes', and need to be separated from the left part of each coordinate, divided by 1000, then multiplied by 60.

Since dividing by 1000 then multiplying by 60 gives the same result as multiplying by 60/1000, and 60/1000 is the same as 0.060, which is equal to 0.06, we can skip the division and just multiply the decimal minute part by 0.06.

Expressed as a formula, that can be done as shown below:


The longitude and latitude of the GPS coordinates are entered into separate cells (B2 and C2).


The formula shown is entered in D2, then filled right to E2. The text copy below can be pasted into the formula editor for D2.


LEFT(B2,LEN(B2)−5)&"' "&ROUND(VALUE(MID(B2,FIND(".",B2)+1,3))×0.06,0)&""""


LEFT(B2,LEN(B2)−5)

This part gets left left part of the coordinate up to, but not including the decimal, last three digits and the minute sign at the end of the coordinate.


&"' "&

The ampersand is the concatenation operator. It connects the string on the left to the text (a minute sing and a space character) between the double quotes. The second ampersand connects the result of the rest of the formula to the string being built.


ROUND(VALUE(MID(B2,FIND(".",B2)+1,3))×0.06,0)


FIND finds the decimal point in the coordinate in B2, + adds 1, and the result is handed to MID

MID goes to the character determined by that number (the first digit after the decimal) and gets the three characters, starting at that position, and passes them (in order) to VALUE

VALUE converts the three character string to a number,

and ×0.06 multiplies that number by 0.06 to convert it to the equivalent number of seconds. and the result is handed to ROUND


ROUND rounds the result to the nearest whole second. and


&""""


The last concatenation operator attaches the seconds sign to the end of the string displayed in the cell.


Regards,

Barry


PS: If the GPS coordinates do not include a minute sign after the decimal minutes, change the -5 in the LEN function arguments to -4.

B.

Dec 20, 2020 3:47 AM in response to Whatzerface

Hi Whatzerface,


Please give some examples of the GPS decimal coordinates. I am thinking that they look like the example shown here:

https://www.rapidtables.com/convert/number/degrees-to-degrees-minutes-seconds.html


In Numbers,



Formula in B2 =INT(A2)

Formula in C2 =INT((A2−B2)×60)

Formula in D2 =INT((A2−B2−C2÷60)×3600)


More information will lead to a solution!


Regards,

Ian.


P.S. Please be aware that rescue services may require your location in degrees and decimal minutes.

Ian.

Dec 20, 2020 5:29 AM in response to Yellowbox

Thank you, Ian.


I certainly appreciate your reply. Forgive me if I was unclear in my request. I know how to calculate the coordinates, I need to know how to add the format in Numbers.


I see how it may be accomplished in Excel, but cannot find the equivalent in Numbers. It's important to have the format in one cell so I may pull it into certain GPS software.


Below is an example of how decimal format may be converted into DMs format in one cell.


Dec 21, 2020 10:23 AM in response to Yellowbox

Thanks again for responding.

Note: My original question read how to CHANGE FORMAT in a CELL is displayed:

The data I was given are decimal coordinates for latitude (ie. 30.45847 N) and longitude (-91.19198 W).


I have found that I CAN manually add these coordinates in decimal format into software like ArcGIS, but there are instances where relaying coordinate data in DMS format is easier to comprehend when referencing a location on a map, manually.

I'm a researcher, assisting in fieldwork and our data may be disseminated to both technical and low-fi recipients. DMS format allows for an informed user to identify locations on a hardcopy map and continue working, even in minimal technology circumstances.


Since I tend to operate with the constant reminder, "I don't know what I don't know" and I searched online for a way Numbers for Mac can both calculate THEN DISPLAY the Decimal data into DMS format within a single cell (easy to read, efficient and saves space). The calculation was easy enough to figure out on my own. I just thought maybe I was missing how Numbers might display DMS format within a single cell. As I type this, I'm now thinking this decimal format exists for ease of data entry in this digital age.


You've been helpful in confirming DMS format displayed in a SINGLE CELL FORMAT is not (yet) a feature in Numbers for Mac (unless I enter the data manually). This feature only exists in Excel. Boo...I generally avoid Excel.


I so appreciate your patience and assistance.

Enjoy the rest of 2020 and best wishes for 2021.


Cheers,

-sb



Converting GPS decimal value coordinates to DMS coordinate/format using Numbers

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.