Calculate Pay For Shift Work With Different Rates Based On Shift Hours

Apr 11, 2008

a person works for certain hours and get paid according to the hours worked either by day or by night or a mix of both. Day payment is $8 when worked between 08:00 and 19:59 , night payment is $12 when worked between 20:00 and 07:59. The excel cell are formatted as datetime with yyyy-mm-dd hh:mm , the function works fine in getting the time information and checking whether the whole work is all day or all night , yet the if-then-else statements for calculation seems to be wrong!!

examples:

start = 2008-01-01 09:15 , end = 2008-01-01 11:40 , all day as it is between 08:00 and 20:00 and cost = 8/hr = 19.333

start = 2008-01-03 21:05 , end = 2008-01-04 02:05 , all night as it is between 20:00 and 08:00 and cost = 12/hr = 60.000

start = 2008-02-02 19:00 , end = 2008-02-02 20:05 , cost = 9.000 as 1 hour day = 8.000 plus 5minutes night = 1.000

Function prod(st As Date, en As Date) As Double
Dim shour As Integer
Dim smin As Integer
Dim ehour As Integer
Dim emin As Integer
Dim stod As String
Dim etod As String
pday = 8
pnight = 12
shour = Hour(st)
smin = Minute(st) + shour * 60
If (shour >= 8 & shour < 20) Then
stod = "day"
Else
stod = "night"
End If
ehour = Hour(en)
emin = Minute(en) + ehour * 60
If (ehour >= 8 & ehour < 20) Then.................

View 8 Replies


ADVERTISEMENT

Lookup Wage Calculations (calculate Pay Per Shift Dependant On The Type Of Shift)

Dec 1, 2009

I have the basics set up, but need to work out how to make it calculate my pay per shift dependant on the type of shift i have worked.

I have attached a screen shot of the current page,

In it i have currently used validation drop boxes for the location and worked columns with tables just to one side of the sheet.

The shift pay is the column i am having trouble with.

I would like it to change dependant on what is selected in the 'worked' column.
For most things it should just display basic plus holiday, however if supervisor is selcted in the work column, it should display basic plus holiday plus supervisor.

View 3 Replies View Related

How To Find Out The Number Of Hours Of Minutes Work Per Shift

Feb 3, 2014

I would like to find out a way to work out the number of minutes worked during particular shifts for weekdays. Basically I have two columns, one for start time, and one for end time. They are formatted like dd/mm/yyyy hh:mm. So they have the date in there as well.

I would like a formula that would look at a range say A1-A11 and work out what shift it is and then output number of hours worked per shift. Day shift would start at 8am and finish 5pm, Twilight shift would start at 5pm and finish at 9:30pm, night shift would start at 9:30pm and finish at 8am the next day. So I would need it to check for example the start and end times (and dates) and then output 3 rows that show the total minutes worked.

There will be multiple days so it would need to say for example Monday Day, Twi, Night, Tuesday Day, Twi, Nights etc. Up to Friday Day shift because we don't work Friday Twilight or Nights, and we don't work Weekends.

Basically there is a list of jobs completed with Start Time and End Time for each and I also have a column that works out the number of minutes worked on that job. So the formula would need to look at many rows.

View 7 Replies View Related

Calculate The Number Of Hours In A Shift After Midnight

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

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

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

Calculating Hours Worked For 3rd Shift

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

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

Show & Chart Shift Work Patterns

Feb 27, 2009

Split from How To Set Up A Spreadsheet The Right Way

Taking onboard what you suggested I have "rethought" the layout and it is now in a single table format. What had stopped me doing this previously was the fact that I was not able to show 7 days a week for 48 weeks in columns. However thanks to the transpose function all the data is now more user friendly (See Attached Workbook)

You mention the data should be quite easy to manipulate from here, any ideas as I am struggling with the concept of how to display the data in a time series. I assume that it will involve some form of lookup function referenced to the table of times, but thats as far as i can get.

View 3 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

Operational Model - Shift Start Time Plus Amount Of Hours Worked In One Cell.

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

How To Calculate A Number Of Calls Logged In A Shift

