在excel中对经纬度数据如何做到四舍五入(比如39:10:39.643769变成39°10′40″)
答案:1 悬赏:30 手机版
解决时间 2021-12-02 00:20
- 提问者网友:嘚啵嘚啵
- 2021-12-01 18:12
在excel中对经纬度数据如何做到四舍五入(比如39:10:39.643769变成39°10′40″)
最佳答案
- 五星知识达人网友:傲气稳了全场
- 2021-12-01 19:21
=SUBSTITUTE(SUBSTITUTE(LEFt(A1,LEN(A1)-MAX(IF(ISNUMBER(--RIGHt(SUBSTITUTE(A1,":","A",2),ROW($1:$20))),ROW($1:$20))))&ROUND(RIGHt(A1,MAX(IF(ISNUMBER(--RIGHt(SUBSTITUTE(A1,":","A",2),ROW($1:$20))),ROW($1:$20)))),0),":","°",1),":","'")
数组公式,按CTRL+SHIFT+回车,完成公式。追问
追答我的公式是在2007以上版本设计的,如果是2003会出错,重新设计了公式:
=SUBSTITUTE(SUBSTITUTE(LEFt(A1,FIND("A",SUBSTITUTE(A1,":","A",2)))&ROUND(RIGHt(A1,LEN(A1)-FIND("A",SUBSTITUTE(A1,":","A",2))),0),":","°",1),":","'")&""""
数组公式,按CTRL+SHIFT+回车,完成公式。追问
追答我的公式是在2007以上版本设计的,如果是2003会出错,重新设计了公式:
=SUBSTITUTE(SUBSTITUTE(LEFt(A1,FIND("A",SUBSTITUTE(A1,":","A",2)))&ROUND(RIGHt(A1,LEN(A1)-FIND("A",SUBSTITUTE(A1,":","A",2))),0),":","°",1),":","'")&""""
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