NIGHT Working Hours Macro Calculation

Sep 29, 2012

I would like to write a macro that can return the number of hours worked during the night shift.

In this case, the night shift starts at 21:00pm and ends at 6:am next day.

The column "I2" returns the number of hours worked during the day - formula ((F3-C3+(F3<C3))-(E3-D3+(E3<C3)))*24);
The column "J2" gives the overtime hours taking into account the number of regular hours allowed - IF(OR(I3="",I3<6),"",IF(I3>H3,"",I3-H3));
Cells "C3:F13" allows users to set up (using a data validation list) starting time, lunch in, lunch out, end time ( columns C and D AM; E and F PM);

My question is: How can I calculate night hours in column K, without having conflits with numbers returned in column I (worked hours)? Is it possible to write a macro for this?

Below please see the table:

B
C
D
E
F
G
H
I
J
K

1
Name
Start Time
Lunch In
Lunch Out
End time
BREAK?
Regular hours
Worked Hours
Overtime
Night Shift

[Code] ......

View 1 Replies


ADVERTISEMENT

Night Vs Day Working Hours

Jan 31, 2008

I have a spreadsheet that calculates the total working hours of our warehouse staff, overtime, etc... using some good advice that has been published here before.

Cell C1 : starting hour
Cell D1 : ending hour

