Tracker
HOME    TRACKER    Excel

# Calculating Turn Around Time ..

## 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.

Related Forum Messages:
Calculating Turn Around Time Between Two Times
i want to calculate the TAT between two times. the TAT target is <= 2 hours. i used the following formula

b1 has 7:08 AM (received time)
c1 has 3/13/2009 (completed date)
d1 has 9:08 AM (completed time)
e1 has TAT formula :- '=IF((D1-B1)*1440<=120,"Met TAT","Not Met TAT")

however this formula does not work in the following conditions.

In these conditions, it is considered that TAT is met.
1. When the difference in time is <=2 hours .... for TAT calculation, on working days and working hours are taken into consideration.

To illustrate.
Day begins : 8:00 AM
Day ends : 4:00 PM

If job is received at 3:30 PM and completed the next working day by 9:30 AM, then it is considered TAT is met.
calculation = 4:00 PM - 3:30 PM = half hour + next day's 9:30 AM - 8:00 AM = 1.5 hours, therefore, total working hours used to complete the job is within the agreed TAT.

If job is received and completed on non working days and during non working hours, it is considered TAT met.

If job is received almost at the end of the day, say, 3.30 PM and job is completed at 8:00 PM same day, then it is considered TAT met, rationale, only half an hour of working hours used to complete the job.

Calculating Turn Around Time In Multiple Scenario
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

Time Turn It Into Quaters Increments
I need an equation that will take time and turn it into quaters increments. Meaning, If we work on a computer for 1 hour and 15 minutes (1:15) then i need it to say 1.25.

1:00-1:15 =1.25
1:15-1:30 = 1.50
1:30-1:45 = 1.75
1:45 - 2 = 2.00
and so on... up to 3 hours.

If E2 = 1:00-1:15 then F2 =1.25
If E2 1:15 then F2 = 1.50

Calculating Time Owed Based On Time Worked
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.

Calculating Time And A Half And Double Time (After 40 Hours)
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.

Turn #DIV//0!” To “0” Or Even Turn It To A Blank Cell
I have a workbook which is set up to take an average heart rate of a participant from a series of data points. I have set the spreadsheet up before I have collected some of the data. (so I can review the project at the 3 months period and its an ongoing project).

The problem is that if there is no data in a participants column then excel correctly gives you readout of “#DIV//0!”. On my results page this #DIV//0!” makes it hard to read the spreadsheet. Is it possible to get excel to turn #DIV//0!” to “0” or even turn it to a blank cell?

Calculating Using Time
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.

Calculating Time In
=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

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 :/

Calculating Time
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)?

Calculating Value, Based On Time
I am trying to write what I believe is a fairly simple set of calculations to determine non-qualified stock option values. Before this digresses into a discussion of the merits of Black-Sholes methodology, I must tell you that this is a "101" type sheet. I'm not an economist.

