将表格中经纬度转换成小数格式

2024-12-30 05:11:10
推荐回答(1个)
回答1:

B2列计算度=INT(A2) C2列计算分=INT((A2-INT(A2))*100) D2列计算秒==(A2-INT(A2)-INT((A2-INT(A2))*100)/100)*10000 你要转换成十进制度的话,E2列直接输入 ==INT(A2)+INT((A2-INT(A2))*100)/60+(A2-INT(A2)-INT((A2-INT(A2))*100)/100)*10000/3600

如果你直接单纯地想把42.283085改写成42°28‘30.85的话,

=INT(A2) & “°” & INT((A2-INT(A2))*100) & “′” & (A2-INT(A2)-INT((A2-INT(A2))*100)/100)*10000 & “″”