如何在excel中把2012⼀01⼀02⼀2:00转换为横坐标0.2。

2024-12-28 07:20:14
推荐回答(4个)
回答1:

假设2012/01/02/2:00等内容写在A列,A1单元格开始的数据
则B1单元格写入公式
=TEXT(TRUNC((HOUR(SUBSTITUTE(A3,"/"," ",3))+MINUTE(SUBSTITUTE(A3,"/"," ",3))/60)/10,2),"0.00")

=TRUNC((HOUR(SUBSTITUTE(A3,"/"," ",3))+MINUTE(SUBSTITUTE(A3,"/"," ",3))/60)/10,2)
下拉复制公式

回答2:

你这根本就不是日期时间的格式呀
就算是时间格式,5:00也不是0.5呀

回答3:

a1=2012/01/02 2:00
b1=TEXT(TEXT(A1,"h")/10,"0.0") 即0.2

回答4:

不经常用