You can use UDF

Function AU(cl1 As String, cl2 As String, cl3 As String) As String
      AU = Format(cl1, "##") & "°" _
      & Format(cl2, "##") & Chr(146) _
      & Format(cl3, "##") & Chr(146) & Chr(146)
End Function

formula is =AU(cell1,cell2,cell3)

where cell1 contains degree then ' & then ".

If you can provide more reference then shall help you with calculation part.

Cheers!!



On Sat, May 24, 2014 at 4:59 PM, Χρίστος Παπανικολάου <[email protected]>wrote:

> Friends,
> I need some kind of formula from Excel with these limitations: All
> (DDMMSS) in one cell. The form of DDMMSS may be as 10°5'15'' (no space) or
> 10° 5' 15'' (space), or 10 5 15 (no signs). The first decimal must be the
> first degree, the same to negative degrees, examples: 15°26’09.3’’ in
> 15.43°, -1°53’47.1’’ in -1.90°, -0°44’16.6’’ in -0.74°, 0°25’43.8’’ σε
> 0.43°. My work is about astronomy, tables of stars declinations. Thank you
> in advance! Chris.
>
>  --
> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s
> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
> https://www.facebook.com/discussexcel
>
> FORUM RULES
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> will not get quick attention or may not be answered.
> 2) Don't post a question in the thread of another member.
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
> 4) Acknowledge the responses you receive, good or bad.
> 5) Jobs posting is not allowed.
> 6) Sharing copyrighted material and their links is not allowed.
>
> NOTE : Don't ever post confidential data in a workbook. Forum owners and
> members are not responsible for any loss.
> ---
> You received this message because you are subscribed to the Google Groups
> "MS EXCEL AND VBA MACROS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/excel-macros.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.

Reply via email to