Hi.. I have an excel in which the values are in degree minute second format. I want to convert all this in decimal degrees by a single tool but the tool display xy data is not highlighting even i can't add a new field in the excel to calculate it again. please tell me what should i do?
Solved! Go to Solution.
The output from the tool is a feature, not just a table, with the desired coordinates, in whatever format added to the attribute table.
Did you choose the correct input options?
DMS Long / Lat in 2 separate columns?
Let me consider the DMS value has 02 digits each with the symbol of Deg. Min. and Sec. in between (e.g. 23d45m30sN).
The expression I have used is LAT_dd = VALUE(LEFT(<LAT_DMS>,<No. of characters> ) + MID(<LAT_DMS>,<Cursor Position>,<No. of characters>)/60 +MID (<LAT_DMS>,<Cursor Position>,<No. of characters>)/3600)
LEFT (23d45m30sN, 2) = 23
MID (23d45m30sN, 4, 2) = 45 ----> converted to deg. 45/60
MID(23d45m30sN, 7, 2) = 30 ----> Converted to deg. 30/3600
So the value would be 23+45/60+30/3600 = 23.758333
Ultimately, the VALUE function converts the result of the above expression into numeric.
NOTE: Few values had a different format. I had to change the cursor position/No. of Characters for these values
I suspect that your data are not in numeric format. In order for it to be converted, your degrees, minutes and seconds would need to be in separate columns. If they are in one column, then the data need to be parsed in excel and decimal degrees calculated from it