The hours are filled in, using 1904 system, without date as 08:00, 12:00, 21:00, etc... total hours is calculated as follows:
=(D1-C1+(D1

View 9 Replies View Related

Separate Simple Hours / Holiday Hours And Night Hours

Jun 27, 2014

As you can see on the example i have TEST hours.xlsx, I have a file that calculate the money every doctor should take based on the working hours.

Nights, holidays and holiday night have different price/hour.

The excel is working fine…but now I have to make a formula that separates automatically based on the beginning time and the end time of the doctor’s shift the day hours tha night hours, the holiday hours and the holiday nights hours.
In the excel I have fill the hours Manuscript, I need a formula to do that for me…

On the yellow cell I have try to find out the formula for the holiday hours but because the day is calculated due to a formula it is not working!!!

Simple Example: A doctor Is working from 21:00- 8:00 (next morning Sunday) he should have 1 simple hour (21:00-22:00) 9 night hours (22:00-6:00) and 2 holiday hours (6:00-8:00,)

View 1 Replies View Related

Looking For A Formula That Can Separate Day Shift Hours From Night Hours?

Aug 6, 2013

I have got a formula that can separate day shift hours from night hours, in this case night begins at 7pm to 7am, however the problem is after 12am we get into negative numbers, what formula would fix this and can be combined with the formulas below?

E10 = 19:00 or start of night time hours
B3 = start time
C3 = end time
D3 = day hours workeds =24*IF(E10

View 1 Replies View Related

Timesheets With Day And Night Hours

Jan 26, 2009

I have a timesheet that the manager fill in every night for the workers, simply it has a start time and end time and it calculates the hours worked (all times are entered in quarters of an hour ie 9.25 for 9:15 etc). At the moment i can work out if a person is on day or night with:

View 2 Replies View Related

Calculating Night Shift Hours

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

Excel 2007 :: Separate Night From Day Hours

Mar 12, 2013

(Excel 2007). I want to separate night hours 22:00-6:00 fom day hours 6:00-22:00 in my work plan.

I am using all kind of shifts for example

8:00-23:00 = 14 day hours 1 night hour
21:00-7:00= 2 day hours 8 night hours.
16:00-2:00=6 day hours 2 night hours

View 6 Replies View Related

Calculating Day And Night Shift Hours From Date / Time

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

Calculating Start / End Time Between Night Shifts 24 Hours?

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

Macro To Update Sum Of Working Hours For List Of Employees From

Jan 30, 2013

Need VBA macro to read and sum data from multiple worksheets

The “summary” worksheet contains list of all employees. I need to update the total number of hours for each employee by scanning all worksheets in the workbook as follows:

Once I click on a "update" button, I need to scan all worksheets (I have one worksheet for each week) which contains the total number of hours for employees by week. I need to calculate and add the total number of working hours for each employee then move to the next worksheet and so on ..

Once all worksheets are all scanned, the final total of working hours get posted in front of the employee name in the assigned field.. I need to do this for all employees. I also need a macro to create a new worksheet.. I attached an example with little description inside .. Labor Detail Job to Date-2.xlsx

View 5 Replies View Related

Difference Between Dates And Times In Days , Hours Mins ( Working Hours )

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

How To Calculate Hours Between 2 Or 3 Days Exclude Non-Working Hours

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

Popup Macro, New To Vba, Due Monday Night

Aug 17, 2008

What I was told to do was to create an Excel Macro that would record 7 fields via pop-up box. I had no problem with this (see code below) but now I would like to run that same macro for 10 or more students. I would like to have the same data collected (first name, last, email, address, phone, etc) for each student, but have excel compile a list of the recorded data for each individual. Ideally John, Mary, Will, Greg, and Matt would fill out the form and their responses would appear as:

First Last Email Phone Other
John Doe johndoe@yahoo.com 5551245 etc etc
Mary Jones mjones@gmail.com 5551227 etc etc
Next Student student@google.com 5551212 etc etc


The macro is started by clicking on a button to register for a free giveaway


Originally Posted by code

Sub RetisterToWin()
Dim FirstName As String
Dim LastName As String
Dim Email As String
Dim MailingAddress As String
Dim PhoneNumber As String
Dim Major As String.............

View 9 Replies View Related

Calculation Hours Worked?

Jul 3, 2014

I'm trying to make a way to track if I've worked more or less than the 39 hours/week I'm paid for. At the end of each week, I have a total of how many hours and minutes that I've worked .

On column C I have what I should work.

On column D I have what I did actually work

On column E I'd like to convert automatically Columd D to minutes for calculation purposes

Column F to know if I worked more or less than what I should've subtracting C and E

Column G to have an ongoing tally to know if I need to work more or less

Column H and I could probably be the same thing. Ideally what I'd like is to have a formula pull the information from column G and put it into workdays, hours, and minutes with 1 workday being 7 hours and 48 minutes.

Since I tend to work too much, I'd like to know if I've worked 3 days too much during 1 month, I can take 3 days off the next month to get everything zeroed back to where I don't owe the company anything and vice versa.

View 6 Replies View Related

Total Hours Calculation

Oct 22, 2008

I need to calculate below hours
07:50
07:50
07:50
07:50
07:50

The answer suppors to be 37:30 Hours but its showing total diffrent value. i used sum(E1:E5) Excel formula, but its not working.

View 10 Replies View Related

Hours Worked Calculation ....

Dec 2, 2008

I am trying to create a spreadsheet that auto calculates my emp. time.

However I do not want to use military time. I can get it to work by =a2-a1 but only if it is 8.5 and 17.5. Any ideas how I can do clock in 8:30 clock out 4:30 = 8 hours?

View 7 Replies View Related

Calculation Of Business Hours

Mar 31, 2009

I am using the following formula to calculate business hours.

=(NETWORKDAYS(R9,T9)-1)*("17:00"-"08:00")+IF(NETWORKDAYS(R9,T9),MEDIAN(MOD(T9,1),"17:00","08:00"),"17:00")-MEDIAN(NETWORKDAYS(R9,T9)*MOD(R9,1),"17:00","08:00")

The business hours considered here is 8AM - 5PM, Start time in R9 and End time in T9. Now the problem is its calculating the correct value when the days are same, for e.g.,

Condition 1

When I am giving "31 March 2009 15:00:00" as start time (R9) and "31 March 2009 23:00:00" in end time (T9), I am getting the correct value. i.e, "2:00:00"

Condition 2

While giving "31 March 2009 16:00:00" as start time and "01 April 2009 09:00:00" as end time I am getting a value of "1:00:00", actually the value should be "3:00:00".

View 5 Replies View Related

Shift Hours Calculation

Jan 22, 2010

I have enclosed a sheet with the dilemma i currently face.

Ive tried multiple variations on a solution none of which have been 100% accurate.

Basically the work day is split into 3 shifts :

Days ( 06:00 - 14:00 )
Afters (14:00 - 22:00 )
Nights ( 22:00 - 06:00 )

I have a report which tells me the total time the colleague will be getting paid for and there
clock in and out times.

I need to determine which shift bracket there hours fall into based on the time bands.

Ie :

David worked 8 hours , started at 10:00 finished at 18:10 , so thats 4 hours recorded in days and 4 in afters since he worked across both shifts. the 10 minutes is not being paid so it doesn't need to be recorded.

the sheet should explain things better.

View 10 Replies View Related

Hours To Days Calculation?

Feb 5, 2013

I am trying to figure out the calculation of cycle time from my worksheet. I have 1419 hrs equals 59 days 03 hrs.

If A2=1419

I tried this formula

=INT(A2/24)&" days " &MOD(A2,24)&" hrs"

Which gave me an answer of 59 days 3 hrs.

I was wondering how they got "03 hrs"?

View 9 Replies View Related

Flying-Hours Calculation

Jan 22, 2010

One of my administrative duties is to keep a record of all of the flying-hours completed by a group of twenty pilots. I've constructed a spreadsheet and entered all of their flying records into it.

At the head of each column I have the date, aircraft type, registration number, pilot name, co-pilot name, other crew name, day flying, night flying, solo, dual, total captain hours, etc.

Whilst that I've completed the easy part of this project and that I can transfer each individual pilots flying-hours into his own seperate logbook (by filtering and copy/pasting into another worksheet), there are three other reports that I'm required to provide:

1. To be able to list the number of flying-hours completed during the previous 7 days (for each individual pilot).

2. To be able to list the number of flying-hours completed during the previous 30 days (for each individual pilot).

3. To be able to list the number of flying-hours completed during the previous 90 days (for each individual pilot).

View 9 Replies View Related

Removing Non Work Hours From Calculation

Mar 9, 2006

I am trying to work out the minutes elapsed for a call monitoring
system. The hours monitored are between 05:30 and 19:00 - so if a call
gets logged outside of these hours then the minutes calculated will be
calculated from 05:30 the same day if logged on or after midnight or
05:30 the next day if logged before midnight (ie the next 05:30).

View 22 Replies View Related

CALCULATION TAKING BUSINESS HOURS INTO CONSIDERATION

Feb 18, 2004

I need to do an hour calculation on two cells which have dates and times in both. the first cell is a call that we get from a customer and the second is the date and time in which that call is closed by us...meaning that call is complete.

I need to calculate how much time in hours did it take us to complete that call for the customer. I need this calculation to respect our business hours of Monday to Friday 8am-5pm and closed on Saturdays and Sundays.

here are some examples.

from - 2/12/2004 13:00 (thursday)
to - 2/13/2004 9:00 (friday)

answer should be 5 hours

from - 2/13/2004 14:00 (friday)
to - 2/16/2004 10:00 (monday)

answer should be 5 hours

View 9 Replies View Related

Calculation Of Business Hours Excluding Sundays And Holidays?

Jan 29, 2014

I want to calculate the time in hours between to dates excluding non-working hours and sundays and holidays.

My office timings: 10:00am to 05:30pm Saturday is working day. Only sundays and holidays to be excluded.

View 8 Replies View Related

Time Calculation: Calculate How Many Hours Have Elapsed Between To Entries

Jun 22, 2009

I am trying to build a spreadsheet to calculate how many hours have elapsed between to entries; start time (H10) e.g. 9:15 AM and end time (I10) e.g. 12:15 PM. The formula that I am using in the calculation cell field (J10) is (I10-H10+(I10<H10))*24. This formula works great till I wish to include in an IF statement. What I would like is if the total hours calculated with the formula (I10-H10+(I10<H10))*24 is less than 4, return 4 (hours) otherwise the value. As well if there is no start time nor end time entered then return zero.

View 3 Replies View Related

Calculation Of Hours Based On Reference (time Format)

Jan 7, 2012

For the past month now, I'm trying to calculate some work hours (night hours actually), based on a reference.

Let me show you the table:

- Column A has all of the schedules of the employees
- Column B has the numbers of hours for each schedule (all have 8.5 hours/day)
- Column C has the reference for the night hours.

Now what I'm trying to do, is to find a formula that will calculate the numbers of the night hours using the reference in Column C

Row 23 in that table has an example of what I'm looking for.

View 9 Replies View Related

Overtime Calculation For Time Worked Over 8 Hr Per Day Or Over 40 Hours Per Week?

Aug 4, 2013

My overtime pays is anything exceed over 8 hours per day or over 40 hours per week. Right now I can only calculate overtime by either over 8 hr/day or over 40 hr/ week. I need a way to combine both.

View 9 Replies View Related

Date/Time Calculation For WeekEnds/After Business Hours

Jul 23, 2007

What calculation would I enter in a results cell if I wanted to find the delta between 2 times in date format that repersent just the business hours of 8am-5pm, therefore excluding after hours and weekends.

eg.

Date 1 Date 2 Result Time
23/07/07 8:00 24/07/07 14:55 15:55

So far I can't get the caluclation that will compensate for the after hours and week ends.

View 9 Replies View Related

Sum Of Working Hours

May 29, 2014

In attached file I need doing sum where total working hours are not showing correct.

TotalingTime.xlsx‎

View 14 Replies View Related

Calculating Net Working Hours

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

Display 40 Hours In Hh:mm Not Working?

Aug 5, 2014

I am measuring total time accumulated over a week using hh:mm format. Once I pass over the 24 marker then the format changes. How can I keep this to hours only?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved