AI Assistant
Notifications
Clear all

Excel conversion format for Star*net

5 Posts
3 Users
0 Reactions
713 Views
rfc
 rfc
(@rfc)
Posts: 1966
Member
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

I've got an Excel Spreadsheet, with observations in the following format:

34.07500
68.17400
102.25075

i.e. XX degrees decimal xx minutes xxx seconds/tenths of seconds.
(The third one, is a mean: 102 degrees, 25 minutes, 7.5 seconds.

I'm trying to write a "format" in Excel to show these as

34-07-50
68-17-40
102-25-07.5

so that I can cut and paste them as text directly into Starnet.

Any ides?


 
Posted : October 18, 2014 11:36 am
bill93
(@bill93)
Posts: 9977
Member
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

I don't have a slick way, but here's a messy one.

First column is the number you have, say cell A5
Second column is = TRUNC(A5)
Third column is = -TRUNC(100*(A5-B5))
Fourth column is = -ROUND(10000*(A5-B5+C5/100),1)
Fifth column is formatted as TEXT and =B5&C5&D5

Optional: decimal degrees = A5-B5/60-C5/3600
(Negatives because we put the minus sign in to get it in text)

[rant]That packed format was good for the old HP calculators with limited display capability, but it should have stayed there. I hate it anywhere else. Any device now should be able to display the degrees, minutes, and seconds separately. [/rant]


 
Posted : October 18, 2014 12:23 pm
rfc
 rfc
(@rfc)
Posts: 1966
Member
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

> I don't have a slick way, but here's a messy one.
>
While I'm typically an "elegant solution" kind of guy, I know when "Any Port in a Storm" applies.:-D

Thanks very much.


 
Posted : October 18, 2014 1:21 pm
MLSchumann
(@mlschumann)
Posts: 134
Member
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Formatting only, but not converting to decimal degrees, can be accomplished as follows:
Given cells
A1 -> 34.07500
A2 -> 68.17400
A3 -> 102.25075

In another three cells, enter the following formulae:
cell_1 -> =SUBSTITUTE(TEXT(A1,"0.-00-00.00"),".","",1)
cell_2 -> =SUBSTITUTE(TEXT(A2,"0.-00-00.00"),".","",1)
cell_3 -> =SUBSTITUTE(TEXT(A3,"0.-00-00.00"),".","",1)

which will result as:
cell_1 -> 34-07-50.00
cell_2 -> 68-17-40.00
cell_3 -> 102-25-07.50


 
Posted : October 18, 2014 3:20 pm
rfc
 rfc
(@rfc)
Posts: 1966
Member
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

just....
WOW.:-)


 
Posted : October 18, 2014 4:18 pm