DMS2DD

=DMS2DD(range)

range
range of GPS coordinates in Degrees Minutes Seconds

DMS2DD converts GPS coordinates from Degrees Minutes Seconds to Decimal Degrees

lrobbo314

Well-known Member
Joined
Jul 14, 2008
Messages
3,927
Office Version
  1. 365
Platform
  1. Windows
DMS2DD converts GPS coordinates from Degrees Minutes Seconds to Decimal Degrees.

Excel Formula:
=LAMBDA(range,
    MAP(range,
        LAMBDA(x,
            TEXTJOIN(", ",,
                MAP(TEXTSPLIT(x,,", "),
                    LAMBDA(c,
                        LET(
                            a,TEXTSPLIT(CLEANDD(c),," ")+0,
                            deg,INDEX(a,1),
                            min,INDEX(a,2)/60,
                            sec,
                            INDEX(a,3)/3600,ROUND(deg+min+sec,5)
                        )
                    )
                )
            )
        )
    )
)

GPS
ABC
2Degree Minute Second InputDMS2DD
332° 6' 51.172", -115° 44' 54.78"32.11421, -114.25145
432° 33' 17.431", -113° 27' 4.176"32.55484, -112.54884
Data
Cell Formulas
RangeFormula
C3:C4C3=DMS2DD(A3:A4)
Dynamic array formulas.


Helper function 'CLEANDD'

Excel Formula:
=LAMBDA(text,
    REDUCE(
        text,
        SEQUENCE(3),
        LAMBDA(
            s,c,
            SUBSTITUTE(s,MID("°'""",c,1),"")
        )
    )
)
 
Upvote 0
Noticed an error with this function. This should be correct.

Excel Formula:
=LAMBDA(range,
    MAP(range,
        LAMBDA(x,
            TEXTJOIN(",",,
                MAP(TEXTSPLIT(x,,","),
                    LAMBDA(c,
                        LET(
                            a,TEXTSPLIT(CLEANDD(c),," ")+0,
                            deg,abs(INDEX(a,1)),
                            min,INDEX(a,2)/60,
                            sec,INDEX(a,3)/3600,
                            if(VALUE(index(a,1))<0,"-","") & ROUND(deg+min+sec,5)
                        )
                    )
                )
            )
        )
    )
)
 

Forum statistics

Threads
1,215,575
Messages
6,125,618
Members
449,238
Latest member
wcbyers

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