How to get the hour and minutes difference between 2 datetimestamp in Excel?

jl. picture jl. · Feb 24, 2010 · Viewed 95.2k times · Source

Suppose I have 2 timestamp dates:

  1. 2/24/2010 1:05:15 AM
  2. 2/25/2010 4:05:17 AM

Can anyone please advise what function should I use in Excel to get the difference in hours and minutes?

Thanks.

Answer

a'r picture a'r · Feb 24, 2010

The difference in hours:

=(A2-A1)*24

The difference in minutes:

=(A2-A1)*24*60

The difference in hours and minutes:

=TRUNC((A2-A1)*24)      - the hours portion
=MOD((A2-A1)*24*60,60)  - the minutes portion