# Calculating Hours With Midnight As A Start Time

Oct 1, 2009
I’m working on a timesheet and I need to separate the hours worked that are before 6 am from all the others. For example if someone works 1:00 am to 8:00 am I need a cell to populated with 5 representing the hours worked before 6 am. The formula below works fine except when the start time is 12:00 am. I am also having trouble if the start time is before midnight like in a 11pm to 5 am shift.

=(IF(AND(S3<=$AG$97,S3>=$AG$73),(($AG$97-S3))*24,0))

S3 is the start time

AG97 is 6:00 am

AG73 is 12:00 am

View 4 Replies
ADVERTISEMENT
Dec 26, 2013

We have a person who work in 24/7 support. One person work passive 24 hour, but it 24 hours are divided in to next shifts: normal 06-18, over hours 18-22, night hours 22-06.So if we have some one who is supporting client say from 17h till 23h, we have next results:

Name Start time End Time 06:00 - 18:00 18:00 - 22:00 22:00 - 06:00

John 17:00 23:00 1:00 4:00 1:00

Is it possible to in time range enter formula who subtracted end time from start time, but taking into account 24 hours?

View 9 Replies
View Related
Dec 14, 2013

I'm trying to calculate the available man hours I have for my shift/team. I have got the basic formula to deduct the time, and lost time for breaks ok, but when the shift end time crosses midnight the formula returns a "value" error message. i.e. start time = 18:00. End time = 24:00 breaks = 15 mins gives me a formula like this =TEXT(O17-N17-P17,"h:mm") and a result of 5:45

How I can make this formula work so it can calculate the variance even though the shift ends at 02:00am the following morning?

View 5 Replies
View Related
May 5, 2006

I have a user form with textBox1 = start time (entered as "[h]:mm") and text Box2 = finish time (entered as "[h]:mm"). I would like textBox3 to display the difference between the start time and finish time as a general number!

For example

Start time: 21:00

Finish time: 06:30

Hours worked: 9.50

Start time: 12:30

Finish time: 23:00

Hours worked: 10.50

View 9 Replies
View Related
Feb 20, 2009

I'm battling to come up with the formula to calculate time and a half and double time. My boss wants me to show the overtime worked AFTER 40 hours has been worked. I have attached a copy of my spreadsheet.

View 4 Replies
View Related
Mar 25, 2014

I am working on an excel spreadsheet for work and I have to show a chart that shows the time of day a space is in use. Right now I am having to mark all of these by hand which takes me forever because I have a couple thousand lines of information.

I need to mark the hours in use based off the start and finish time.

For Example:

1) If the start time was 7:00 and the end time was 10:45 then the markers would only mark 7am and 10am

2) If the start time was 7:15 and the end time was 10:00 then the markers would only mark 7am and 9am

3) If the start time was 7:30 and the end time was 10:30 then the markers would only mark 7am and 10am

4) If the start time was 7:45 and the end time was 10:15 then the markers would only mark 8am and 9am

I was given the formula and it works to count the whole hour but now I need the formula tweaked and I don't know how...I need the formula to account for quarterly hours...and I don't know how to fix it.

Attached is an example of the spreadsheet of what I currently have and of what I need. Book1.xlsx

View 2 Replies
View Related
Feb 27, 2010

Is it possible to calculate hours if both the start and end time are in the same cell. Unfortunatly the developers of our scheduling program developed it so when you export the schedule to excel it shows Greg in A1 and 3:00pm-9:00pm in A2. I would like to have excel calculate the 6 hours so I can use it to auto generate another spread sheet I am making.

View 10 Replies
View Related
Feb 28, 2013

I can calculate total hours when a user enters a start date/time and a finish date/time. The kick is I only want to include hours from 2:00 PM to 12:00 AM (10 hour period). So assuming all the start and end times will be in this range, how can i calculate work hours over multiple days? For example: Start date/time = 2/26/13 2:30 PM and end date/time = 2/28/13 10:30 PM. I want my calculated hours to show 28 hours.

View 1 Replies
View Related
May 13, 2014

I have various start times for employees.

I need to find out the total movement in start times per week for the employees.

I have used MIN and MAX to find the earliest and latest start times, and then a subtraction to find the difference.

This works brilliantly until my employees who start around midnight.

If they have started before and after midnight, it takes midnight as the earliest time and 23:00 as the latest, giving a difference of 23 hours instead of 1 hour.

i.e.

Start Times

23:00, 23:15, 00:15, 00:30

Range of Movement

00:30 - 23:00 = 01:30

I've tried, =$B$9+($C$4>$B$9)-$C$4 but this does not work when the MIN reads 00:00.

View 2 Replies
View Related
Oct 15, 2007

