Calculating Time Overlaps With Multiple Ranges?

Jun 28, 2013

how to calculate time overlaps between two ranges using a MIN/MAX formula. Now I need to do the same, but for three (or more) ranges. I have searched and searched, but I can't find a solution. I've attached a sample spreadsheet.

In the example, John is working three jobs, job one from 8AM-4PM, job two from 12PM-2PM and job three from 9AM-11AM. There is a total of 4 hours of overlap, 2 hours from job two and 2 hours from job three. How can I get Excel to calculate that for me?

View 3 Replies


ADVERTISEMENT

Tracking Date And Time Overlaps

Jun 18, 2008

I'm trying to figure out a formula that would track a student's class schedule to see if there is a date/time conflict. I'm uploading an example of a ficticious student named Amanda for you to review.

According to the example, I should be prompted that there's a conflict between Amanda's first two classes because they both meet on Monday (M) and Wednesday (W) and the time during each of those classes overlaps.

This will need to be checked per student, based on their ID in column A.

View 10 Replies View Related

VBA Calculating Max / Min Within Multiple Selected Ranges

Dec 25, 2013

I have a problem with using VBA to calculate max/min within multiple selected ranges.

Here is the file: [URL].... I've also attached it below the post.

Column A to D contain the raw data, column G to L contain the trading data. Each trade is marked with "tick" which consists one buy/sell and one close. The entry and close date&time are also included. Then how to match each entry and close date&time from right to left and therefore to look up max/min value within entry and close time from the raw data in the left columns? Respectively, I would like to calculate the min(low) for a buy/close tick and max(high) for a sell/close tick.

The challenges for me:

1.How to match, or reference from the right to left. I knew that "vlookup" could only match one certain value. (correct me if I didn't know enough about "vlookup")
2.The date&time in the left are time intervals while those in the right are time points. How to refer and locate them?
3.In the right side, length of intervals that each tick marked (i.e.from buy to close) are not the same, so should I use a array to contain the length, and then calculate max/min within each? When the data amount get larger, it is not possible to manually use "min" function.

example2.xlsx

View 3 Replies View Related

Calculating Turn Around Time In Multiple Scenario

May 4, 2007

1: Clock shoud tick monday to friday 8:00am to 4:pm only
2: there are 4 coloums where date recieved, date sent, time recieved, time sent are available.
3: the TAT should show the number of hours taken to from the time a case has been recieved to the time it has been sent

View 9 Replies View Related

Calculating Total Time For Individual With Multiple Start / End Times

Feb 12, 2014

I am trying to come up with a formula that calculates total time someone has worked in a day. The scenario is an individual will work at a home and start working with an individual. Their start/end times look like this in a pivot:

Min Start Max Start Min End Max End
Location A+Counselor A 8:56 AM4:01 PM 1:11 PM 7:00 PM
Location A+Counselor B 12:00 AM 8:00 PM 6:00 AM 11:59 PM
Location B:Counselor C 7:00 AM 12:00 PM 2:00 PM 4:00 PM
Location C+Counselor D 8:00 AM 8:00 AM 4:00 PM 4:00 PM

Some people work split shifts while others work a straight shift. The formula I created was this:

=IF(OR(B9=C9,E9=D9,D9=C9),E9-B9,IF(D9>C9,((E9-D9)+(C9-B9)),IF(C9>D9,((D9-B9)+E9-C9),"New Formula Needed")))*24

(I use a pivot table to show max min for start and end times)

This works great except for the individuals that have multiple punches during the same time frame. The one scenario I am having trouble solving for is when someone punches in more than once during their shift displaying. This occurs when a counselor starts a shift working with one person but then adds another person mid shift. An example of this could be:

Location A+Counselor E Min Start Max Start Min End Max End
Consumer 1 1:00 PM 1:00 PM 8:30 PM 8:30 PM Total Time: 7.5
Consumer 2 12:00 PM 12:00 PM 2:35 PM 2:35 Pm Total Time: 2.6

Pivot says that they worked a total of 10.1 because it is grabbing the max and mins and calculating. The actual total time worked is 8.5 hours in reality.

The raw data comes in like so:

Location Counselor Consumer Start Time End Time
A A A 1:00 PM 8:30 PM
A A B 12:00 PM 2:35 PM
A A C 12:00 PM 5:00 PM

Is this solvable with a formula?

View 1 Replies View Related

Calculating Time Taken And Average Amount Of Units / Time Taken?

Jun 11, 2014

I am having a little trouble with a spreadsheet I am creating, the formulas and cell formatting I should be using to enable this to work.

Here goes:

in cell E3 I have a time started (e.g 12:45 pm), In F3 i have time finished (e.g 2:30 pm)

So, what i'm wanting is the time taken in G3 and also, i have the amount of units that is entered manually in H3. I would like I3 to show the time taken per unit.

View 2 Replies View Related

Calculating Time And A Half And Double Time (After 40 Hours)

Feb 20, 2009

I'm battling to come up with the formula to calculate time and a half and double time. My boss wants me to show the overtime worked AFTER 40 hours has been worked. I have attached a copy of my spreadsheet.

View 4 Replies View Related

Calculating Time Owed Based On Time Worked

Jun 23, 2009

I know the title is a bit vague, but I cant think how else to word it!

I have a sheet (attached) which works out hours worked, and if the amount is under a specified target, it counts how much time is owed. The problem occurs when someone works more hours than the specified target.

I guess I need an IF formula of some kind, to say if the figure is over the target, to put zero in the hours owed column.

View 9 Replies View Related

Calculating Days In A Month Between 2 Date Ranges

Mar 14, 2013

I've managed to sort the first half of this issue, in that I can calculate the number of days within a given month which fall inside specified to and from date parameters..

The formula I've used is thus :

Code:
=IF(EOMONTH(A13,0)EOMONTH($I$9,0),0,IF(EOMONTH(A13,0)>$I$9,$I$9-(EOMONTH($I$9,-1)),EOMONTH(A13,0)-(EOMONTH(A13,-1))))))

This examines a date value (A13 in this case) and assess whether any days within that month are between the two date parameters specified in H9 and I9.

H9 = 01/01/2011
I9 = 15/05/2011
Jan-11
31

[Code]....

What I need to do now is specify a second set of date parameters in H10 and I10 and add those into the assessment. The dates will NOT overlap.

So, for example, if I were to set H10 as 01/07/2011 and I10 as 15/07/2011, the results would appear as below

Jan-11
31

Feb-11
28

[Code].....

View 3 Replies View Related

Split Time Range Into Hours Distributed By Time Ranges

Mar 5, 2014

What I need is a formular/vba code that can divide hours into different time ranges. The picture below shows an explanation.

In example 3 there time range analyzed goes from saturday till monday. Here Sunday should get 24 hours and the time range 23-08 for weekdays is at this point 00-08.

I've tried everything I could imagine to get this one working,

View 1 Replies View Related

How To Change Dates If The Date Overlaps

Sep 29, 2013

How to change the date automatically depending on the instructions. If the date of the medical certificate of the Government (MCG) included, automatically private medical certificate (MCP) date will change to the rear on the day before the Government's medical certificate given if the date overlaps

View 3 Replies View Related

Value Data Label Overlaps With Another Series

Sep 11, 2007

I have one series on my chart set as column type with data value labels. I have another series as line type to create a benchmark line across the chart. The chart is interactive where user can select 1 of 20 units.
On some of the units, the labels are overlapping the line type chart and causing a poor display

View 2 Replies View Related

Calculating Chart Values Over Large Ranges With Catagories

Nov 4, 2008

I am working on a custom log file for my company. It has 3 sheets and on each sheet is a service type column with drop downs and next to it an amount coumn. Every day that a service issue is requested someone goes in and chooses the service type from the drop down and enters the amount in USD. I want to add charts to the top of each sheet and on the axis i want to have service type and then the total amount spent on that catagory.

View 4 Replies View Related

Calculating Numbers Of Specific Dates Within A List Of Ranges

Aug 30, 2007

One of the spreadsheets we have here keeps track of reservations booked in the following way.

FG
101/05/200801/08/2008
201/06/200801/09/2008
301/06/200801/07/2008
401/06/200801/06/2008

The date in F is the check in date and the date in Column G is the check out date.

There is another spreadsheet in the same workbook that counts the dates that these people are checked in.

For example:
AB
1
2JanuaryRooms Occupied
310
420
530
640
751
863
972
1081
119
1210
1311
1412

As you can see column B7 has one room because of the fact that the reservation check in of F1 started on the Fifth of January

B8 is Three because reservations 1-3 are checked in on the sixth of January

B9 is 2 because reservations 1-2 are checked in on the seventh of January

B10 is 1 because reservation 2 is checked in on the eighth of January

Please note that F4:G4 does not count on this worksheet due to the fact that they checked out on the same day as check in.

I would love any help you could give on this confusing subject.

View 9 Replies View Related

Legend Overlaps The Plot Area Of Chart

May 4, 2007

I have charts that needs to be placed on specific position and have specific sizes on a chartsheet. I use chartobjects(i).plotarea (top, left, width, height) for that.

Unfortunately when I set these values they still change and get antoher value, there is some scaling going on in Excel and I do not know where that comes from. I have been looking on the internet and finally I found a piece of code which works, but still not good enough, because the legend is also not good positioned.

De data for resizing the charts (ChtNew), the legends and the charttitle I get from other charts (ChtOrig). The legend.legendposition of ChtOrig does not have a value but it still have a top,left,height en width which I use.

I show you my code, the part with the for-next is taken from the internet.

With ChtNew.legend
.Top = ChtOrig.Legend.Top
.Height = ChtOrig.Legend.Height
.Left = ChtOrig.Legend.Left
.Width = ChtOrig.Legend.Width '* 1.1
.Top = ChtOrig.Legend.Top + ChtOrig.ChartTitle.Top
End With

View 9 Replies View Related

Excel 2003 :: Calculating Number Of Overlapping Days With Several Date Ranges?

Jun 25, 2010

I am having difficulty calculating the number of total overlapping days between several date ranges (6 of them to be precise)

I am using Excel 2003 and my data looks like this:

Sent Out (A) - Received (B)
01/06/2010 13:00 - 30/06/2010 13:00
02/06/2010 13:00 - 16/06/2010 13:00
09/06/2010 13:00 - 10/06/2010 13:00
21/06/2010 13:00 - 25/06/2010 9:44
23/06/2010 13:00 - 25/06/2010 10:56
23/06/2010 13:00 - 29/06/2010 13:00

I really can't wrap my head around the idea of calculating overlap (in network days) between six date ranges and was wondering if any of you would have a solution to this problem.

View 10 Replies View Related

Format Time Difference From Time In Ranges

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

Excel 2003 :: Calculating Number Of Overlapping Days With Several Date Ranges And Conditions

Jan 6, 2014

I am having difficulty calculating the number of total overlapping days between several date ranges for each item in another sheet which has unique items

I am using Excel 2003 and my data looks like this:

Sheet-1 Sheet-2
Item - Sent Out (A) - Received (B) Unique Item Number of days excluding overlap days
1234 01/06/2010 - 30/06/2010 1234 -
4321 02/06/2010 - 16/06/2010 4321 -
1234 09/06/2010 - 10/06/2010
4321 21/06/2010 - 25/06/2010
1234 23/06/2010 - 25/06/2010
4321 23/06/2010 - 29/06/2010

