Working with time DURATION, not time of day

后端 未结 9 953
后悔当初
后悔当初 2020-12-13 17:07

I\'m doing some benchmarking, and I want to use Excel to produce graphs of the results. I\'ve got a simple but annoying problem which is baking my noodle.

The proble

9条回答
  •  没有蜡笔的小新
    2020-12-13 17:11

    You can easily do this with the normal "Time" data type - just change the format!

    Excels time/date format is simply 1.0 equals 1 full day (starting on 1/1/1900). So 36 hours would be 1.5. If you change the format to [h]:mm, you'll see 36:00.

    Therefore, if you want to work with durations, you can simply use subtraction, e.g.

    A1: Start:           36:00 (=1.5)
    A2: End:             60:00 (=2.5) 
    A3: Duration: =A2-A1 24:00 (=1.0)
    

提交回复
热议问题