Custom Format For Typing Latitude & Longitude GPS

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
1,554
hi all..

how to creating Custom Format to typing Latitude & Longitude
like this :

case 1
(Latitude)
data
desired result
1679755
1.679755
18632547
1.8632547

<tbody>
</tbody>

case 2
(Longitude)
data
desired result
101429118
101.429118
101419375
101.419375

<tbody>
</tbody>

thank for your helping

.sst
 

Some videos you may like

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

DSCfromCFA

Board Regular
Joined
Feb 27, 2018
Messages
141
Office Version
365
Platform
Windows
G'day Muhammad,

There are a few methods that may do what you want, however can you please clarify or confirm the following:
1. Lattitude can be either a 7 or 8 digit number, with the decimal after the first digit in both cases
2. Longitude is always a 9 digit number with the decimal always after the third digit
3. There is no other means of distinguishing the Lats from Longs other than the number of digits OR are they in different columns or rows?

Regards, DSC
 

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
1,554
hi DSC...
i mean..how to insert/adding mark "." between number like sample above
case 1 or case 2 there are different column and row
 

DSCfromCFA

Board Regular
Joined
Feb 27, 2018
Messages
141
Office Version
365
Platform
Windows
Simple division would do it - which is why I asked the questions about the number of digits.

Assuming that the three number lengths you gave above are fixed, i.e Lats only come as 7 or 8 digit numbers and Longs only come in 9 digit numbers, then the following formula placed in a new column would work

=IF(LEN(A2)=8,A2/10^7,A2/10^6)

If the data is A2 is 8 digits it divides it by 10^7 to put the decimal point after the first digit, otherwise it divides by 10^6 to put the decimal behind the first digit in a 7 digit number or the third digit in a 9 digit number.
 

Watch MrExcel Video

Forum statistics

Threads
1,099,122
Messages
5,466,825
Members
406,501
Latest member
TheoDoc

This Week's Hot Topics

Top