You are on page 1of 13

Example Workbook for Calculating Time in Excel

The workbook demonstrates various ways to calculate times in Excel: how to add and subtract times, calculate time
difference, or elapsed time, sum times and add hours, minutes or seconds to a given time.

Author
Last update
Tutorial URL

Examples:
• Calculate time difference by subtracting one time from the other
• Calculating time difference with the TEXT function
• Count hours, minutes or seconds between two times
• Calculate difference in one time unit ignoring others
• Elapsed time from a start time to now
• XX days, XX hours, XX min, XX sec
• Add / subtract hours to a given time
• Add / subtract minutes to a given time
• Sum several times
ample Workbook for Calculating Time in Excel
rkbook demonstrates various ways to calculate times in Excel: how to add and subtract times, calculate time
ce, or elapsed time, sum times and add hours, minutes or seconds to a given time.

Ablebits.com
24-Jun-15
How to calculate time in Excel - time difference, adding / subtracting times

e time difference by subtracting one time from the other


ting time difference with the TEXT function
ours, minutes or seconds between two times
e difference in one time unit ignoring others
time from a start time to now
, XX hours, XX min, XX sec
ubtract hours to a given time
ubtract minutes to a given time
veral times
Time 1 Time 2 Formula Result
21:30:15 15:40:00 =A2-B2 0.2432291667

11:23:00 AM =TIME(HOUR(NOW()), MINUTE(NOW()), 0.2971759259


SECOND(NOW()))-B4

6/4/15 10:00 PM 6/1/15 4:30 PM =TIME(HOUR(A7), MINUTE(A7), SECOND(A7))- 0.2291666667


TIME(HOUR(B7), MINUTE(B7), SECOND(B7))
Start time End time Hours Hours and minutes Hour, min and sec
9:30:15 PM 9:40:00 PM 0 0:09 0:09:45
10:15:40 AM 5:00:30 PM 6 6:44 6:44:50
9:50:00 AM 11:23:00 AM 1 1:33 1:33:00
Start date End date Hours Complete hours Minutes Seconds
6/2/15 10:00 6/2/15 17:30 7.5 7 450 27000
6/1/15 21:10 6/3/15 21:30 48.33333333 48 2900 174000
6/3/15 9:50 6/3/15 10:23 0.55 0 33 1980
6/4/15 8:15 6/3/15 5:00 -27.25 -28 -1635 -98100
Start time End time Hours Minutes Seconds
10:00:30 17:30:00 7 29 30
8:10:40 21:30:00 13 19 20
9:50:15 10:23:40 0 33 25
Start time Elapsed time
6/16/15 1:30 AM 17:00
6/6/15 2:20 AM 16:10
6/16/15 1:15 PM 5:15
6/15/15 8:00 PM 22:30
6/15/15 3:10 PM 3:20

Start time Elapsed time


6/1/15 1:30 AM 8 days 17:00:55
6/2/15 2:20 AM 7 days 16:10:45
6/3/15 1:15 PM 6 days 5:15:05
6/4/15 2:00 PM 5 days 4:30:15
6/15/15 3:10 PM 25 days 3:20:35

Start time Elapsed time


1:30:00 AM 17:00:56
6:10:00 AM 12:20:56
1:15:50 PM 5:15:06
2:00:40 PM 4:30:16
Start date End date Time difference
6/2/15 10:00:30 6/2/15 17:30:00 0 days, 7 hours, 29 minutes and 30 seconds
6/1/15 18:10:00 6/3/15 21:30:40 2 days, 3 hours, 20 minutes and 40 seconds
6/3/15 9:50:15 6/3/15 10:23:40 0 days, 0 hours, 33 minutes and 25 seconds

Start date End date Time difference


6/2/15 10:00:30 6/2/15 17:30:00 7 hours, 29 minutes and 30 seconds
6/1/15 18:10:00 6/3/15 21:30:40 2 days, 3 hours, 20 minutes and 40 seconds
6/3/15 9:50:15 6/3/15 10:23:40 33 minutes and 25 seconds

Start date End date Time difference


6/2/15 10:00:30 6/2/15 17:30:00 30 days, 7 hours, 29 minutes and 30 seconds
6/1/15 18:10:00 6/3/15 21:30:40 1 days, 3 hours, 20 minutes and 40 seconds
6/3/15 9:50:15 6/3/15 10:23:40 30 days, 0 hours, 33 minutes and 25 seconds
Start time Add 2 hours Add 28 hours
6/1/15 10:00 AM 6/1/15 12:00 PM 6/2/15 2:00 PM
6/1/15 9:10 PM 6/1/15 11:10 PM 6/3/15 1:10 AM
5/2/15 6:30 PM 5/2/15 8:30 PM 5/3/15 10:30 PM
Start time Add 20 min Add 200 min Subtrcat 30 min Subtrcat 300 min
6/1/15 10:00 AM 6/1/15 10:20 AM 6/1/15 1:20 PM 6/1/15 9:30 AM 6/1/15 5:00 AM
6/1/15 9:10 PM 6/1/15 9:30 PM 6/2/15 12:30 AM 6/1/15 8:40 PM 6/1/15 4:10 PM
5/2/15 6:30 PM 5/2/15 6:50 PM 5/2/15 9:50 PM 5/2/15 6:00 PM 5/2/15 1:30 PM
Project Time
Project 1 12:44:15
Project 2 6:25:45
Project 3 22:20:10

Total time: Format


41:30 [h]:mm
41:30:10 [h]:mm:ss
41 hours, 30 minutes, 10 seconds [h] "hours", mm "minutes", ss "seconds"
31 17:30:10 d h:mm:ss
31 day 17:30:10 d "day" h:mm:ss
31 day, 17 hours, 30 minutes and 10 seconds d "day," h "hours," m "minutes and" s "seconds"

You might also like