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
ADVERTISEMENT
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
View Related
Mar 3, 2013
The attached file contains data. In Worksheet 1 (and also 2 and 3) column B2 shows day, month, year, hours, minutes and seconds. I was hoping to convert this to just Hours and Minutes, but all the usual methods using Custom Format does not work. This leads me to think that its in TEXT format. How can I change Column B2 to Hours and Minutes?
View 14 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
Feb 10, 2014
Cell A1 contains 2, B1=220077:23
In C1 I created a function = (2*1000)/B1, I get error. I want the answer 2000/220077h23m = 0.009087713
View 5 Replies
View Related
Feb 12, 2007
How can I convert an ordinary number i.e. 3.45 to Hours & Minutes?
A colleague has columns of data that when summed are all wrong i.e. 8.65 instead of 9 Hours 5 minutes.
View 9 Replies
View Related
Jul 2, 2009
I'm hoping someone here might be able to help me please?
I am trying to write a function that will convert a number into days-hours-minutes. I have managed to get as far as hours-minutes using the following function.
=INT(A1/60)&"h "&ROUND(MOD(A1/60,1)*60,0)&"m"
e.g. If A1 = "7090" the result of this function will be "118h 10m".
I now need to express the result as xxxd xxxh xxxm and this is where I am stuck!
View 5 Replies
View Related
May 25, 2011
I have a spread sheet with a colum showing average time to complete a task. This is currently shown as Days:Hours:Minutes:Seconds (4:19:33:19). I meed it to be shown purely as minutes, or at least as hours and minutes.
View 4 Replies
View Related
Dec 5, 2006
I have a formula which will calculate the number of hours and minutes between two military times. I would like it to calculate the total number of minutes instead of hours and minutes. I have uploaded a small example of what i have so far.
View 3 Replies
View Related
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
Jul 4, 2006
What formula will convert 4.50 to 530 minutes ( "Decimal Time" )
another example 16.50 to 1250 minutes.
View 13 Replies
View Related
Jan 21, 2009
I'm trying to convert 3786 minutes to day:hours:minutes. So divided it by 1440 which is 2.63... but I want this displayed in the worksheet as 2 days 1 hour and 3 minutes (02:01:03), I just can't seem to get it to work and it seems quite simple... but I'm missing something.... I was trying a custom format like dd:hh:mm or [d]:hh:mm and I was also trying a convert function and =day/1440+hour +minute
View 9 Replies
View Related
Aug 22, 2006
creating a formula for converting time data that has been created in an excel spreadsheet in minutes i.e. 516 minutes which I need to turn into Hours and Minutes i.e. 08:36 I am not experienced using Formulas, apologies if this question has been posted before, I did use the search facility to look for threads, but could not find anything related
View 5 Replies
View Related
Jan 29, 2010
Format Time Cell For Greater Than 24 Hours: Hours & Minutes Only .....
View 9 Replies
View Related
Aug 30, 2007
1) The output of an excel duration is : 22.00:8.00:25.00 ( day:hour:minutes ) - excel cannot average and work with this number format
2) resolution - =(LEFT(L2,4))+MID(L2, FIND(":",L2)+1,4)/24+MID(L2, FIND(":",L2,7)+1,4)/1440 as an array and Custom Format the cell as [h]:mm - works perfectly.
Q: to be conistent, the initial reporting is dd:hh:mm and then I convert to hh:mm so that excel can process the data. How can I convert from hh:mm to dd:hh:mm so that the excel report can be consistent in presenting the data to senior management?
example attached.
View 9 Replies
View Related
Jul 4, 2007
I have a worksheet which I am trying to format as a template which includes inputting start times and end times of work and calculating how many minutes are taken to do the job. I just can seem to find the correct formula.
View 9 Replies
View Related
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
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
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
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
Dec 20, 2009
i am trying to make a employee work hour sheet so i can add the time and it add up all the hours and minutes he/she been working . now what i am trying to do is to enter 810 in the cell it automatically change it to 8:10 format but the problem it change it to 12:00:00.
even when i enter 083612 it again change it to 12:00:00.
now i have used the format cell > time and no luck. i already removed and installed my office but i still have the same problem.
View 12 Replies
View Related
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
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
Oct 17, 2008
I know similar questions have been asked in the past, but I can't seem to get this to work for my specific case. I need to convert hours into minutes, and these times do not conform to a 24 hour clock. For example, I need to convert 1000:15 into 1000.25
View 3 Replies
View Related
Jan 14, 2009
I have a database which shows a time some one came into work and a time they left. Formatted as HH:MM. I can minus the time they left from the time they came in...to work out how many hours they worked. However, whenever i want to work out how many mintes it is (time left - time in * 60). It does not seem to work.
Example
A1 - Time In 09:00
A2 - Time Out 17:00
A3 - Hours = 8 (A2-A1)
A4 - Mintes should be 480. (A3*60)
View 3 Replies
View Related
Sep 18, 2009
Unsurprisingly I have a spreadsheet:
Column D contains the total hours that a component has been installed for
Column C contains the additional hours the component acquired
I need the total of these 2 sets of time added together to give me the new hours that the component has acquired. All cells have been formatted [h]:mm:ss
I attach an extract of the spreadsheet. At the moment the values in column D are all calculated manually. When I add the values together Excel returns #Value!
The annoying thing is that in cells B2 and A3 I tested this and can do this with no problem...the value in B3 is the sum of B2 and A3.
View 2 Replies
View Related
Nov 3, 2009
I Need to add together different cells with hours and minutes. The attached workbook explains.
View 3 Replies
View Related
Aug 31, 2009
Cell D2 (Receiving) : 8/17/2009 17:19
Cell E2 (Dispatch) : 8/18/2009 10:33
I need to know the number of hours and minutes between the two (E2 - D2) in Hr:mm format.
View 4 Replies
View Related
Jun 10, 2013
I am trying to calculate employees hours of work from information provided to myself.
Each employee is contracted to work 40 hours per week. The information provided to myself is in the format - Employee has worked 39.30 This is in fact 39 hrs 30 minutes. Obviously when I subtract 39.30 from 40.00 I get 0.7 and not 30 minutes. I tried formatting the cell containing these figures to hh:mm but it comes out at 15.30 & 15.00 respectively because it is over 24 hrs. How do I convert the digital number (0.7) to minutes I.e. 30 minutes.
I have tried to convert the 40 hrs into minutes but because the hours are greater than 24 then I struggle.
View 9 Replies
View Related
Oct 20, 2007
I have a spreadsheet that keeps track of my flight time by the day and then totals it for the month however, I keep it in a decimal number (i.e. 89.23). I want the final total number to be in Hours and Minutes hhh:mm and can not for the life of me figure out the formula to make it come out in hours and minutes. I can either convert the one final decimal number over to hours and minutes or add the entire collumn of decimal numbers and have THAT total converted to hours and minutes. It's doesn't matter to me. I just can't figure out the formula.
View 9 Replies
View Related