lrobbo314
Well-known Member
- Joined
- Jul 14, 2008
- Messages
- 3,957
- Office Version
- 365
- Platform
- Windows
DMS2DD converts GPS coordinates from Degrees Minutes Seconds to Decimal Degrees.
Helper function 'CLEANDD'
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 | |||||
---|---|---|---|---|---|
A | B | C | |||
2 | Degree Minute Second Input | DMS2DD | |||
3 | 32° 6' 51.172", -115° 44' 54.78" | 32.11421, -114.25145 | |||
4 | 32° 33' 17.431", -113° 27' 4.176" | 32.55484, -112.54884 | |||
Data |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C3:C4 | C3 | =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