Latitude and Longitude Value Formatting with 3 Splitters ( : : ) Only.

mba_110

Board Regular
Joined
Nov 28, 2012
Messages
72
Office Version
  1. 365
Platform
  1. Windows
I have following data for Latitude and Longitude with its coordinates and want to transform the value (LT and LG) as per below.

for example

S.no >383> 19.159314 to 21 : 8 : N and 77.313188 to 75 : 16 : E rather than a long coordinate numbers.

These numbers are extracted from Geography from excel formula.

Mirza Bahadur Ali.xlsx
BCDEFGH
5S.noDistrictStateLatitudeLTLongitudeLG
Country & City

Mirza Bahadur Ali.xlsx
BCDEFGH
388383NandedMAHARASHTRA19.1593140077.31318800
Country & City
Cell Formulas
RangeFormula
B388B388=B387+1


I hope there will be some method or formatting to achieve this results.
 

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).
Maybe in F2:
Excel Formula:
=LET(rLat,E2,cLat,ABS(rLat),INT(cLat)&":"&ROUND(MOD(cLat,1)*60,0)&IF(rLat>0,":N",":S"))
and in H2
Excel Formula:
=LET(rLat,G2,cLat,ABS(rLat),INT(cLat)&":"&ROUND(MOD(cLat,1)*60,0)&IF(rLat>0,":E",":W"))
 
Upvote 0
Maybe in F2:
Excel Formula:
=LET(rLat,E2,cLat,ABS(rLat),INT(cLat)&":"&ROUND(MOD(cLat,1)*60,0)&IF(rLat>0,":N",":S"))
and in H2
Excel Formula:
=LET(rLat,G2,cLat,ABS(rLat),INT(cLat)&":"&ROUND(MOD(cLat,1)*60,0)&IF(rLat>0,":E",":W"))
Thanks for you answer its working, but i have to modify the method based on conditions and calculation of birth as per Astrology, not sure about the coordinates given by Geographic of excel where it exactly point on city, anyhow i will manage to do that but your formula will surely help me to get the desire format for coordinates.
 
Upvote 0

Forum statistics

Threads
1,215,110
Messages
6,123,138
Members
449,098
Latest member
Doanvanhieu

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