degrees-minutes-seconds

McCaw

New Member
Joined
Sep 6, 2002
Messages
5
Hello, Is there any formula to change a number to Degrees-minutes-seconds?

Like 121.51555
to 121-30-55.98

Thanks
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
On 2002-09-07 17:21, Abdc wrote:
=INT(A1) & " - " & INT(60*(A1-INT(A1))) & " - " & ROUND(MOD(A1*3600,360),2)
Thanks for the reply. I cut and pasted that in the cell then put the cell that held the number after it (B18). Excel said I should put an * befor the (B18)so I did. All I get is #VALUE! in the cell that I put the sting in. What am I doing wrong? Thanks
 
Upvote 0
The formula is based on the number being in A1.

Change all the A1's to the cell ref that actually contains the number.
 
Upvote 0
Thanks an awful lot, it is very close. It worked on the 3 digit longitude,
121 - 30 - 55.97

but on the 2 digit
lat it gave 38 - 33 - 198.83
instead of 38 - 33 - 18.83

I loaded it twice with the same results. Any suggestions? Thanks
 
Upvote 0
After playing with figures the formula works for all numbers .51 and below , but anything over that it throws in the exta 60 seconds.
And I'm sure not good enough to figure out what to change.
Bob
 
Upvote 0
=INT(A1)&" - "&INT(60*(A1-INT(A1)))&" - "& ROUND(60*((60*(A1-INT(A1)))-INT((60*(A1-INT(A1))))),2)
 
Upvote 0
That sure works good. Thanks alot, it will save me a lot of time doing chart updates for NOAA (NOS)

Bob
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,253
Members
448,556
Latest member
peterhess2002

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