I have used the below formula found from the earlier post but need to add a condition calculating the days for each item.

=SUM(IF(MMULT((NETWORKDAYS(ROW(INDIRECT(MIN(INT(A2:A7))&":"&MAX(INT(B2:B7)))),2)<6)
*(ROW(INDIRECT(MIN( INT(A2:A7))&":"&MAX(INT(B2:B7))))>=TRANSPOSE(INT(A2:A7)))
*(ROW(INDIRECT(MIN(INT(A2:A7))&":"&MAX(INT(B2:B7))))<=TRANSPOSE(B2:B7))+0,ROW(A2:A7)^0),1))

View 6 Replies View Related

Calculating Using Time

Nov 12, 2009

Firstly, i'd like cell G5 to show the amount of time worked i.e diff between E6 & F6. Secondly I'd like help with the formula for cells AF6 & AG6 which would require AB6-AC6 divided by the frames, every time I try it I get a messed up answer.

View 14 Replies View Related

Calculating Time In

Sep 9, 2009

=INDEX({"$5.00","$3.00","You Were Late"},MATCH(L17,{7:00am,7:05am,7:06am},1))

i have this formula in excel...this formula sanrv1f posted to help with another question (values changed) but i thought i would work with what i wanted but i get a (Value) error

so what im trying to do is base on the system time is if the person typed in

if they were early 6:45am to 7am they get Extra $5 on top of the $5 they get for being on time.

6:55am gets $5
7:00am they get $5.00 for being on time
if they type 7:01am to 7:05am they get $3.00
if they type 7:06 to 7:10am would return You Were Late
after 7:10am would return No Pay

so Ex

D4 *answers in E4 *

7am would get $5

7:03am am would get $3

7:07am would get You Were Late

7:11am Would get No Pay

if they were on time 5 times (ie 5days in a row) they would get a bonus of $20 i tried factoring this in could not do it :/

View 9 Replies View Related

Calculating Time

Feb 21, 2010

basically I need an excel sheet to calculate the period of time between cells.

For instance, in A1 I write:

18-Feb-10

In A2 I write:

13:00

Unfortunately I cannot write 18-Feb-09 13:00 in just one cell because it doesn't work.

Now, in B1 I write 19-Feb-10

and in B2 I write 15:14

Now we know that 26 hours and 14 minutes have elapsed between these two times. So if I want this to automatically be calculated in B3, what do I do?

Also, how do I apply the formula to all cells in column 3 so all I have to type in is the date (in column 1) and the time (in column 2)?

View 9 Replies View Related

Calculating Time If Value Is Less Than Or Greater Than?

Mar 30, 2014

I'm having a DICKENS of a time on this one. To explain, I have 3 columns where time is entered: a 'Time of Call', 'Time of Arrival', and 'Response Time'. The 'Response Time' cell autcalculates by simply subtracting the 'Time of Arrival' form the 'Time of Call' and using the difference to show the response time. To make time entry into the 'Time of Call' and 'Time of Arrival' simplier for my co-workers, I formatted those cells as 00:00 so that anytime you enter a number it will convert it to a time format (i.e., if you enter in the numbers 745, it will show as 7:45 in the cell). Because of this, when the response time is configured, it does it in hundreds instead of time format. So, if you enter in 7:45 as your time of call and 8:15 as your time of arrival, it shows 70 minutes as a response time because it sees the 7:45 as a whole number...745. Therefore, 815-745 DOES equal 70, but...that's not what I'm looking for. I want it too configure this as time...not as whole numbers.

View 2 Replies View Related

Calculating Time That Is Goes Into Days

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

Calculating Time Variance

Jan 26, 2009

I'm trying to calculate the variance between planned date & time of arrival vs actual date & time of arrival.

I attach the workbook as am a bit useless at explaining myself....

What I've done is in H14 subtract the actual date of arrival (F14) from planned date of arrival (C14). This result is the only way I could think of dealing with crossing over midnight. As a result I14 should subtract the actual time of arrival (E14) from planned time of arrival (B14):

=SUM(E14-B14,H14)

This method works well when the arrival was later than expected but doesn't work if the arrival was sooner than expected.

View 6 Replies View Related

Calculating Turn Around Time ..

Mar 11, 2009

I've browsed the net searching for a solution to my problem and found one solution altough not entirely what i was after, but it was very close. It was provided on another forum, of which i'm not a member.

[url] ...

I have a TAT target of <= 2hours, however this is complicated by weekends, holidays and jobs received after working hours and on weekends. I've attached the file, which contains detailed information about my problem.

View 2 Replies View Related

Calculating The Difference In Time?

Aug 17, 2013

I'm calculating the difference in time:

9:54-9:45 = 0:09

Now to convert this in minutes (in number format), I multiply this number with 1440:

0:09*1440 = 9

When I click the cell this number is actually 9.0000005, rather than exact 9. I need it to be exact 9 since I have to match this number from other excel sheet.

To sum up:

This is what I expect:

31.99999 should be changed to 32

10.000001 should be changed to 10.

View 3 Replies View Related

Calculating & Formatting Time..

Jun 2, 2009

I am trying to track how long a macro takes to run from start to end.

View 4 Replies View Related

Long Calculating Time

Aug 26, 2008

I managed to put together an array formula to calculate the last date that a rep made a sale. It checks two other tabs in the workbook to find the date, and if none is found, it leaves the cell empty.

{=IF(MAXA(IF('Daily Compliance'!A:A=B48,'Daily Compliance'!O:O),IF('Daily Compliance 11-07 to 4-08'!B:B=B48,'Daily Compliance 11-07 to 4-08'!A:A))=0,"",MAXA(IF('Daily Compliance'!A:A=B48,'Daily Compliance'!O:O),IF('Daily Compliance 11-07 to 4-08'!B:B=B48,'Daily Compliance 11-07 to 4-08'!A:A)))}

But it takes sometimes up to 4-5 minutes to make the calculations. Is there possibly a way to simplify it so that it calculates faster, with the same results?

View 3 Replies View Related

Calculating Time Between Two Dates?

May 15, 2012

I need to calculate an SLA.

I have 1 column called 'Date/Time Requested' containing the time and the date together, as in:

dd/mm/yy hh:00

I also have a second column called 'Date/Time Completed' containing the date and time in the same format as above.

I need a macro that compares the two and works out the following:

< 48 hours = "Within SLA"
> 48 hours = "Outside SLA"

View 4 Replies View Related

Calculating Task Time

Mar 18, 2007

I have a sheet to calculate Time Elapsed based on StartDT & EndDt taking into consideration the actual working hours in any working day and the function exclude the weekend. I am not a guru in excel but i found this formula in this website .

=IF(AND(INT(StartDT)=INT(EndDT),NOT(ISNA(MATCH(INT(StartDT),HolidayList,0)))),0,ABS(IF(INT(StartDT)=INT(EndDT),ROUND(24*(EndDT-StartDT),2),
(24*(DayEnd-DayStart)*
(MAX(NETWORKDAYS(StartDT+1,EndDT-1,HolidayList),0)+
INT(24*(((EndDT-INT(EndDT))-
(StartDT-INT(StartDT)))+(DayEnd-DayStart))/(24*(DayEnd-DayStart))))+
MOD(ROUND(((24*(EndDT-INT(EndDT)))-24*DayStart)+
(24*DayEnd-(24*(StartDT-INT(StartDT)))),2),
ROUND((24*(DayEnd-DayStart)),2))))))
the formula works perfectly except for the fact that in our part of the world we have "Friday & Saturday" as the weekend days instead of Saturday and Sunday.

is there a way to get this formula or any similar formula to take different weekend days and do exactly what i need?

View 9 Replies View Related







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