ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   how make an angle to show in degree, minute,second instead of degree (https://www.excelbanter.com/excel-programming/410074-how-make-angle-show-degree-minute-second-instead-degree.html)

EXCEL NEWS

how make an angle to show in degree, minute,second instead of degree
 
hi,

i wonder how to change an angle to show in degree, minute,second instead of
degree in excel

i mean, for instance, make 45.5 (degree) to 45.3000 (d m s)

thanks


Dave Peterson

how make an angle to show in degree, minute,second instead ofdegree
 
I'd start with Chip Pearson's site:
http://cpearson.com/excel/latlong.htm

EXCEL NEWS wrote:

hi,

i wonder how to change an angle to show in degree, minute,second instead of
degree in excel

i mean, for instance, make 45.5 (degree) to 45.3000 (d m s)

thanks


--

Dave Peterson

Rick Rothstein \(MVP - VB\)[_1815_]

how make an angle to show in degree, minute,second instead of degree
 
Here is one way...

DecimalDegrees = 45.5
DegreesMinutesSeconds = Int(DecimalDegrees) & Format((DecimalDegrees - _
Int(DecimalDegrees)) / 24, "\.nnss")

Rick


"EXCEL NEWS" wrote in message
...
hi,

i wonder how to change an angle to show in degree, minute,second instead
of degree in excel

i mean, for instance, make 45.5 (degree) to 45.3000 (d m s)

thanks



EXCEL NEWS

how make an angle to show in degree, minute,second instead of degree
 
Thanks a lot

"Rick Rothstein (MVP - VB)" wrote in
message ...
Here is one way...

DecimalDegrees = 45.5
DegreesMinutesSeconds = Int(DecimalDegrees) & Format((DecimalDegrees - _
Int(DecimalDegrees)) / 24, "\.nnss")

Rick


"EXCEL NEWS" wrote in message
...
hi,

i wonder how to change an angle to show in degree, minute,second instead
of degree in excel

i mean, for instance, make 45.5 (degree) to 45.3000 (d m s)

thanks




Rick Rothstein \(MVP - VB\)[_1818_]

how make an angle to show in degree, minute,second instead of degree
 
You are welcome. As it turns out, we can simplify the expression somewhat..

DecimalDegrees = 45.5
DegreesMinutesSeconds = Int(DecimalDegrees) & _
Format(DecimalDegrees / 24, "\.nnss")

Rick


"EXCEL NEWS" wrote in message
...
Thanks a lot

"Rick Rothstein (MVP - VB)" wrote in
message ...
Here is one way...

DecimalDegrees = 45.5
DegreesMinutesSeconds = Int(DecimalDegrees) & Format((DecimalDegrees - _
Int(DecimalDegrees)) / 24, "\.nnss")

Rick


"EXCEL NEWS" wrote in message
...
hi,

i wonder how to change an angle to show in degree, minute,second
instead of degree in excel

i mean, for instance, make 45.5 (degree) to 45.3000 (d m s)

thanks






All times are GMT +1. The time now is 09:15 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com