Dividing A Time Span Into Shifts - Over Lapping Days
Feb 21, 2006
I am developing a report that tracks the efficiency of industrial sorters on
an automated assembly line. The line runs around the clock in three shifts
(1: 7:30am to 3:29pm, 2: 3:30pm to 11:29pm, and 3: 11:30pm to 7:29am), and
collects certain performance indicators, such as units processed. I am
trying to calculate the units processed during each shift on each day. For
example, if a run ran from 2:30 pm to 4:30 pm, and processed 100 units, I
would want 50 units credited to shift 2 and 50 units to shift 3 (we are
assuming a steady rate of processing).
My data arrives from the machine with the following columns (each run is a
separate row):
B|D|E|G|H
Run #| Start Date| Start Time| Units Processed | End date | End Time
I have successfully used the start time to determine the starting shift with
IF statements:
=IF(--E3<0.3125,3,(IF(--E3<0.6458,1,(IF(--E3<0.9792,2,3))))) and a similar
formula to calculate the end shift. This works fine if the run only spans
two shifts within the same day.
My problem is that some of the runs, run across more than one shift and even
across days. For example, a run that ran from 10:30 pm on one day to 4:30 pm
on the next, would overlap 5 shifts and two days. I need to be able to
figure out the proportion of time spent on each shift, and use that to get
the proportion of units processed during each shift on each day.
I am currently thinking of a convoluted series of nested IF statements (and
generating lots of columns to the right of my data for each potential shift
within a run), but this seems inelegant and cumbersome. Is there a more
logical way to approach this? Even more specifically, is there a function
that can pair my start/end dates and times with a set of shift start/end
times and calculate the elapsed time for each shift within a run? Something
with MATCH or VLOOKUP maybe?
View 14 Replies
ADVERTISEMENT
Apr 21, 2014
I am looking for a formula that will tell me how many days in each month for which a given time span is active. For example the time span 1/1/2014-2/28/14. I want to know the time span is active for 31 days in January and 28 days in February. Another example: time span of 1/15/2014-2/28/2014. I want to know that the time span would be active for 16 days in January and 28 days in February. I am looking for a formula that will capture the amount of days in each month for which the time span covers. as I only know how to write a formula with multiple if statements that require a different formula for each given month, rather than one formula that applies to all months.
View 6 Replies
View Related
Jul 31, 2006
I have formated my cells as custom hh:mm and want to have a 24 hour clock calculate time.
In cell D6 I have starting time of 23:00
In cell E6 I have finish time of 07:00
This should equal 7:00 hours but I get ######### am I doing somthing wrong or do I have to format the cells differently.
The formula in F6 is E6-D6.
View 6 Replies
View Related
Jan 14, 2014
I've got daily water level data that spans around one hundred years. I am looking for monthly average water level data, but rather than using the whole month, I'd like to average the first two days and the last two days. I want to have a single value for each month in the 100 years of data.
If the data was smaller I could do this by hand, however having 100 years worth of data = 1200 months = so many days...
It's tough since months don't have a set number of days, and then leap years and it all gets so complicated. I've never really had a problem where date was a criteria to pull values from, and I don't know how to work with this. The internet suggest the Averageif function which I have dabbled with, but no dice.
View 1 Replies
View Related
Mar 9, 2008
I have a problem regarding sorting data having date and also time within a single cell.
Example data (I have written it as code to preserve formatting)
A B C D E F
12/5/2008 02:072/5/2008 06:0128804833363
22/5/2008 18:012/5/2008 18:0599271297
Column B is start date and time whereas Column C is end date and time.
My aim is to cut and paste the whole row automatically to Sheet2 if the time is within 2AM to 8AM else leave as it is.Also I don't know anything about VBA Script.
View 9 Replies
View Related
Feb 23, 2008
have the follwing worksheet"
Date Rate Qty
2:06:56 PM 199.5 116
2:06:49 PM 199.5 343
2:06:40 PM 199.5 226
2:06:28 PM 199.5 48
2:06:20 PM 199.4 162
2:06:11 PM 199.5 95
2:06:04 PM 199.4 449
2:05:58 PM 199.6 1488
2:05:40 PM 199.5 9
2:05:40 PM 199.5 9
2:05:37 PM 199.4 161
2:05:28 PM 199.6 101
2:05:23 PM 199.35 4605....................................
I would like to calculate the weighed average rate( rate*qty/ total qty durig a period) for different periods say 2.00 pm to 2.01 pm, 2.01pm to 2.02 pm etc. Is there a way to do this by using database(dsum,daverage) functions. What will be the content of the criterion range? Or is there any other way of solving this.
View 2 Replies
View Related
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
Jan 29, 2009
Need to divide a cell containing a time value (hrs:mins:secs). My timesheets calculates the number of hours on a job and I want to divide this total by the number of components made.
View 7 Replies
View Related
Sep 6, 2006
I've found how to present time exceeding a minute in seconds ([m]:ss.00), but I need to formulate items per second. Doing simply CellItem / CellTime won't work. I've tried Minute(CellTime)*60+Second(CellTime), but this leaves out the hundreds of a second.
View 3 Replies
View Related
Mar 13, 2013
I am attempting to calculate % utilization. I have number of minutes used formatted in [mm]:ss and number of minutes available formatted as a number. When I divide available by minutes used I get a percentage that is off.
So I have Available 33600 minutes available 4901:20 minutes used.
View 2 Replies
View Related
Oct 7, 2013
How would you calculate the amount of days of a billing period for a consulting engagement by quarter when the engagement could span multiple quarters, be within a quarter or not be in a quarter at all? Project based billing
View 1 Replies
View Related
Mar 21, 2013
I'm trying to work out the productivity of something per hour but I'm having a bit of trouble with dividing time in Excel.
Basically I've got
A1 = # of Sales (e.g. 5)
A2 = Total time worked (e.g 07:36:00)
I want C1 to show me how many Sales are made per hour.
View 1 Replies
View Related
Mar 5, 2008
I have Excel 97. I'm working on a spreadsheet and I just can't figure out how to create a conditional formula that will look through Column A & B, then add up the related time value (hh:mm) in Column C.
A B C D
Gender Age Start time End Time
Male Adult 23:10 01:45
Female Adult 21:30 03:30
Male Adult 00:15 01:05
Female Juvenile 23:50 00:10
I tried the SUM(IF((A:A="Male")*(B:B="Adult),C:C)) or something like that.
The times seem to have a problem adding up or averaging if the time value exceeds 24:00 hrs. Or if it's computing numbers that some are before and after 24:00 hrs.
Is there some way to create a formula that will result in something like: Of 5 Adult males, the average start time was 23:50 hrs and the average end time was 01:30?
View 11 Replies
View Related
Jun 17, 2014
I have a time column (A) that when looked in the cell only shows AM & PM times, but the cell itself (not showing) contains dates too, keeping me from be able to do a sheet wide sort of time or time frame occurrences.
Can I do some thing to sort these cells with their corresponding rows based on time only disregarding dates?
I am trying sort out all rows that in column (A) is time equal to or greater than 4:00 PM OR even maybe sort all rows that column (A) shows a time between 4:00 PM & 7:00 PM. The date in the cell is the problem, I think. Excel 2013
View 1 Replies
View Related
Jan 9, 2007
I'm busy working on a schedule for calculating irregular hours.
A thing I need to do is the following:
name: Ed
From: 6:30
Till: 15:00
+15% :
Ed is one of the employees working on a busline. If he works between 6:00 and 7:30 he gets +15% on his salary for his worked hours. So what I need to know is how many hours(or minutes) he's worked in that 15% box. (In this example 1 hour)
View 10 Replies
View Related
May 11, 2006
I'm setting up a shift roster and need to determine whether a given time is
between the start time and end time of a shift where the shift runs across 2
calendar days
eg start 23:00 finish 06:00
View 9 Replies
View Related
Jan 13, 2009
I follows Andy Pope Methods to make average line,
Q.1 To make the line span across plot area continue…
I can not find solution, trying different options.
Please let me know how to do it?
Q.2 Question related to Average
If value is zero the, how to make average excluding zero by excel functions.
View 12 Replies
View Related
Mar 15, 2007
I have a list of people with 10 years of salary history for each (in ten consecutive columns on the spreadsheet).
I need to calculate the HIGHEST 3 consecutive year average salary for each (if they have less than 3 years with salary, then it should just average the years the do have, be it 1 or 2 years).
Here is the kicker: some people have breaks in service (for these years, there is a blank in that entry). These years should be ignored and skipped in calculating the avergaes.
So if someone had salary figures in years 1, 2, and 4, but a blank in year three, the average of years 1, 2, and 4 would constitute one three year average (whether or not it is the highest is a whole other matter...).
I have been round-and-round the best way of doing this. I was thinking of maybe creating a UDF that calculates a three average, then do it up to 8 times (one for each starting year) in 8 "helper columns", and taking the highest average.
View 9 Replies
View Related
Jun 6, 2014
Look at spreadsheet, calculating time off.
My problems are in columns (k) total amount of days off, (l) weekday days off, and (m) weekend days off
Columns n & o are the results that my employers computer delivers on that amount of time off!
I have provided at the end off my spreadsheet data, some info on the rules that govern how this is calculated.
View 1 Replies
View Related
Apr 2, 2014
I know how to calculate the duration elapsed between start and finish time. But how can I display the total time if for eg it's ends up being 300hrs?
I need the hours spent in the building per day and then the grand total per month.
View 1 Replies
View Related
Dec 3, 2013
I am trying to calculate the time elapsed. I have included a caption to show my formula. The problem I have is that some times are showing > 60 minutes instead of increasing the hour. When my day go over the midnight hour I get a negative number.
View 11 Replies
View Related
Aug 17, 2014
Excel VBA Macro.
I need to convert a decimal (0.602083333) to Time (14:27) but how to do this.
I would like to do this in a VBA Macro, to add to my existing code.
View 5 Replies
View Related
Jul 28, 2008
I have two sets of data that I would like to be compared over a 4 day period.
One set (Mill data) has an associated date and time (29-Jun-08 00:42:02 etc.), and has a value generated every 4 to 6 minutes.
The second set (Dump Grades) has an associated time only (13:24 etc.), and has values generated at random time intervals throughout each day.
The first issue is that I must assign a date to the Dump Grades data, which I just can't seem to do.
The second problem is that I don't know how to get all of these data points graphed on the same graph, as the date and time thing is throwing me for some reason.
My data right now is arranged in columns on separate sheets, organized by dates.
View 9 Replies
View Related
Mar 1, 2009
I am trying to calculate the duration between two times on different days.
For example - I want to know the number of days/hours/minutes/seconds between 25th Feb 2009 20:00 & 27th Feb 2009 22:00.
I am sure that the key is how I enter the data into the cells and how those cells are formatted, I just cannot get Excel to see that the times are on different days. At the moment my data is in a raw format with times in one column and dates in another.
View 9 Replies
View Related
Feb 20, 2010
In the attached WB - the formula, in Col. "D", seems to be too long - although returning the expected result. Could somebody lighten my eyes with a much shorter formula ?
View 3 Replies
View Related
Jul 28, 2014
calculate the running total of time spent in the attached spreadsheet.
View 8 Replies
View Related
Sep 10, 2008
I am trying to count the number of orders written per day. I used the following formula on another sheet and it worked fine, however on this one, A8 is a date only, and F2:F2000 is a date and a time.
I tried reformating the cell for date only, and it displays only the date, however, the time information is still stored, and I can't get it to do the count. Is there a way to count the date regardless of the time?
=COUNTIF('ACT Legacy'!$F$2:$F$2000,Stats!A8)
View 5 Replies
View Related
Aug 24, 2012
I'm building a schedule in excel and am having trouble with the calculation of total hours when lapsing a day, or more specific, adding it into my current equation. For example; Monday they clock in at 5pm and work till 1am. I have found a couple of ways to get the desired out come from this on it's own. I just add the value of a day if the out time is less than the in time, or if the out time minus the in time is less than 0.
However, I need to add this calculation into an equation that is already calculating time elapsed within a single day, turning that into a decimal number and then checking if the total time elapsed is less than 6 hours, if false it subtracts a thirty minute break. Here is the current equation I'm using, I'm sure that there is an if(or, or if(and I could use to make it work when the time lapses 12am while also performing the 6 hour check to subtract the break.
=IF(((F7-INT(D7))*24)-(D7-INT(F7))*24
View 2 Replies
View Related
Aug 11, 2009
I need to be able to calculate the actual number of days worked for an employee over a specific date range. I have a data sheet containing employee, transactions, and date of transaction (date only, does not include time). The actual number of days worked may fluctuate due to time off or holidays, so I need to be able to calculate this individually by employee. For example, with columns Employee, Transaction, & Transaction Date:
123 ABC 07/01/2009
123 ABC 07/02/2009
123 DEF 07/02/2009
123 GHI 07/02/2009
123 ABC 07/03/2009
123 ABC 07/07/2009
123 DEF 07/07/2009
123 ABC 07/08/2009
123 ABC 07/09/2009
etc....
Should return 4 work days for employee 123 over the date range 07/01/2009-07/07/2009
View 9 Replies
View Related
Oct 23, 2009
I have a start date dd/mm/yyyy, and require a formula that everytime a spreadsheet
is opened, based on the current date, to calculate how many years, months and days
have elasped yy mm dd since the start date...
My date formula knowledge is a little limited.
View 9 Replies
View Related