Having posted this I think I've overlooked the conversion from minutes/seconds to decimal. Maybe further examples can be given.
With 1083015W in A1 try this in B1:
=IF(LEN(A1)=8,LEFT(A1,LEN(A1)-1)/10000,LEFT(A1,LEN(A1)-1)/100)*IF(ISERROR(FIND(RIGHT(A1,1),"WS")),1,-1)
Format the answer to 4 decimal places. (-108.3015)
I'm assuming:
- West and South must be negative. If I am wrong, change the "WS" text accordingly.
- the last letter is always upper case.
- if the format is DDDMM, the SS is zero.
Excel 2007 has a nicer formula to test for errors, but I only have the 2003 version.
hth
Mike
Bookmarks