Jan 7, 2014

calculating the number of calls logged in a shift, based on a 3 shift system in a day. shift 1 from 08h00 to 16h00, shift 2 16h00 to 24h00, and shift 3 00h00 to 08h00. each shift receives a number of calls based on the time the call was submitted.

View 2 Replies View Related

How To Use Vlookup To Calculate The Number Of Shift Per Week For Each Agent

Dec 19, 2013

I would like to use vlookup to calculate the number of shift per week for each agent

View 10 Replies View Related

Start Shift And An End Shift

Nov 18, 2009

I have a Start Shift and an End Shift time,

Start Shift = 2009/11/10 09:27:06 (GMT-6:0)
End Shift Time= 2009/11/10 15:13:03 (GMT-6:0)
eg. Total Time = 5.3 hrs

I would like to take if from this format, and calculate the total time difference. Sometimes the GMT codes may be -5:0 if that means anything. For the cell "Total Time" I only need it to have a decimal format.

View 12 Replies View Related

Shift Range Of Cells To Calculate Formula By Fixed Number

Mar 10, 2009

How can I shift the range of cells I want to calculate an average from? For example I want to get the average of cells A1 to A10, so =AVERAGE(A1:A10) And next I want to get the average of cells A11 to A20, so =AVERAGE(A11:A20). But I don't want to manually change the data or delete rows all the time.Is it possible to do something like: =average(A1+10:A10+10)??

View 4 Replies View Related

Date And Time Based On Shift In Cell

Jan 8, 2009

If I use =now() in a cell it will enter the current date and time. For shift workers, this does not work.

I'm tring to figure out a formula that will only change the date at 6:00am every day. This way a person working the night shift will not see a change in the date on his sheet at all, only the day worker.

View 5 Replies View Related

Shift Cells Left Based On Text Value

Oct 20, 2009

I need assistance in shifting cells to left based on three (3) specific text values in column B. There are tons of data and extra lines and stuff but consistently these three (3) text values are consistently not aligned and I simply need to shift entire row 1 space to the left. I can do the long and tedious process of going through them all but is there a macro which I can play that does it instantly...

View 9 Replies View Related

Calculate All A Rates Seperate From B Rates And C Rates

Aug 15, 2007