I have a timesheet where user updates start and end time for various tasks.

I have placed a time capture button in the excel sheet (which is simply a macro saying =now() function)

The user clicks it before starting and after finishing the task. The start and end times are captured in adjacent cells.

If the user starts the work, and goes on a lunch break say for 20 min, comes back finishes the task and captures end time, the time difference will not consider break time which is non productive.

How can I incorporate something like 'pause' option so that before he goes for lunch he can temporarily pause the time.

View 9 Replies
View Related
Feb 12, 2014

I am trying to come up with a formula that calculates total time someone has worked in a day. The scenario is an individual will work at a home and start working with an individual. Their start/end times look like this in a pivot:

Min Start Max Start Min End Max End

Location A+Counselor A 8:56 AM4:01 PM 1:11 PM 7:00 PM

Location A+Counselor B 12:00 AM 8:00 PM 6:00 AM 11:59 PM

Location B:Counselor C 7:00 AM 12:00 PM 2:00 PM 4:00 PM

Location C+Counselor D 8:00 AM 8:00 AM 4:00 PM 4:00 PM

Some people work split shifts while others work a straight shift. The formula I created was this:

=IF(OR(B9=C9,E9=D9,D9=C9),E9-B9,IF(D9>C9,((E9-D9)+(C9-B9)),IF(C9>D9,((D9-B9)+E9-C9),"New Formula Needed")))*24

(I use a pivot table to show max min for start and end times)

This works great except for the individuals that have multiple punches during the same time frame. The one scenario I am having trouble solving for is when someone punches in more than once during their shift displaying. This occurs when a counselor starts a shift working with one person but then adds another person mid shift. An example of this could be:

Location A+Counselor E Min Start Max Start Min End Max End

Consumer 1 1:00 PM 1:00 PM 8:30 PM 8:30 PM Total Time: 7.5

Consumer 2 12:00 PM 12:00 PM 2:35 PM 2:35 Pm Total Time: 2.6

Pivot says that they worked a total of 10.1 because it is grabbing the max and mins and calculating. The actual total time worked is 8.5 hours in reality.

The raw data comes in like so:

Location Counselor Consumer Start Time End Time

A A A 1:00 PM 8:30 PM

A A B 12:00 PM 2:35 PM

A A C 12:00 PM 5:00 PM

Is this solvable with a formula?

View 1 Replies
View Related
Jan 10, 2014

I would like to get formula which can show how many hours are after midnight from two times, example:

PHP Code:Â

clockÂ inÂ >Â clockÂ outÂ =Â hoursÂ afterÂ midnight

23:00Â ->Â 1:00Â =Â 1:00

01:15Â ->Â 4:15Â =Â 3:00Â

Please see this example: [URL] ......

View 12 Replies
View Related
Jul 24, 2009

I can't figure out how to do a proper formula for calculating time. For instance I have one column that says "Time In", the next is "Time Out" and the other is "Lunch Time". My calculation needs to be this:

Find the total hours between the Time In and Time Out and then Minus the lunch time to get total hours worked for the day. The only way I can get this to work is using 24 Hour time format. Is there another way?

View 3 Replies
View Related
Feb 19, 2009

Is it possible that a cell contains both numeric and alphanumeric data and to do calculations on that?

For example: if a cell conatain the value "10a" or "8.5b" etc. Would it be possible to have a column that gives me the hours worked (the numeric value in the cell) and a line that gives me the amount of people that are working on shift "a" (the alphanumeric value in the cell).

Is this at all possible? Or does that require VBA/Macros and stuff (in which case this is posted in the wrong part of the forum )

View 5 Replies
View Related
Jan 11, 2010

how would I calculate the number of hours in a shift after midnight. What I want to say is that the number of hours after midnight on a friday shift to be taken off from friday total hours and added to a saturday shift.

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
Jun 27, 2009

I am using Microsoft Excel 2003. My question is about calculating time. Let's say my answer, after calculating time, is 2 hours and 1 minute (2:01) and that answer is placed in cell A1. How would I be able to have only the 2 hours (2:00) carry over to cell A2 without the minutes showing?

I have tried =MOD(A1,24/24) and =TIME(0,HOUR(A1),0). I have also tried to right click the cell, went to Format Cell, went to the Numbers tab and tried the different options in the Time and Customs category, but I can't seem to get 2:01 to appear as 2:00 only.

View 4 Replies
View Related
Dec 22, 2009

I want to find the hours worked in day shift and night shift. Day shift is from 06:30 to 18:30 and night shift is from 18:30 to 06:30. Listed below is an example of my date/times.

Note that the night shift carries over to the next day.

Start/Finish

21/12/09 07:00 to21/12/09 11:09

