Vin*_*nce 1 format time decimal google-sheets
如何使用公式计算 Google 表格中的十进制时间?
基本上,我有这样的设置:
Gross Pay: 16.63
Total Online: 1.53 (Represents 1 hour 53 minutes)
Hourly Rate: 10.87 (Just a formula that divides gross pay from total online)
Run Code Online (Sandbox Code Playgroud)
这是不正确的,因为 1 小时 53 分钟是 1.88 小时。
我需要我的小时费率单元有 16.63 / 1.88 才能得到正确的结果。任何人都知道任何公式来做到这一点?
请尝试:
=int(A1)+(mod(A1,1)/0.6)
Run Code Online (Sandbox Code Playgroud)
1.88从1.53单元格 A1 中返回。
1.53在小数处拆分,删除小数(“x100”)并将分钟除以 60,以获得一小时的比例。