# Calculating Working Hours Between Two Dates

Jul 25, 2002
How should I calculate working hours between two dates? Say if start at 26 july at 15:00 and finish at 29 july at 10:00, the function should return 4 hours because the working hours are from 8am to 5pm (8 - 17), and there is a weekend between the dates. Preferably the function should work like the NETWORKDAYS() function, but it should also include the time, not just the dates. And also, if have to add say 8 hours to a date, how should I calculate the result? Also this function should aware of the working hours and holidays, so it should ignore those times.

View 9 Replies
ADVERTISEMENT
Mar 18, 2014

I'm trying to calculate shift working hours without using dates.

The scenario is

Cell A1 = Start Time

Cell A2 = Start Time

Cell A3 = Break Time

Basically I want the output to calculate hours worked between:-

0000 and 0600 as a total in cell A4

0600 and 1800 as a total in cell A5

1800 and 0000 as a total in cell A6

Then if the value of A5 is greater than A3, subtract A3, but if the value of A5 is less than the value of A3, A5 should be zero and the remainder of the value of A3 subtracted from A4 (or A6) depending which has a value.

View 5 Replies
View Related
Mar 2, 2010

The below formulae allows me to see the difference between two dates and only returns the difference in working hours ie :

Difference between

02/02/2010 08:00 & 03/02/2010 08:00 is 16 Hours 0 Minutes

=(INT(A3)-INT(C6))+MAX(MOD(A3,1)-MAX(MOD(C6,1)))

The following displays it in the Hrs and Mins format

=TEXT(B15,"[h]")&" Hour"&IF(OR(TEXT(B15,"[h]")+0=0,TEXT(B15,"[h]")+0>1),"s "," ")&MINUTE(B15)&" Minute"&IF(MINUTE(B15)1,"s ",""))

View 9 Replies
View Related
Mar 13, 2008

I am working in call center, and I get tickets and i have to meet my Services Level Agreement (SLA) with in pre defined working hours.

My working hours are 8:00 AM to 17:00 PM, Monday to Friday. (this includes 1 hour of Lunch time which is not considered as business hour)

As per the SLA, i have to complete the ticket in 40 business hours, i.e 5 business days.

Suppose a ticket is created on 3/5/2008 10:00 AM. I want to know how much time is left for me to work on that particular ticket.

View 12 Replies
View Related
Aug 15, 2010

how can i calcaulate working hours between two days.

Working Hours 07:30 - 14:30

e.g. mm/dd/yyyy

start time 01/04/2010 17:34:58

stop time 01/05/2010 08:23:35

View 9 Replies
View Related
May 1, 2009

I am looking for a formula to calculate time from one date and time to another. The only catch is I only want it to use times during specific times.

Example

Start 5/1 8am and end 5/2 8am. The working hours are from 7am until 4pm and from 8pm till 5am. In this example the solution should be 17 hours.

