excelexcel-formulanumberssubtraction

Excel subtract big numbers as hours and minutes


The subtracting 36716.09 from 28961.49 (36716.09 - 28961.49, ‘.’dot is separator represents minutes: 9 minutes and 49 respectively) yields 7754.60 Which accounts for 7755 hours.

However, the correct result is 7754.20, 7754 hours and 20 minutes.

36715 - 28961 =7754 hours 69 - 49 =20 minutes

I don’t have a particular preference to time format. The delimiter can be colon or any other separator as long as hours/minutes is one value, so can be allocated in one cell.

The values can be vary but do not exceed 7 digits, hhhhh.mm

I have tried different time/text functions/formulas and cell formats with no avail.

Could someone advise/point me on cause/solution of this error, please.

P.S. Thank you all of stackoverflow community for the provided solutions.


Solution

  •  =(TRUNC(A1)/24+(A1-TRUNC(A1))/14.4)-(TRUNC(B1)/24+(B1-TRUNC(B1))/14.4)
    

    Result custom formatted as [hh]:mm

    Result:

    enter image description here