Maria Katsifis
New Member
Greetings
I need a formula to calculate the TAT time for the following start and date time and am having some difficulty with the formula that I am using.
I have a list of interactions with a START DATE/TIME and END DATE/TIME. The start time can be 24 hours however the end time will be between 09:00 and 17:00, but I need the working hours to be 7 (we exclude a lunch break). I also have a list of public holidays.
The formula that I am using BELOW WHERE:
A2 = Start Date and Time
B2 = End Date Time
C$2: C$23 = public holidays in format eg. 24/12/2013
=(NETWORKDAYS.(A2,B2,C$2:C$23)-1)*("17:00"-"09:00")+IF(NETWORKDAYS(B2,B2,C$2:C$23),MEDIAN(MOD(B2,1),"17:00","09:00"),"17:00")-MEDIAN(NETWORKDAYS(A2,A2)*MOD(A2,1),"17:00","09:00")
I do not know what I am doing wrong with this formula as I keep getting #VALUES returned. The submission date can be anytime of the day, however the resolution date/time can only be during Mon - Fri and 9am - 5.00pm. There maybe some instances where the resolution date/time will be before 9.00am or after 5.00pm and is the formula can be modified to suit this as well this would be even better. Can some one pls tell me what I am doing wrong and provide alternative?
Many thanks
Maria
I need a formula to calculate the TAT time for the following start and date time and am having some difficulty with the formula that I am using.
I have a list of interactions with a START DATE/TIME and END DATE/TIME. The start time can be 24 hours however the end time will be between 09:00 and 17:00, but I need the working hours to be 7 (we exclude a lunch break). I also have a list of public holidays.
The formula that I am using BELOW WHERE:
A2 = Start Date and Time
B2 = End Date Time
C$2: C$23 = public holidays in format eg. 24/12/2013
=(NETWORKDAYS.(A2,B2,C$2:C$23)-1)*("17:00"-"09:00")+IF(NETWORKDAYS(B2,B2,C$2:C$23),MEDIAN(MOD(B2,1),"17:00","09:00"),"17:00")-MEDIAN(NETWORKDAYS(A2,A2)*MOD(A2,1),"17:00","09:00")
I do not know what I am doing wrong with this formula as I keep getting #VALUES returned. The submission date can be anytime of the day, however the resolution date/time can only be during Mon - Fri and 9am - 5.00pm. There maybe some instances where the resolution date/time will be before 9.00am or after 5.00pm and is the formula can be modified to suit this as well this would be even better. Can some one pls tell me what I am doing wrong and provide alternative?
Many thanks
Maria