Formula For Working Out Top X Of Date Time Difference
Feb 24, 2014
1.The attached file shows an example extract of a data extract that has thousands of lines. See the Data Tab.
2.What I need is some time that has passed between two dates in a DDHHMM format
3.What I then need is the top 50 of each of the times (or the longest time past)
4.The column headers will be: WO Number | Contractor Name | Time Calculation – see the various Report tabs
5.The calculations in the Data tab are between the following columns.
a.Difference between Column Z and Column AC
b.Difference between Column AC and Column AD
c.Difference between Column AD and Column AE
d.Difference between Column AE and Column AF
6.Is it possible to show the top 50 only in time?
This report is forming a part of a larger report and all other formulas are already present so I am hoping to keep the file size quite small. The aim is to then hand this over to someone else to just print on a monthly basis depending on the data that gets added with minimum input.
View 2 Replies
ADVERTISEMENT
Oct 22, 2008
I need to enter a formula that calculates the time a report is received from the time it was recorded in our database. therefore, it needs to exclude non working hours. here are the fields:
A1 2008/10/10 16:30
B1 2008/10/11 09:30
C1 8:00
D1 17:00
A1 = report received
B1 = reported recorded in db
C1 = work day start time
D1 work day end time
Where the answer should = 2 hours.
I am not an experienced excel user and so far the only formula I have now is: =TEXT(B1-A1, "d:hh:mm")
And how do I account for weekends?
View 9 Replies
View Related
Apr 27, 2014
Formula to calculate time allotted minus time used and show the difference in hour and minute.
View 1 Replies
View Related
Aug 22, 2006
I have 2 cells with dd/mm/yy h:mm format. I have been using =TEXT(BQ3-BP3,"[h]:mm") to work out the hours and minutes difference between the 2 cells. However I would like the formula to work so that the hours and minutes difference will only come into effect after midnight on the first day. For example
01/01/06 23:30 - 01/01/06 23:45 would read 00:00
but
01/01/06 23:30 - 01/02/06 00:45 would read 00:45
View 6 Replies
View Related
Nov 13, 2009
I am currently usins Excel 2007 and would like to calculate the diferrence in hours and minutes (ideally in decimal e.g 4:30 should be reflected as 4.5) between two date and time groups, excluding the non-working time between 17:00 and 09:00, weekends and holidays. An 8 hour working day is to be used. I have attached a spreadsheet were I tried to achieved the above with little success.
View 2 Replies
View Related
Jun 14, 2013
I have tried several ways to calculate the difference between 2 dates/Time fields. Here is what i have tried and the issues i am encountering.
Cell F3 Has the Create date and Cell G3 has the resolution date and i need to calculate the difference between the 2 in months, Days, Hours, Mins and seconds:
1st option - =G3-F3 and set the format of the cell to mm "m "dd"d" hh"h "mm"m "ss"s "
The problem is, for some reason the months isn't calculating correctly and appears to add 1 month
2nd option - =DATEDIF(F156,G156,"y")&"y "&DATEDIF(F156,G156,"ym")&"m
"&DATEDIF(F156,G156,"md")&"d "&TEXT(MOD(G156-F156,1),"hh""h ""mm""m ""ss""s""")
This appeared to work however because it looks at the date and time separately, when there are 22 hours difference which spans over 2 dates ( Created 13/06/2013 10:30:00 Resolved 14/06/2013 08:34:00) its shows as 1 day and 22 hours which isn't correct.
View 3 Replies
View Related
Dec 28, 2013
How to find the difference between 18/04/2013, 13.40 hrs and 20/04/2013, 11.40 hrs to get the result as 1 day and 22 hrs
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
Jul 3, 2014
A
B
C
1
Time 1
Time 2
Result
2
8:00
7:30
-0:30
View 3 Replies
View Related
Jan 6, 2014
i am trying to find the time difference between two cells and present the date in a third cell. The data in the cells are in a non standard date/time and i need to create a special format i think. The cells look like this.
fldcollected fldaccepted Type Time between being received by database and eccepted
2013-11-06 15:59:29.1002013-11-07 08:41:12.000PSTN
View 3 Replies
View Related
Aug 22, 2012
I have
Code:
Start date 21/08/2012 23:21:30
End Date 24/08/2012 22:21:45
is there a formula to get the time difference in Hours for example in this case its 72:01:15 72 Hours, 1 minute & 15 seconds
View 2 Replies
View Related
Feb 17, 2008
I'm working in excel2007:
I want to write a generic formula to calculate the difference of time between cells, the first being a real data point, such as
6/22/2007 8:53
minus a generic constant term using the same date and a given time, 8:30.
So, what I need is something like this:
6/22/2007 8:53 – (same mm/dd/yy @ 8:30)
6/22/2007 12:29 – (same mm/dd/yy @ 8:30)
6/25/2007 11:19 – (same mm/dd/yy @ 8:30)
View 9 Replies
View Related
Aug 14, 2007
I need some IF formula I believe that will yield an answer between 1 - 5. I'm not swavey enough with these things to figure this one out... trust me I tried and it keeps getting more confusing for me.
If the time worked is between certain time criteria then it would equal 1 - 5 depending on the time.
Example: If I work between the hours of 5am and 1pm then I would be in the Open/Mid range and would need to equal 2. If I only worked a few hours and my hours fell only between the Mid range then it would equal 3.
Then based on that... It would automatically fill in on the deployment charts... My name would show up on the Open and Mid Deployments under the task chosen for me to do that day.
I've attached a small sample of what I am looking for to kind of help show what I need. The highlighted areas are the areas I'm not sure how to do.
View 9 Replies
View Related
Oct 10, 2007
A person spends some time performing various works (work1, work2...) in a day. Each work can be further divided into tasks (task1, task2...).
I need to find the total time spent by the person doing all these activities.
The attached spreadsheet will explain it better.
View 3 Replies
View Related
Jan 30, 2014
I am using the following formula in Column E to calculate the difference between an employees start time, and their previous shift end time in order to work out how many hours rest they have had:
=IF(A4=0,"",IF(I4=0,"",MOD(I4-B4,1)))
My Current Formula works fine for same day calculations, but if an employee finishes work at 18:00 on Friday and starts work at 22:00 Saturday night, Excel calculates the Total Rest hours as 04:00, when in fact they have had 28:00 hours rest...
Is there a way of calculating the hours difference between two dates?
I have attached a sample of my spreadsheet to illustrate
View 5 Replies
View Related
Jun 17, 2006
I am attempting to pick up a date with time entry on a worksheet and place it into a TextBox on a UserForm. Format on the sheet is mm/dd/yyyy h:mm AM/PM. The UserForm is placing the value as mm/dd/yyyy 12:00 AM. here is the
Private Sub UserForm_Initialize()
If Not Range("dDate").Value = "" Then
TextBox2.Value = Range("dDate").Value
TextBox2.Text = Format(DateValue(TextBox2.Text), "mm/dd/yy h:mm AM/PM")
Else
TextBox2.Value = ""
TextBox2.SetFocus
End If
End Sub
"dDate" is the named range where the date is sitting. The format is also set on the TextBox2 exit event. Can anyone see why only the date portion is being transfered with the default 12:00 AM for no time component of the value?
View 3 Replies
View Related
Jun 20, 2008
I am trying to subtract 8 hours from a date/time. What I need to do is to capture that lead time using only weekdays, and working hours of 8am-5pm.
For example:
Date/Time
6/23/2008 9:18AM (Monday)
Subtracting 8 hours from this scenario would give me
6/20/2008 10:18AM (friday)
View 3 Replies
View Related
Jul 17, 2006
Can you share the formula to find out the date and day difference. Foe example ( from :Thu 06-Jul-06 11:59 AM TO Mon 10-Jul-06 11:56 AM)
I have the dates is the same formate as shown in example.
View 9 Replies
View Related
Sep 11, 2011
I have a data of complaints where I need to present it to the Management in such a way that the SLA period of 8 hours does not pass. Our office working hours are 7 AM till 7 PM. The complaint received should be escalated to concern section within 8 Hours of SLA time. I have the list of dates with received time. The complaint which could not be escalated today would be escalated next day. In this case is should deduct 12 Hours (7 PM to 7 AM, Non-working hours) from the time. How can I insert escalation date so as that it would deduct non working hours from it.
View 5 Replies
View Related
Oct 7, 2006
d9 is where i enter my start time from a drop down menu and
d10 is where i enter my finish time
what i would like to do is have a formula to work out my total hours work then minu 45min and tell me whats is remainig which is over time
example
i start work and 06:00 and finish work at 15:00 which is 9hours i then remove my 45min break which then give me 1/4hour (0.25 of an hour) as over time
the 0.25 is then timesed by a figure of say 13.4481 which would then tell me that i have earnt 3.362025
and so on eg if i have 0.5hour it would tell me what that work out as.
View 14 Replies
View Related
Jan 28, 2009
I'm trying to make a formula to calculate the difference in a date between two dates. For exaple, in my business we have a due day for something. So the due date could be Feb 10, we need to know if it was done on time, late, or early. So I've gotten it to display late by doing this: =IF(B2>A2, "Late", (A2-B2)) But then I can't figure out how to incorporate this: =IF(B2=A2, "On Time") or =IF(B2<A2, "Early").
I would like to displaly this all in one cell. So if the due date is Feb 10 and it's turned in Feb 8 it's early, turned in Feb 10 it says on time, turned in Feb 11 it's late. I also tried this but it didn't work: =OR(IF(B2>A2,"Late")*IF(B2=A2,"On Time")*IF(B2<A2,"Early"))
View 3 Replies
View Related
Aug 28, 2009
I have a fairly complicated working time calculation I need to make, the sheet calculates how much 'actual working time' is spent on a product. 'Actual working time' means just that, breaks & any other non working time removed from the total.
My sheet set up is as follows:
Column Z = Start Date
Column AA = Start Time
Column AB = Finish Date
Column AC = Finish Time
Column AD = Actual working Time (hh:mm)
Column AE = Planned stop time (hh:mm)
Standard working times are:
Monday to Thursday 07:30 to 16:15
Friday 0730 to 1200
First tea break is 10:00 until 10:10
Lunch is 12:30 to 13:00 (except friday)
Last tea break is 14:40 to 14:50
1) Jobs can be 'in production' for many days, sometimes weeks
2) Overtime may be run before or after shift, also weekends
3) We can have 'Planned stop time' which will also need subtracting
View 9 Replies
View Related
May 22, 2014
I need a formula thet will look at the last date of the absence and calculate what would be the last working date in the given financial yaer.
Example
Abcence Start Date 21/08/13
Abcence Due End Date 04/11/14
Financial Year Start Date 01/07/13
Financial Year End Date 30/06/14
View 13 Replies
View Related
Apr 14, 2014
I am trying to create a formula that if the date column falls between 01/01/2014-01/25/2014, it returns January as the value.
View 10 Replies
View Related
Apr 14, 2014
see the attached spreadsheet, I am getting an error message with the attached formula
View 2 Replies
View Related
Mar 7, 2012
I have this formula below that counts all matching cells that fall between two dates (a Monday to the next Monday) where S2 and T2 are the dates (one week apart).
I have 52 colums ie one for each week.
=SUMPRODUCT(($G$3:$G$1000>=S2)*($G$3:$G$1000
View 7 Replies
View Related
May 3, 2008
This may be a bit vague but here goes.
I have to calculate the difference between the start time and end time of a job. The only catch is, how can I avoid calculating "out of hours" time. So, if a job goes from 9am to 9am the next day, I want it to avoid calculating between the hours of 23:30 and 03:30.
Another example is if a job goes from 02:00 to 04:00, I want it to avoid the tim between 02:00 and 03:00.
If there is a difference in days, so the job goes overnight, how do I take that into consideration also.
View 9 Replies
View Related
Aug 16, 2008
I've got a time difference from 8:00AM - 12:30PM as 4.30 I'm trying to get the minutes, .30, converted into a 6 minute increment, .5. Is it possible to do this and if so how would it be done? Below is a chart of how the time is converted from 6 minutes increments into decimal form.
6 = 0.1 36 = 0.6
12 = 0.2 42 = 0.7
18 = 0.3 48 = 0.8
24 = 0.4 54 = 0.9
30 = 0.5 60 = 1.0
View 5 Replies
View Related
Jul 7, 2006
i want to ask for a reason if a item is late where M & line is the time it should have left and N & line is the actual time it left.
TL is the difrence between the two times
i want the input box to read " DRIVER DISPATCHED 30 MINUTES LATE PLEASE ENTER REASON"
but it returns "DRIVER DISPATCHED -.11233543 E2 MINUTES LATE"
how do i format this to show the difrence in minutes
TL = Range("N" & Line) - Range("M" & Line)
late = InputBox("DRIVER DISPATCHED " & TL & " MINUTES LATE PLEASE ENTER REASON")
View 3 Replies
View Related
Feb 28, 2007
I'm trying to calcuate the time difference using military time.
For example:
A1 has 0400 A2 has 0430 A3 SHOULD be :30
B1 has 1500 B2 has 1715 B3 SHOULD be 2:15
Unfortunately I either keep getting all zero's, or the correct answer but without the ":" in the answer (b3 would look like 215)
View 9 Replies
View Related