How do I set up a formula to respect only working hours (also excluding weekends except for Saturday early am from midnight until 5am.

Sorry if this is confusing, I am trying to use IF statements but I’m fighting a losing battle.

View 7 Replies
View Related
Oct 15, 2007

The below is for Excel 2003.

I want to set up a spreadsheet that can show my work is completed within a service level agreement, based on working hours of 9-5 Monday-Saturday.

I want to be able, for example, to log that a piece of work is reported at 09:00 on a Monday and completed at 10:00 on Monday and for excel to calculate that as 1 hour until completion. Fine so far. But what if that job was closed at 10:00 two days later? Based on an 8 hour working day, that should be 17 hours.

And what if a bit of work comes in at 17:00 on the Saturday. No one works the Sunday. Say the job is completed at 10:00 on the Monday. that should calculate as 1 hour to completion.

The SLA I'm setting is 4 hours.

View 9 Replies
View Related
May 2, 2008

I need to calculate time taken to fix a piece of equipment.

A1 B1

BREAK TIME FIX TIME

4/22/08 23:00 4/23/08 04:00

Should be 5 hours, but i can't find the formula to make it work.

View 14 Replies
View Related
Jan 1, 1970

you must have the Analysis TookPack installed to use this function. It's comes with Excel. Look under Tools>Add Ins.

View 9 Replies
View Related
Mar 3, 2008

I have a spreadsheet with various date fields and next to those time fields. I need to calculate the amount of working hours between the 2 lots of values

for example

Cell A has "22/02/2008"

Cell B has "16:44:00"

Cell J has "25/02/2008"

Cell K has "08:59:00"

The answer i'm looking for is 01:29:00. The working hours are Monday to Friday 07:30 - 16:00. This is what I have so far and it gives me the total hours between the 2 dates but not the working hours. =IF(J10-A10=0,K10-B10,((J10-A10)+(K10-B10))) (Formatted with [h]:mm:ss). I have tried using workingday() but can't get the desired result

View 5 Replies
View Related
Jun 17, 2008

I need to calculate the total WORK-hours (09:00-17:30) between two date/time-stamps;

Including Saturdays but excluding Sundays & Holidays.

I can get this working excluding Saturdays (formula below) using NETWORKDAYS however the call centre work six days a week Mon-Sat.

A1=dd/mm/yyyy/hh:mm

A2=dd/mm/yyyy/hh:mm [code]....

View 9 Replies
View Related
Oct 30, 2009

How should I calculate working hours between two dates? Say if start at 9/25/2009 7:26:13 PM and finish at 10/20/2009 9:46:13 AM, the function should return 245:20:00 because the working hours are from 8am to 11 PM (8 - 23), and there are weekends between the dates. Preferably the function should work like the NETWORKDAYS() function, but it should also include the time, not just the dates.

View 9 Replies
View Related
Jun 17, 2008

I need to calculate the total WORK-hours (09:00-17:30) between two

date/time-stamps;

Including Saturdays but excluding Sundays & Holidays.

I can get this working excluding Saturdays (formula below) using NETWORKDAYS however

the call centre work six days a week Mon-Sat.

A1=dd/mm/yyyy/hh:mm

A2=dd/mm/yyyy/hh:mm

DayEnd= 17:30:00

DayStart= 09:00:00

HolidayList= "Currently Blank"

=(NETWORKDAYS(A1,A2,HolidayList)-1)*(DayEnd-DayStart)+MOD(A2,1)-

MOD(A1,1)

View 6 Replies
View Related
Mar 22, 2007

I have 2 dates+ times.

1 the contract start date and time.

2 the contract end date and time.

Can I calculate the number of working hours between these two using a formula?

So if I have a 10 hour working day (08:00-18:00), Mon-Fri and the two Dates/Times can I calculate the number of working hours?

Example

Start 06-Mar-07 10:00

End 14-Mar-07 14:00

This is 2 part days and over a weekend.

View 9 Replies
View Related
Aug 11, 2010

I have been working on a timesheet but the problem I have come across is calculating actual hours worked only in the core hours and any work outside the core hours is calculated in the outside hours column. A standard work day is 7.6 hours working between 8.30am and 5.00pm. However if someone was to commence work either before 6am or after 8pm this is outside of core hours. I have attached an example of my timesheet for you to see what I am talking about.

View 3 Replies
View Related
Dec 29, 2013

I'm having difficulty to calculate hours between 2 or 3 days exclude non working hours.

Attached is the example of start date with time & end date with time.

The situation is like "when the case log in till the case assist in working hours." so i will get the hours from case log to case assist.

Testing.xlsxâ€Ž

View 8 Replies
View Related
Apr 22, 2014

I am trying to set up a time sheet for staff where it calculates hours worked in and outside of core hours. I can do a calculation to work out what they have worked in and out of core hours providing that part of their time starts of finishes in core times. The problem I am having is when some one works only outside core hours. Our core hours are 6am to 6pm. The problem is when they work from say 7pm to 1am. This is irregular work paid as overtime not shift work.

View 5 Replies
View Related
Jan 12, 2010

I want to calculate employee rostered hours or days off from an exported crystal reports. The problem isn't how to calculate the hours but to calculate accurately when formatting changes occur in the exported report. This is an example for the exported sheet data.

http://farm3.static.flickr.com/2748/...50a38e59_o.jpg

So to calculate data intially using the formula

View 10 Replies
View Related
Oct 3, 2008

I have a ROW of numbers (hours) and I need to figure the hours left. Here is an example of 6 colums, Zeros and blanks are valid entries.

C1 C2 C3 C4 C5 C6 Hours Left

16 8 0 0 0 0

16 8 4 4

8 2 1 0 0

16 0 0 8 4 2 2

8 16 10 8 8

I'm trying to get a formula that will figure out hours left. I've tried a number of times.

View 5 Replies
View Related
Dec 12, 2008

I have a spreadsheet where I record individual staff start time, end times and the length of their break. From this I caculate the hours they worked for the day.

E holds Start, F holds End and G holds Break length. Thus using the following forumula gives me the number of hours and minutes:

View 4 Replies
View Related
Jan 1, 1970

I can do the timesheet formula for adding the hours worked as follows:

Start Finish Total

08:45 17:15 8.5

However, it doesn't work when I fill in a whole week work of hours in this format:

Start Finish Total

08:45 17:15 08:30

It works on a daily basis, but when total hours exceeds 24, the formula get's all mixed up - how to I format the total column to account for every 5 minutes worked, which you can't do when converting to decimal??

View 14 Replies
View Related
Apr 23, 2008

I use this formula at work to calculate business hours from Mon-Fri:

=IF(OR(L10="",L11=""),"",(NETWORKDAYS(L10,L11,$N$2:$N$23)-1)*($Q$3-$Q$2)+IF(OR(ISNUMBER(MATCH(INT(L11),$N$2:$N$23,0)),WEEKDAY(L11,2)>5),$Q$3,MEDIAN(MOD(L11,1),$Q$3,$Q$2))-IF(OR(ISNUMBER(MATCH(INT(L10),$N$2:$N$23,0)),WEEKDAY(L10,2)>5),$Q$2,MEDIAN(MOD(L10,1),$Q$3,$Q$2)))

where Q3= business start time 8.30am

where Q2= business end time 5.30pm

thus the difference between 18-Apr-08 16:30 and 21-Apr-08 13:30 is 6 hours.

I now need to adapt this formula for another Department that also works on Saturday from 8.30am to 5.30pm.

View 9 Replies
View Related
Jun 3, 2008

This may seem like an odd request... I recently received a protected worksheet that I entered my date of birth into, and it told me how long (if I pressed F9) I had been alive in y/m/w/d/m/s etc. I was wanting to do a similar spreadsheet to show how long I had stopped smoking for, and a running total of how much I was saving, but I couldn't look at the spreadsheet for help. The stop time was 01/06/08 - 05:00am GMT, up until present, and buying cigarettes I was spending £0.00004166666 per second. Is it possible to create such formulas?

View 9 Replies
View Related
Feb 20, 2014

Example: In cells A1:A10 random number between 0 & say 20, need to sum ABOVE 8 = (calculating overtime hours)

E.g.

A1 = 0

A2 = 8

A3 = 8

A4 = 10 (giving 2)

A5 = 12 (giving 4)

A6 = 5

A7 = 13.5 (giving 5.5)

A8 = 8

A9 = 0

A10 = 16 (giving 8)

A11 = (Total overtime above 8 hours) 2+4+5.5+8 = 19.5

Need to be able to increase rows and drag across.

View 3 Replies
View Related
Nov 27, 2012

Weekly Timesheet.xlsx

This spreadsheet calculates hours worked great for first and second shift but when you enter times for third shift it goes all whacky with the outcome.

View 10 Replies
View Related
Nov 30, 2012

I thought I had everything worked out with this timesheet but I've discovered one more problem.

Weekly Timesheet.xlsx

The total overtime hours needs to show that anything over 40 hours in the Total Regular Hours cell is overtime. And it also needs to show only up to 40 hours in the Total Regular Hours cell.

View 8 Replies
View Related
May 31, 2014

Im doing a spreed sheet to calculate employees hours. I have the employees names in column R and their hours in column S. example R5 = Mike S5 = 8. I need to search column R for all the mike's and total his hours, then move to the next employee and so on... I have already sorted the employees names so that all the names and hours correspond and starting in column R5 and S5 until the proceeding row is blank and then paste the results in column B5 (employee name) and D5(total hours)

View 4 Replies
View Related
Mar 29, 2012

I am trying to calculate when data is out of hours based on it being before 08:00 and after 16:30, plus also weekends.

I have used the following formula to calculate the day of the week.

=TEXT(WEEKDAY(AE2), "dddd")

I have this in a separate column.

This is how my sheet looks.

Actual Start TimeOut of HoursActual Start DateDay of Week

14:1525/12/2010Saturday11:0028/12/2010Tuesday22:3028/12/2010Tuesday

13:3029/12/2010Wednesday09:4030/12/2010Thursday13:0002/01/2011Sunday

09:3806/01/2011Thursday08:0507/01/2011Friday12:0009/01/2011Sunday

11:1010/01/2011Monday08:1512/01/2011Wednesday10:1113/01/2011Thursday

11:1514/01/2011Friday15:2815/01/2011Saturday10:4016/01/2011Sunday

16:3028/12/2010Tuesday13:0220/01/2011Thursday13:0624/01/2011Monday

15:0827/01/2011Thursday17:4029/01/2011Saturday

The out of hours column is where I figure I need an IF statement but not sure which way to approach it best.

View 2 Replies
View Related
Aug 1, 2014

I am looking for a formula that counts from each particular month

The main List has the following

Column C has all dates

Column D has hours worked

Column E has engineers name

The Second List is broke down into months and hours

Column I Has month ie I4=Jan 14, I5 = Feb 14 etc

Column J I need to have a total taken from column D from the month in column I

View 8 Replies
View Related
Jan 15, 2009

I'm trying to calculate the hours worked for both my day shift and my night shift.

Day shift (thanks to search ) I have managed to figure out and worked quite well.

=ROUND((E7-D7)*96,0)/4

It totals adds up the time and converts it into a decimal of hours worked.

For example Joes starts at 1100 and finishes at 1330 it returns a total of 2.5 hours worked.

However I strike a problem with nightshift.

They start in the late afternnon and work thoguh into the am.

I have used the same formula but it doesn't seem to work:

=ROUND((K7-L7)*96,0)/4

I assume because once the clock strikes 12 it's a new day and it can't work out the maths.

Lets use the example form about but make it pm.

Joe starts at 2300 and finishes at 0130 it should give me a total of 2.5 hours instead it gives me 21.5 hours

View 9 Replies
View Related