formula is needed to get excel to calculate all A rates seperate from B rates and C rates example 10 A rates @ 50.00 9 B rates @ 40.00 and 6 C rates @ 30.00 so although the rates could be mixed up (not following in any particular order the result which I would like to appear on a separate spreadsheet would be A = 500.00 B = 405.00 C = 180.00 then to get them to total up = £1085.00

A 50.00
B 40.00 then separate sheet with answer a 100.00 b 40.00 c 60.00
A 50.00
C 30.00
C 30.00

View 9 Replies View Related

Delete And Shift Cells Based On Cell Values

May 23, 2007

I have a spread sheet that has RX codes as field headers and ones or zeros as values. I want to find all cells which contain "0" and delete those cells while shifting the remaining cells left. The range of cells is aj1:dr17365 and the sheet name is "May 07 Rx HCCs"

View 8 Replies View Related

Calculating Overtime And Regular Time Based On Shift Schedule?

Nov 19, 2012

I am trying to calculate over time based on shift time.

For example: Regular shifts are between 7:00 AM to 3:00 PM (Monday thru Friday). Anything between those hours and on those days should be considered REGULAR TIME. Anything between 12:00 AM to 6:59 AM or between 3:01 PM to 11:59 PM should be calculated as OVERTIME.

Anything on Saturday or Sunday should be calculated as OVERTIME as well.

View 14 Replies View Related

Formula For Total Cost Based On List Of Hours For Each Employee Times A Table Of Rates

Jun 10, 2014

Looking for a formula for total cost based on a list of hours for each employee and a table of rates for each employee.

Please see attached file : Formula.xlsx‎

View 1 Replies View Related

Calculate Each Employee Work Hours

Apr 11, 2013

Just like if I put the employee's number and work time for each day,

The excel will accumulate the hours automatically somewhere in the sheet. (I don't want the total hour cover each day's work time)

Is there anyway I can do it?

View 5 Replies View Related

Calculate Employees Work Hours For Overtime?

Apr 15, 2014

I have to calculate employees work hours for overtime.

in the timesheets:

A B C D E
1 ID Date Code Hours PayMethod
2 A123 4/14/14 TRN 20:00 Regular
3 A123 4/14/14 TTT 15:00 Regular
4 A123 4/14/14 TRN 13:00 <----- total for cell D2,D3, and D4 is more than 40

A B C D E
1 ID Date Code Hours PayMethod
2 A123 4/14/14 TRN 20:00 Regular
3 A123 4/14/14 TTT 15:00 Regular
4 A123 4/14/14 TRN 5:00 Regular <----- to make 40
5 A123 4/14/14 TRT 8:00 Overtime <----- 13-5=8, so i have to write down 8 here for overtime

How can I do this?

I want to make a command button for macro to perform this.

View 2 Replies View Related

Calculate Difference Between Dates In Work Hours With Lunch Period

Mar 8, 2013

I need also to calculate difference between dates(dd-mm-aaaa hh:mm) in workhours ( hh:mm):

The work period is 9-18 with lunch interval 13-14 The startdate and end date could be out of the work hours and i can't include the extra hours. I can have several days (workdays) at the difference, but i should maintain the format hh:mm.

Ex1:
Startdate 05-03-2013 18:34 ( date to calculation should be 05-03-2013 18:00)
end date 06-03-2013 10:30
Time Difference 1:30 ( from 9 to 10:30 of 06-03-2013 )
will be equal to:
Startdate 06-03-2013 8:34 ( date to calculation sould be 06-03-2013 9:00 )
end date 06-03-2013 10:30
Time Difference 1:30 ( from 9 to 10:30 of 06-03-2013 )

Ex2:
Startdate 06-03-2013 12:01
End date 06-03-2013 14:28
Time Difference 01:29

View 3 Replies View Related

How To Calculate Work Hours From Only A Start And Finish Date And Time

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

How To Get The Starting And End Shift

Apr 4, 2014

I have the problem to get the starting and the ending time in a timetable work sheet, adding the starting hour in the first cell and in the second the ending.

View 5 Replies View Related

Shift Key Down Arrow

Apr 22, 2006

1:
Does a code exist to do Shift Key_Arrow Right, Arrow Down and then select that range to Copy?

I know the arrows codes but was told by someone no code can ever exist for a Shift Key.

I need to select a range after a "Search For" but the Range is not determined by the actual Cell ranges.

My Code for Arrow keys are:

'Selection.Offset(0, 1).Select '*Right*
'Selection.Offset(0, -1).Select '*Left*
'Selection.Offset(-1, 0).Select '*Up*
'Selection.Offset(1, 0).Select '*Down*
'Selection.Offset(3, 0).Select '*Down * 3 Cells

2:
What is the macro code to insert more than 1 row ?

The code I use to insert 1 Row is :

Selection.EntireRow.Insert

Sometimes I need to insert 25 rows.

View 9 Replies View Related

Weekend Shift Patterns

Jan 19, 2010

I'm trying to divide the hours between 2 given times in blocks:

i.e.: monday 0600 - 1400 = 8 hrs

2400-0700 [mon - fri] = 1
0700-1800 [mon - fri] = 7
1800-2400 [mon - fri] = 0

0000-2400 [weekend]

I got the first 3 blocks working but got stuck with the 4th one.

It should count only those hours between saturday morning 0000 and sunday night 2400 if it concerns a weekend day. and actually these hours should not be calculated in the first 3 time blocks.

View 12 Replies View Related

How To Shift A SUM Row Down When The Above Cell Is Filled

Aug 16, 2013

I've attached a simple spread which gets across the main problem. i need the totals row (currently row 7) to drop down a cell each time the data base above has an extra row added to it its pretty much a cosmetic issue but it can be useful on hugely long spreads.

View 13 Replies View Related

Shift Colors To The Left

Jan 2, 2009

I need to change to shift the colors to the left instead of the right.

View 3 Replies View Related







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