21/12/09 07:46 to21/12/09 14:41

21/12/09 12:13 to21/12/09 22:08

21/12/09 16:40 to21/12/09 18:05

21/12/09 19:40 to22/12/09 02:34

21/12/09 23:20 to22/12/09 04:39

22/12/09 02:06 to22/12/09 06:15

View 9 Replies
View Related
Aug 6, 2007

If a Rescue Officer is called out at 23:00 and is back at 04:00, this should equate to 5 hours worked.

It seems that if my times are all on one side or the other of a 24 hour cycle, my calculation work fine but it it breaks across the 24 hour (as above, it doesn't work.

A2=04:00

A1=23:00

Using (A2-A1)*24 give me -19.00 hours

My SS macro has a line:

s = (wks.Cells(c, 3) - wks.Cells(c, 2)) * 24 'calculates the duration of time worked

Is there any way of getting excel to calculate an elapsed time in hours when the start and end times roll over from one day to the next?

View 9 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
Sep 29, 2006

Instead of calculating a time difference manually I want to have a formula do it for me. What I want to achieve goes as followed:

08/06/2006 04:33

12/06/2006 01:05

Time difference is 92:32 [hh:mm]

another example:

09/06/2006 12:42

12/06/2006 11:35

Time difference is 70:53 [hh:mm]

So instead of getting 92:32 and 70:53 by calculating it myself I would like to have a formula do it for me. Otherwise I'll have to invest a lot of time to get the information I need.

View 9 Replies
View Related
Jun 17, 2009

Need to calculate the mean hours by the day of the week. We only want to know the mean if it occured after a certain time and if it was on the same date then that would be totalled for that particular week day. I have included a small sample of the file I am working on.

View 4 Replies
View Related
Jun 18, 2012

I am trying to work out the response times to an event that my staff attend ( such as a fire alarm)

In C1 will be the time the event was called in, 23:55

In E1 will be the arrival time, 23:59

In F1 I want to show the time taken to arrive on site (response time)

This seems straightforward until the arrival time goes into the next day, such as 00:05 and this is when I have the problem

To make it more complicated, sometimes there is no need for an arrival time to be entered for some events ,with the end user leaving it blank or putting "NA" or "na" etc into the cell

I have tried the below formula which works to a point but leave me with an ######### error if the time is after midnight

=IF(E1="NA",0,IF(E1="n/a",0,E1-C1))

View 9 Replies
View Related
Feb 6, 2009

I Have 20:00-04:00 as text in a cell, what i need is to take the 04:00 and show only if its after 00:00 and before 07:00 and show it as time value. This is where I'm up to so far but i don't know how to ask it for > 00:00 and < 07:00.

View 4 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
May 14, 2009

I am creating a timesheet using excel 2003 users enter their shift start/finish time and a break start/finish time. Emplyee's can work night shifts (ie across midnight).

There are penalty rates which apply at different times. I need to be able to work out the amount of worked time that fits into a certain time period. eg. 10pm-7.30am, 7.30am-10pm.

I have a solution based on A clever formula from Daniel Maher that will calculate time within a period. But it doesn't work when the shift goes over two days.

I have attached a spreadsheet to help show the problem .......

View 12 Replies
View Related
Mar 6, 2008

I have time in the column C and its Description in column D. i want to calculate total number of hours from "9:26:00 PM" which is in C16 to "3:23:14 PM" which is in C1. from this total hours i want to deduct the time that agent was not available. for eg an Agent is not available from "3:23:14 PM" To "3:23:53 PM" then again from "3:26:57 PM" to "3:27:13 PM" Then again from "3:42:35 PM" to "3:44:10 PM" and so on.......thus i can find out the productivity time lost from the total time an agent was logged in. I have attached the Sheet so that it will be simpler to understand.

View 7 Replies
View Related
Oct 10, 2009

When I am converting a time from Hours/Minutes to Hours/Tenths, Excel is not converting it consitantely. EXAMPLE: 1:15 = 1.25. When I format the cell to present only one place past the decimal point, sometimes the cell will round up to 1.3, and other times it will round down to 1.2. What am I missing?

View 3 Replies
View Related
Dec 19, 2008

I have a worksheet which contains START TIME in column A, then TIME USAGE in column B and END TIME in column C. User enters start time, followed by the number of time usage in minutes, how could i possibly display the end time automatically in this scenario? how do you add the entered time usage to the start time to display the end time? Say if I enter 1:00 AM at start time and 00:15 minutes on time usage, how can 1:15 AM be displayed on the end time automatically?

View 2 Replies
View Related
Jan 29, 2010

Format Time Cell For Greater Than 24 Hours: Hours & Minutes Only .....

View 9 Replies
View Related