2012-09-27, 16:30 #1
- Join Date
- Sep 2012
- Thanked 0 Times in 0 Posts
Calculating date and time in business days other than Saturday/Sunday
I have been using the below formula for a while to calculate the time it takes to close our help desk tickets, in hardcoded business hours (5AM to 6PM) given the normal business days (Saturday and Sunday). It works like a champ - however, now I have a few people working in the Middle East and their weekend is Thursday and Friday -
How can I tell this formula to count the business days Saturday thru Weednesday? Or any other forumal out there that will do that job?
=IF(COUNT(H10,I10)=2,24*((NETWORKDAYS(H10,I10)-1)*("18:00"-"5:00")+IF(NETWORKDAYS(I10,I10),MEDIAN(MOD(I10,1), "18:00","5:00"),"18:00")-MEDIAN(NETWORKDAYS(H10,H10)*MOD(H10,1),"18:00","5: 00")),0)
Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!
+ Get this BONUS — free!
Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!
2012-09-27, 16:43 #2
- Join Date
- Mar 2004
- Manning, South Carolina
- Thanked 796 Times in 729 Posts
Welcome to the Lounge as a new poster!
Try the NETWORKDAYS.INTL function which allows you to specify the 2 weekend days.
NETWORKDAYS.INTL(start_date, end_date, [weekend], [holidays]).
For more information in Excel select help then type in: function networkdays
it will be the second entry in the output.