## Calculate time difference in hours as decimal value in Excel

To get the duration between two times in as decimal hour (i.e. 3 hrs, 4.5 hrs, 8 hrs, etc.) you can use a formula based on the MOD function. Formula =MOD(end-start,1)*24 Explanation In the example shown, the formula in D5 is: =MOD(B2-A2,1)*24 Excel hours In Excel, one day is the number 1, so 1 hour …