How do I calculate duration between two dates and times in excel?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to calculate the difference in hours between two dates and times. For
example the difference in hours between 11:25 on 23/07/2004 and 18:00 on
06/08/2004? The dates and times have already been determined by the start and
end of a particular event. Thanks,
 
Let's say the 23/07/2004 date is in A1 and the 06/08/2004 date is in B1

C1 =(B1-A1)*24 gets time in hours. Ensure that C1 is formatted to say
NUMBER with 2 decimal places.
 
One way:

=ROUND((A2-A1)*24,0)

where A1 has your start date/time and A2 has your end date/time. Since
XL stores times as fractional days, multiplying integral plus fractional
days by 24 gives hours.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top