degrees minutes seconds number format code?!!

stark

New Member
Joined
Dec 28, 2005
Messages
2
i have a question:
when i import my text file into excel it shows the degrees as 32.245563223 (this is NOT decimal degrees...it is degrees minutes seconds)

i need it to be displayed like this: 32°24'55.6"

what would the number format code be to show this?

can you please help...

thanks,
stark
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
thanks...

when i enter the code [hh]°mm'ss\" it turns my latitude from: 31.295530155
to: 751°05'34"
instead of 31°29'55.3"

any ideas as to what could be wrong?

thanks again,
stark
 
Upvote 0
Hi Stark,

To fix that problem, I prefer to use a custom format as ##° ##' ##.0000\" \S.

Suerte,
 
Upvote 0
Alas I have tried this many times, and I have not succeed in simply displaying the number this way. It really should be built into Excel.

I simply put the degrees, minutes, and seconds in different cells. Then I make another cell called something like decimal degrees, and I just add them up and divide by the appropriate factors of 60. If you have a data file, I guess you need to either figure out how to import them separately, or understand what it is doing wrong.

In Stark's example above, you would simply use the MOD() function to separate this into three different cells, and then put them back together again.
 
Upvote 0
Maybe in a separate cell multiply by 10000 and custom format as 0º 00' 00.0''

Book1
AB
132.2455632232º 24' 55.6''
Sheet1
Cell Formulas
RangeFormula
B1B1=A1*10000
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,803
Members
449,048
Latest member
greyangel23

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