The deal is that my sister (for whom I'm constructing this worksheet), gets employer stock options which vest at different intervals.

In the past year, she's gotten some options that vest in two, four, and five year increments. I'm using Excel 2002, with the analysis toolpak, and stock pricing add-in from MS.

Have today's date, date of option grant, and can easily compute time (in years) until options are fully vested.

The trick is that options with a 2-year vesting period are 50% excerciseable in one year, 100% in two.

Four-year options are excerciseable 25% per year for 4 years; 5-year are 20% for 5 years, etc.

I'm trying to write a single date-driven formula to take each grant (individually), and divide it by the appropriate divisor (based on the current date), to figure out the current value.

I can't seem to quite figure it out how to write a formula which can handle:

Shares Strike Price Date of Grant Years Until Vested Value
100 26.57 1/4/2003 5
245 45.67 2/6/2001 4

Value should equal =

(if today's price is grater than Strike Price)

(Current Price * (Shares * (% vested which is based on "date of grant" + "years until vested")) )

-

(Strike Price * Shares * (% vested which is based on "date of grant" + "years until vested") )

how the math to make the "% vested multiplier" work...

Calculating Time Blocks
I am trying to calculate the amount of time in blocks, using a pre-determined spread. For example:

AM block is anytime between 0600-1230
PM block is anytime between 1230-1830
Evening block is anytime between 1830-0000 and the Overnight block is anytime between 0000-0600

Sounds easy enough, yeah? Let me paint an example of how I want it to calculate though:

If an employee starts at 0600 and finishes at 1400, then the AM total is 6.5 and the PM total is 1.5.

If an employee starts at 1100 and finishes at 1900, then the AM total is 1.5, the PM is 6 and the Evening is 0.5.

If an employee starts at 2200 and finishes at 0800, then all of the 10 hours must report to the Overnight total, even though some of them fall within the Evening and AM blocks.

I just can't seem to get each block to show the accurate number of hours...and to bring in the rules that I require.

Calculating Time Variance
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.

Long Calculating Time
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?

Calculating Flexi Time
I have two questions about a spreadsheet where I am trying to calculate how much flexi time has been accured.

So far I have managed to do this: ....

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?

Calculating Time Across A 24 Hour Period
Calculate certain time increments for various work-shifts. I have a start time,finish time and increments of time across the spectrum of 24 hours. There are also multiple start time across the 24 hour period with some start times begining on one day and ending on the next day.

Example

In B5 Startime is 22:00
In C5 Finishtime is 06:30

In I3 increment begins at 00:00
In I4 increment ends at 00:30

The employee working the shift from 22:00 - 06:30 would fall into the time increment of 00:00 - 00:30 where another employee working a different shift (08:30 - 17:00) would not. I'm looking for a formula that would return a 1 in a cell if the employee fell into the 00:00 - 00:30 time increment and a 0 in a cell in the employee did not fall into the time increment.

Calculating Date AND Time Differences
Within 4 columns, I have a series of:
Start Dates / Start Times / End Dates / End Times
I need to create a formula which will give me the sum total of the difference between the data sets.

For example, the time difference between 8am on the 20th March and 1pm on the 21st March is 29 hours OR 1 day and 5 hours.
I need a formula which will calculate this for me.

How Do I Reduce The Calculating Time In A Workbook
I have been building a spread sheet data base which I think is pretty simple.

It now has quite a few formula's and is taking time to calculate when I add data.

I have tried to simplify some formula's and get rid of complex one's that can be replaced with simple ones... Is there any advice or suggestions for reducing the calculating time..?

Calculating & Formatting Time..
I am trying to track how long a macro takes to run from start to end.

Calculating Time, Timesheet Calculation
I am working on a project involving calculating time. It is a timesheet calculation. I was able to design the following layout:

.....A............B..........C..........D.......E.....F
1....Date.........Time IN....Time OUT...Hours... Total
2....01/01/07.....1830.......1930.......01:00...01:00
3....01/02/07.....1930.......2330.......04:00...05:00
4....01/03/07......830.......1900.......10:30...15:30
5
Column A is formatted for DATE. Columns B and C are GENERAL. Columns D and E are DATE format customized as '[hh]:mm'

The formula to calculate the time difference between the numbers in column B and C is located in column D. It is as follows:
=IF(C4<1000,TIMEVALUE(LEFT(C4,1)&":"&RIGHT(C4,2)),TIMEVALUE(LEFT(C4,2)&":"&RIGHT(C4,2)))-IF(B4<1000,TIMEVALUE(LEFT(B4,1)&":"&RIGHT(B4,2)),TIMEVALUE(LEFT(B4,2)&":"&RIGHT(B4,2)))..................

Calculating Time, Potential Lunch Break
I am creating a worksheet where employees schedule work throughout the day
eg task 1 will be start time 9am, finish time 11am. The result is 2 hours to do the task.

The problem i'm having is that I need to do a calculation that if a task includes lunch then the result takes an hour away from the task time.
eg task 2 will be start time 12pm, finish time 3pm, excel displays 3 hours, i need it to say 2 hours because 1-2pm is contractual lunch.

I can't just do a day formula that says minus 1 from total as this is task orientated and will vary depending on start and finish times of each task.

Calculating Hours With Midnight As A Start Time
I’m working on a timesheet and I need to separate the hours worked that are before 6 am from all the others. For example if someone works 1:00 am to 8:00 am I need a cell to populated with 5 representing the hours worked before 6 am. The formula below works fine except when the start time is 12:00 am. I am also having trouble if the start time is before midnight like in a 11pm to 5 am shift.

=(IF(AND(S3<=\$AG\$97,S3>=\$AG\$73),((\$AG\$97-S3))*24,0))

S3 is the start time

AG97 is 6:00 am

AG73 is 12:00 am

Calculating Time To Track Work Hours
I can't figure out how to do a proper formula for calculating time. For instance I have one column that says "Time In", the next is "Time Out" and the other is "Lunch Time". My calculation needs to be this:

Find the total hours between the Time In and Time Out and then Minus the lunch time to get total hours worked for the day. The only way I can get this to work is using 24 Hour time format. Is there another way?

Calculating Task Completion Time In Working Hours
The below is for Excel 2003.

I want to set up a spreadsheet that can show my work is completed within a service level agreement, based on working hours of 9-5 Monday-Saturday.

I want to be able, for example, to log that a piece of work is reported at 09:00 on a Monday and completed at 10:00 on Monday and for excel to calculate that as 1 hour until completion. Fine so far. But what if that job was closed at 10:00 two days later? Based on an 8 hour working day, that should be 17 hours.

And what if a bit of work comes in at 17:00 on the Saturday. No one works the Sunday. Say the job is completed at 10:00 on the Monday. that should calculate as 1 hour to completion.

The SLA I'm setting is 4 hours.

Calculating Elapsed Time,respecting Working Hours.
I am looking for a formula to calculate time from one date and time to another. The only catch is I only want it to use times during specific times.

Example

Start 5/1 8am and end 5/2 8am. The working hours are from 7am until 4pm and from 8pm till 5am. In this example the solution should be 17 hours.

How do I set up a formula to respect only working hours (also excluding weekends except for Saturday early am from midnight until 5am.

Sorry if this is confusing, I am trying to use IF statements but I’m fighting a losing battle.

Calculating Time Using Microsoft 2003. Carrying Over Hours Only?
I am using Microsoft Excel 2003. My question is about calculating time. Let's say my answer, after calculating time, is 2 hours and 1 minute (2:01) and that answer is placed in cell A1. How would I be able to have only the 2 hours (2:00) carry over to cell A2 without the minutes showing?

I have tried =MOD(A1,24/24) and =TIME(0,HOUR(A1),0). I have also tried to right click the cell, went to Format Cell, went to the Numbers tab and tried the different options in the Time and Customs category, but I can't seem to get 2:01 to appear as 2:00 only.

Calculating Hours Worked Based On Elapsed Time Over 24H
If a Rescue Officer is called out at 23:00 and is back at 04:00, this should equate to 5 hours worked.

It seems that if my times are all on one side or the other of a 24 hour cycle, my calculation work fine but it it breaks across the 24 hour (as above, it doesn't work.

A2=04:00
A1=23:00

Using (A2-A1)*24 give me -19.00 hours

My SS macro has a line:

s = (wks.Cells(c, 3) - wks.Cells(c, 2)) * 24 'calculates the duration of time worked

Is there any way of getting excel to calculate an elapsed time in hours when the start and end times roll over from one day to the next?

Forumla For The Calculating Total TIME But To Give A Value As 0 When Text Is Typed
I have set up a spreadsheet to calculate time as followed:

A1 - Start Time
B1 - Finish Time
A2 - Hours Worked:

=IF(B1<A1,B1+1,B1)-A1

C1 - Start Time
B1 - Finish Time
C2 - Hours Worked:

=IF(D1<C1,D1+1,D1)-C1

and so on.........

Calculating Date & Time Difference: Result In Hours Only
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.

Conditional Properties: If A Number In A Different Cell Is Above A Certain Number It Will Turn Green And Another Cell To Turn Red
can I set a cell in excel so that if a number in a different cell is above a certain number it will turn green and another cell to turn red. I have attached the file.

Turn Off * As A Wildcard
The use of * as a wildcard in excel can be extremely useful, however, can it be turned off? I work in the education sector and am currently number crunching GCSE results. When it comes to calculating A* grades versus A grades, B grades, etc, I cannot seem to do it because of the wildcard.

Turn Off Calculations
I have attached a sample file. All the data is inserted into this file via a text file, except one column "G". Someone in this forum was kind enough to help me in being able to include the city name 'G' to a parcel number 'A'. However, the page is constantly trying to complete 'Calculations' and won't let me do anything without first hitting 'Control Break'.

This is fine except that when I try to save the file into .txt, I don't have the option of 'Control Break' and I have to end up closing the file. As the 'real' file has over 100,000 rows, nothing happens very fast. I have tied changing the 'Calculation Options' but that doesn't seem to change anything.

Turn Off Control F4
I have a spreadsheet that is a timed test. One of the people taking the test accidently hit Control-F4 which closed the file and ended their test before the time was up. Is there a way I can turn off Control-F4 without turning off other keyboard functions?

Turn Off Vlookup With A Checkbox
Not sure if this can be done. Here is a example of my project

Using VBA To Turn Off Sound
How can I silence the annoying beep heard whenever a msgbox pops up or an error box appears?

Calculate Turn Around Times
I need to calculate turn around time between two sets of data reflecting both a starting date and time and obviously an ending date and time. This should reflect work hours meaning a day that starts at 08:00 and end at 16:30.

That would be a start and would be great if someone can show me how to calculate this.

But obviously people don't work on Sundays and only work from 08:00 to 12:00 on Saturdays... Can't even imagine how one would take this into account.

Can I Turn A Cell Into A Drop Down
I know I can right click in cell and choose from the items, but can I actually make the cell a drop-down box, like on websites? Meaning, can I choose which options/numbers/letters/choices I want in the drop down, and be able to right click and highlight one?

Code To Turn Share On/off
Need code to disable and enable "Protect and Share Workbook"?

Turn Dates Into Month
I have many dates 1/21/06,2/1/06,3/16/06,1/23/06 etc...I wish to convert into month only such as
1/21/06 ---> Jan
2/1/06 ---> Feb
3/16/06 ---> Mar etc...

I tried month(1/21/06) but it does not work. Is there a function to do this?

Turn Off Conditional Formatting
I have a color change alert in a cell using Conditional Formatting. Is there a formula that will turn off the alert in that cell once a value, (any value), is entered into the cell?

Find Replace And Turn To Value
I import alot of data from a banking site and for some reason I get a column of data which should be values but is text. It also has a large number of different currency symbols etc preceeding them.
ie:

\$343
£565
€3453
Yen54645
RBL60

always text

Can anyone think of a way a macro could be run down the column and strip out the symbols and prefixes and leave the remain numbers as a Value not Text.

Turn Off Assume Formula
I am working with a spreadsheet created by someone else. I am trying to change a date in the spreadsheet from "12/19/07" to "5/1/08". When I type in the new date, excel assumes that I am entering a formula, places an "=" in front and displays 1/1/1900.

I can open a blank spreadsheet, type in the date "5/1/08" and copy it into the cell in the existing spreadsheet and it reads it as a date just fine.

Turn The F1 Key Off In Spreadsheets
I'm going to turn the F1 key off in my spreadsheets so that I do not hit it by accident so manytimes, but how do I bring up help without it?

Turn Calculation To Manual
I'm trying to turn calculation to manual, but there does not seem to be an Options button under tools on the mac I'm using. I've checked another mac and it is also missing. I'll probably end up using a pc for the calculations anyway, but I was wondering if anyone knew what was up?

Turn The List Into A Table
I have a long list (almost 17,000 rows) with two columns (ID and Code). There are about 1400 IDs, each with multiple codes:

ID Code
1 ab
1 mn
1 hh
2 mn
2 hh
3 ab

etc.

I need to turn the list into a table that looks like this:

ID Code Code Code ...
1 ab mn hh
2 mn hh
3 ab

Each ID has a different number of codes (anywhere from 1 to 89).

Turn Off All #value! Errors In A Workbook
I have a workbook that contains several formulas that return #value! errors. My formulas are correct and I can remove the error by using an "if" function, but there are a lot of these cells. I just want to make the error show blank to make my workbook look nicer without having to write formulas to avoid the error messages. Is there something I can add in the VBA worksheet function to turn off these errors?

Turn Off Custom Views
I'm dealing with a spreadsheet that uses custom views. Before I do anything with it, I want to make sure that there is no custom view enabled (e.g. just display all). I've tried Chip Pearson's ThisWorkbook.CustomViews("View1").Show suggestion, but it just throws "Runtime Error 5: Invalid procedure call or argument". My actual code is: ThisWorkbook.CustomViews("All (Est)").Show

Turn Values Into Words
is there a way or a formula that turns numbers into their respective words:

ie Cell A1: 8500
Cell A2: Eight Thousand Five Hundred

Big ask I guess but its for a banking model so I can't be the first to have considered this

Turn Off AutoFilter Mode
i have a userform that uses auto filter the filter the search results. I am wondering if someone can show me how to turn the auto-filter off once action (printing) is completed.

below is the code I am using:

Private Sub CommandButton1_Click()
Dim ws As Worksheet
Set ws = Sheets("ComplaintData")

With ws
.AutoFilterMode = False
With . Range("A1:L1")
.AutoFilter
If ComboBox1.Value = "Month" Then
.AutoFilter Field:=11, Criteria1:=ComboBox2

Also, I was given a code in this forum to handle the "Item not found" situation. Where would I insert it in this code. If the searched item doesnt exist, then I would like the message box to come up before it shows the printer selection box and if the searched item exists then directly show the printer selection box.....following were the two lines

On Error Goto ErrFindClick

ErrFindClick: