The tutorial explains different ways to calculate times in Excel and demonstrates several methods of adding times and calculating time difference. You will learn a few useful formulas to sum times and add hours, minutes or seconds to a given time. Continue reading
Comments page 14. Total comments: 1023
Hello. I need assistance with writing a formula to calculate holiday hours for anytime worked before 5pm.
for example:
Time in is 11:46 am and Time out is 4:39
or
Time in is 2:00 pm and Time out is 12:00 AM
how can calculate extra working hours and minute in amount
As like-
Report Time Out Time Total time Working Time/per Day Extra working Time Per hours *50 Rs Extra working Amount
08:00 22:50 14:50 12:00 02:50 00:00 ??????
How do I add 26 hours to a time if it has to calculate it by office hours say 9 - 19.
Hello:
If I have start time and end time in one cell, how can i get the toal # of hours. For example: in one cell I have: 05:00 pm - 10:00 pm. How can i get the total # of hours which is 5 hours?
Thank you so much!
Is the end time always on the same day as the start time?
Total Hours = (End time - Start time) * 24
For example -> C1 = (B1-A1)*24
Where:
A1 = Start time
B1 = End time
C1 = Total Hours
Make sure the number format for the total hours cell is general or number.
Nakul Neel Ajay Ghanshyam
Date in Out in Out in Out in Out
1-jun 11:00 16:00 10:00 19:00 10:00 19:00 10:00 15:30
20:30 02:00 - - - - 19:20 02:00
2-jun 10:00 16:00 10:00 16:00 14:30 02:30 10:00 16:00
20:30 02:30 - - - - 20:30 02:30
3-jun 10:00 16:00 10:00 19:00 15:00 02:00 10:00 14:30
20:30 02:00 - - - - 19:40 02:00
How to calculate night/day
i am looking for the elegant way to calculate night and day power consumption. the problem is that night tariff is calculated from 23:00 to 7:00, and counter indications are not taken daily.
e.g.
26 October, 13:06
28 October, 11:26
4 November, 17:46
how to calculate the time (hours and minutes) that can be attributed to the night/day time?
Using the 12 hour format, I am struggling to calculate the duration of hours when the start time begins at PM and the out time ends at AM. For example, if I wanted to find the duration of hours from 12:30AM(A1) to 3PM(A2), I would use the formula =(A2-A1)*24, which is 14.5 hours. BUT this does not work if I were to calculate the duration from 3PM(A1) to 12:30AM(A2), which is 9.5 hours but formula =(A2-A1)*24 will give me -14.5. What formula would I use to find the difference of time from PM to AM?
You can use the formula =(IF([@Start],[@End],[@End])-[@Start]) and write the end time as over the 24 mark rather than going back to 00:00:00. For example: start= 23:00:00, end= 25:00:00, and the duration it gives you will be 02:00:00.
The formula provided by Mary also works! If you want the same formula for the whole collumn though, that's what I use.
Hello Brenda,
Here is the formula to solve your task:
=(IF(A2 > A1, A1+1, A1)-A2)*24
sdsf
1 hour to two hours and three minutes how much longer?
I struggled, pls help me. I am using an updated version and this wouldn't work for me. Do you know why?
Need to perform a calculation on an employee schedule (utilizing the 24 hour clock) where start time is 19:00 (A11) and end time is 03:00 (A12) and get an answer that is not in negative hours ( =SUM(A12-A11) currently returns -16). When I use the hours 16:30 (B11) and 23:30 (B12) that do not span midnight (2400) then the calculations are correct ( =SUM(B12-B11) currently returns 7:30), which I can easily convert to 7.5 hours, any suggestions without having to program the dates into the start times?
Hi Woody,
just add 24 hours if the time will be negative :
=IF(A12<A11,A12-A11+24,A12-A11)
expl : check if value A12 is less then A11; if so add 24 to the difference, else just use the difference.
Think it will work for you.
This worked.
But when we SUM such results with SUM formula, it doesn't show the right value.
Please give me a formula for total calculate...
00:49
02:08
00:29
-00:02
01:55
-01:36
total=?
There are multiple overlapping time line items e.g
Renjee: Cell B 01:23 Cell C 02:23
Renjee: Cell B 01: 40 Cell C 02:40
Basically i need to figure out the exact time logged in i.e 01:23 - 02:40.
Is there a way to work it in excel.
hI,
if I want to Calcutta the total working hours for an employee excluding break time. how I can do this? i.e. below
DUTY IN 23:00
BREAK OUT 0:30
IN 1:00
BREAK OUT 5:00
IN 6:00
LEFT 11:00
act WORKING HRS-....
Thanks
Calculate In to Out time.
In your case
3 time periods
Add all 3 of them.
If all employees strictly use 2 breaks in his shift.
I need to find the total in DAYS you get when you sum a column. My column is in hours.
Hi,
I need to be able to get the time worked from the start time, to the end time, 22:00 hrs start and 06:00hrs end.
Terry
Change the format in cells b2 and c2 to custom [h]:mm:ss
=IF(C2>=B2,C2-B2,C2+1-B2)*24
In cell B2 type in your start time
In cell C2 type in your end time
Copy and paste the top code in Cell D2
Thank you So Much!
You helped me a lot!
OMG!!!! You just saved me so much time!! This formula worked PERFECTLY!!! THANK YOU!!!
I would like to calculate elapse time how do I write a formualae to reflect that for e.g. start time 8:30 a.m. end time 7:40 p.m
=SUM(C9-B9)-D9
in C9 type your start time
In B9 type in your end time
Copy and paste the top line in cell D9
Wouldn't that cause a circular reference?
C9: 8:30
B9: 19:30 (which baffles me to put the End time in B and Stat time in C...?)
Then, in D9, we subtract those two AND subtract D9 itself from that?... ???
(Stop time) - (Start time) = (IF =0, then add one minute to stop time);
(08:00.50) - (08:00.10) = 0 (error)
Thus, 08:01 -08:00.10 = 1 (acceptable)
Query: how do you write the formulae reflecting this?
Thank you
I need to make a cell (minutes late) using 1 cell (Scheduled departure time) being subtracted from another cell (actual departure time). The trick is i need the time starting at 12:00 pm. Ex: Truck leaves at 12:15 am, but the Scheduled time is 11:45 pm. My current sheet shows 23:30 minutes late instead of 30 mins.
Setting up a time sheet. I have worked out the formula for daily hours worked and a weekly total, what I cant work out is one for the following.
total hours if greater than 37 or lesser than with a value in hours and minutes.
I can get the correct figure if the total hours are greater than 37 using =D7-TIME(37,0,)but when it goes into a negative the result is hours, mins subtracted from 24.
What do I need to do to the formula to just show negative hours,mins?????
Hi, I need to calculate the difference in time. I have my D&C columns formatted as "Time", and am trying the formula =MINUTE(D2-C2), but it just gives me #VALUE. Are there any other settings I need to check?
Here is what my data looks like in each column:
09/05/2019 3:41 PM 09/05/2019 3:57 PM
in excel i am only count between 3 cell time but when I am going to + more then 3 cell time then the value gose wrong ...
Hi may I ask anyone the formula to add restdays on work schedule? Thanks
I am trying to have a column which shows a "-" minus sign if two times produce a minus. ie. 00:00:50 & 00:00:48 = -00:02 or if the sum was 00:00:48 & 00:00:50 = (+)00:02 but using one sum not having to individually go through & tell the formula if the sum is a plus or minus result. The first timing is 50 secs & the second 48 secs then the result is -2 seconds, etc.
You have a great series of Excel lessons here.
I’m looking at the table right above the Formula 2 heading using the formula
=$B2-$A2
I noticed the calculations give incorrect totals.
Using line 3 in the table the correct number of hours should be 7 and not 6.
I can’t even figure out where the 44 minutes came from since 15 would be the quarter hour it should be 45 minutes. But really it should still be 15 minutes since we’re subtracting 15 minutes from nothing.
And lastly 30 seconds from 40 seconds leaves 10 seconds, where does 50 come from?
I’m trying to setup a time sheet if the form of:
Date In Out In Out Total
I know that my formula will be (Out1-In1)+(Out2-In2)=Total for the Day,
But I can’t seem to get past the incorrect calculations.
Is there some tid-bit of information that I’m missing or just not understanding?
Any help would be greatly appreciated.
Hi can someone help me with this formula, I am calculating time on excel with this formula but times are coming out as negative figures,
=IF(C33="","", (C33-C32)*24- C34)
Hello, I am trying to make a time sheet. Here is the example:
Start time: 12:30 am
Regular hours: 4.5 hours
Extra hours: 40 minutes
Break: 30 minutes if total hours more than 5 hours
Finish Time: ??? I need the formula which should be 6:10 am as total hour more than 5.
Total hours: 5.16 hours
Thanks for your help.
Thank you so very much for an excellent article.
I haven't gotten my mind completely around it yet , but it certainly has me heading in the direction I need to go where as before I simply had no idea!
Thanks again ....5 Stars
I am trying to create a time sheet.
There will be 2 different in and out columns. I want a sum of all hours worked.
Example
A2 B2 C2 D2 E2
In Out In Out Total hours worked
7:00 A 8:30 A 11:00 A 5:00 P
I have an excel worksheet in which I'd like the date to update to the next date at a specific time. I have tried =today()+20/24, that only shows the current date and ten o clock in the evening. I am after it keep the previous data value (date) untill it passes a certain time value.
Lets say its 5:59 AM the date it shows in the cell is previous days date. At 6:00 AM it changes to the current days date. Like first at 5:59 its 14th of june and then at 6:00 its 15th of june.
Really very useful & excellent.
Really very useful & thank you so much.
Dear Friends
I want to write the calculated days.,Hours, Minutes in 00 digit format (Eg. 01 Days, 01 Hours, 01 Minutes) by using the below formula =IF(INT(B2-A2)>0, INT(B2-A2) & " days, ","") & IF(HOUR(B2-A2)>0, HOUR(B2-A2) & " hours, ","") & IF(MINUTE(B2-A2)>0, MINUTE(B2-A2) & " minutes and ","") & IF(SECOND(B2-A2)>0, SECOND(B2-A2) & " seconds","")
Hi,
I'm trying to calculate the amount of time left in a 24 hour period for multiple time slots that indicate dead time (time that is unavailable). The slots can have overlapping times. For ex. slot 1 = 8am-10am, slot 2 = 9am-11am, slot 3 = 7am-8:30am, slot 4 = 12pm-4pm, slot 5 = 1am-3am, slot 6 = 2:30 - 4:30pm. The slots do not have to be in chronological order. The result should be 24-10.5 = 13.5 left. Can anyone help?
Thanks
I want to know the formula to check whether for example 7:12pm lies between 11:45am, 12:00pm and 6:45pm, 7:30pm?
Here's a simple one but sleep deprivation may be causing me to overlook the solution...
Goal: TOTAL TIME WORKED LESS 30 MINUTE LUNCH (result cell: C1) using only cells for TIME IN, TIME OUT, AND HOURS WORKED.
Data Format: A1,B1,C1: TIME(Hour(01):Minute(01))
A1: IN TIME | B1: OUT TIME | C1: HOURS WORKED (LESS LUNCH)
Data Entered (Multiple variations):
1a. A1: 16:30 | B1: 23:00 | C1: =(B1-A1)-30 | RESULT: C1: 06:30 (0:30:00 not subtracted)
1b. A1: 16:30 | B1: 23:00 | C1: =(B1-A1)-00:30:00 | RESULT: C1: ERROR
Notes:
1. entering "-30" appeared to have no effect (changing to any number produced same result - always 06:30)
2. value in duration format '00:30:00' resulted in ERROR, adding parenthesis '(00:30:00)' had no effect, still ERROR
Eventually, and reluctantly, I added a column for LUNCH DURATION... which worked.
Data Format: A1,B1,D1: TIME(Hour(01):Minute(01)) | C1: DURATION(00:00:00)
A1: IN TIME | B1: OUT TIME | C1: LUNCH DURATION | D1: HOURS WORKED (LESS LUNCH)
A1: A1: 16:30 | B1: 23:00 | C1: 00:30:00 | D1: =(B1-A1)-C1 | RESULT: C1: 06:00
I didn't want to have a column for LUNCH DURATION. I feel it is unnecessary. I would rather just include the LUNCH DURATION in the formula.
How can I successfully achieve this without creating a column for LUNCH DURATION and using the column name in the formula?
Plz help me in excel sheet i want total no of hours worked formula
See below..
I got x-numbers of objects with different timestamps during a 24h period.
I have the total time (End time - Start time) summed up, BUT i can't count the same time twice.
Example:
AAA 03/07/2019 09:40-10:15, 11:30-12:00 (95 minutes)
BBB 03/07/2019 09:40-10:20, 18:00-19:00 (100 minutes)
But there are 20 minutes during that day that have the same time and i can't just sum that up, so the total time should be 175 minutes.
1. How do i find the minutes that overlaps (i need to verify from the date).
2. How do i remove the duplicates.
If 06:00:00 to 14:00:00=A, 14:00:01 to 22:00:00=B Shift and other C-Shift how to calculate in between how many hours are in a Date in A Shift and how many hours in B Shift
Exam :
Start Date Start Time End Date End Time
31-05-2019 04:00:00 01-06-2019 09:00:00 = on 31.05.19 : C=2 and
01.06.19 : A=3
How can I calculate the time along with date plz help.
pls help me to calculate ETA, for example one has its ETA of 10 hours, and it comes back within 12 hours, second if vehicle is moving at 2300hrs and comes back next day at 0300 hrs, how will I calculate its ETA?
Hi All,
Good Day!
Need some help, i want to subtract two time and result in ms? Is there any possibility?
Start: 24/06/2019 6:37:06:06
End: 24/06/2019 6:37:06:06
currently i using this formula:
=IF(INT(H74-G74)>0, INT(H74-G74) & " days, ","") & IF(HOUR(H74-G74)>0, HOUR(H74-G74) & " hours, ","") & IF(MINUTE(H74-G74)>0, MINUTE(H74-G74) & " minutes and ","") & IF(SECOND(H74-G74)>0, SECOND(H74-G74) & " seconds","")
Date 1/5/2019 02/5/2019
Durations 01:10 03:58
any simple formula for above if exceed 3 hrs than burst SLA
Desperately need formula to calculate hours and minutes worked in a day. Also need formula for total hours and minutes worked in a week for payroll.
I have 2 times column
start time
end time
Now I want to calculate
How much hour is there between (6 A.M to 18 P.M) from those 2 starts and end column
How much hour is there between (18 P.M to 00:00 A.M) from those 2 starts and end column
How much hour is there between (00:00 A.M to 6:00 A.M) from those 2 starts and end column
a clock was correctly set at 12pm.when the exact time was 10:00 p.m. the clock shows 1910 p.m. find the correctly time when the clock shows at 11:00 p.m.?
How to Find in between time (12:32:00 PM to 01:12:00 AM)
Need a formula that compares a date and time stamp between two columns. If 1 column is below the date and time in the 2nd column then it would say "Yes","No" based on the snapshot. Any ideas? Date and time stamp are shown in the same column. Does this need to be broken down?
Hi,
I tried to used all possible formula to calculate time difference , but the return is Error
I have used formula =$I2-$H2 or =INT(I4-H4) & " days, " & HOUR(I4-H4) & " hours, " & MINUTE(I4-H4) & " minutes and " & SECOND(I4-H4) & " seconds"
Both gave me Error
Here is example:
Start Time End Time MTBF
4/29/19 18:24:10 4/29/19 23:19:56 #VALUE! (use formula =$I2-$H2 or
I think I find the answer...
I use simple combine formula =A2+B2 , instead of formula =TEXT(A2,"m/dd/yy ")&TEXT(B2,"hh:mm:ss") , then the time difference formula =INT(D2-C2) & " days, " & HOUR(D2-C2) & " hours, " & MINUTE(D2-C2) & " minutes and " & SECOND(D2-C2) & " seconds" is working perfectly.
I want to calculate difference in time in different dates please help me