Format to Degrees, Minutes, Seconds

SamMaynard

Board Regular
Joined
Dec 4, 2002
Messages
106
Does anyone know how to convert or format a decimal to degrees, minutes and seconds?

Sam
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
If you are converting radian measures to degrees, the DEGREE function will get you degrees as a start.
 
Upvote 0
There's probably a better way, but I think I put this together right:

=TEXT(INT(A1),"0° ")&TEXT(INT((A1-INT(A1))*60),"0' ")&TEXT((A1*60-INT(A1*60))*60,"0.0")&""""

(Edit) This is a little easier to read on the end:
=TEXT(INT(A3),"0° ")&TEXT(INT((A3-INT(A3))*60),"0' ")&TEXT((A3*60-INT(A3*60))*60,"0.0")&CHAR(34)
(EndEdit)
 
Upvote 0
Greg,

Thanks so much. That was exactly what I needed. Thank you.

A big thank you for the others who responded so quickly.

Have a great day.

Sam
 
Upvote 0
Why do such elegant, simple solutions seem so ruddy obvious after someone else posts 'em. :) Very nice, Yogi.
 
Upvote 0
Greg Truby said:
Why do such elegant, simple solutions seem so ruddy obvious after someone else posts 'em. :) Very nice, Yogi.
Hi Greg:

I liked your solution too -- Very Nice!
 
Upvote 0

Forum statistics

Threads
1,214,940
Messages
6,122,352
Members
449,080
Latest member
Armadillos

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