Calculating number of hours and minutes

G

Guest

Please can someone tell me how to calculate the number of hours and minutes
between two times, where the two times span more than 24 hours?

For example, if the starting date/time is 24 Dec 13:00 and the ending time
is 27 Dec 13:30, then the number of hours and minutes lapsed is 72 hours 30
minutes.
 
S

Sandy Mann

If the date and time are in the same cell then simply suntract the two cells
and custom format as [h]:nn

If the dates and times are in different cells then with tahe dates in Column
A and the times in Columns B use:

=(A2+B2)-(A1+B1)

Custom Formatted as above.
--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(e-mail address removed)
(e-mail address removed) with @tiscali.co.uk
 
M

MartinW

Hi Neville,

With your start date/time in A1 and your end date/time in B1
then put =B1-A1 in C1 and format C1 as custom [h]:mm

HTH
Martin
 
G

Guest

Thank you very much, Sandy! Works like a charm!

Sandy Mann said:
If the date and time are in the same cell then simply suntract the two cells
and custom format as [h]:nn

If the dates and times are in different cells then with tahe dates in Column
A and the times in Columns B use:

=(A2+B2)-(A1+B1)

Custom Formatted as above.
--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(e-mail address removed)
(e-mail address removed) with @tiscali.co.uk


Neville said:
Please can someone tell me how to calculate the number of hours and
minutes
between two times, where the two times span more than 24 hours?

For example, if the starting date/time is 24 Dec 13:00 and the ending time
is 27 Dec 13:30, then the number of hours and minutes lapsed is 72 hours
30
minutes.
 
S

Sandy Mann

You're very welcome, thanks for the feedback.

--
Regards,

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(e-mail address removed)
(e-mail address removed) with @tiscali.co.uk


Neville said:
Thank you very much, Sandy! Works like a charm!

Sandy Mann said:
If the date and time are in the same cell then simply suntract the two
cells
and custom format as [h]:nn

If the dates and times are in different cells then with tahe dates in
Column
A and the times in Columns B use:

=(A2+B2)-(A1+B1)

Custom Formatted as above.
--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(e-mail address removed)
(e-mail address removed) with @tiscali.co.uk


Neville said:
Please can someone tell me how to calculate the number of hours and
minutes
between two times, where the two times span more than 24 hours?

For example, if the starting date/time is 24 Dec 13:00 and the ending
time
is 27 Dec 13:30, then the number of hours and minutes lapsed is 72
hours
30
minutes.
 

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

Top