# degrees-minutes-seconds

#### McCaw

##### New Member
Hello, Is there any formula to change a number to Degrees-minutes-seconds?

Like 121.51555
to 121-30-55.98

Thanks

### Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
=INT(A1) & " - " & INT(60*(A1-INT(A1))) & " - " & ROUND(MOD(A1*3600,360),2)

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

The formula is based on the number being in A1.

Change all the A1's to the cell ref that actually contains the number.

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

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

=INT(A1)&" - "&INT(60*(A1-INT(A1)))&" - "& ROUND(60*((60*(A1-INT(A1)))-INT((60*(A1-INT(A1))))),2)

That sure works good. Thanks alot, it will save me a lot of time doing chart updates for NOAA (NOS)

Bob

Replies
2
Views
432
Replies
2
Views
1K
Replies
26
Views
888
Replies
2
Views
635
Replies
13
Views
250

1,219,892
Messages
6,150,798
Members
450,985
Latest member
Andynair7

### 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.

### Which adblocker are you using?

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

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