Forum Discussion
NETWORKDAYS formula
Hi, hoping someone can help
I have two dates which I need to calculate the difference between the two date and time fields, I also need to exclude weekends.
Start Date format dd/mm/yyyy hh:mm
End date format dd/mm/yyyy hh:mm
I have tried using NETWORKDAYS but I need the output to be in HH:MM format not whole days. I've tried a number of suggestions via web searches but they don't work.
Any advice would be most welcome
6 Replies
- Patrick2788Silver ContributorI think this is do-able. There's the question of where do the minutes come from? Are there partial and/or over time days to consider? If there's a start/end for every day in the period that would help.
- RussNobbyCopper Contributor
Here's an example data set
(Column C / Row 2) Call Date (Column D / Row 2) Response date
2022/1/11 20:56 2022/1/12 0:14What I need to do is calculate the difference between the two dates excluding weekends with the output data to be [h]:mm:ss as I have 600 rows of information which I need to average out.
- mtarlerSilver Contributor= NETWORKDAYS(C2,D2) - 1 + MOD(D2,1) - MOD(C2,1)
and format cells as [h]:mm:ss as you noted.
but again this doesn't take into account any work hours and doesn't account for any start or end dates that are on the weekend.
- mtarlerSilver Contributorso, you want actual NETWORKTIME meaning you want to exclude weekends and holidays AND know number of HOURS & MIN. I think you should be able to:
= NETWORKDAYS(...) - 1 + TIME([end]) - TIME([start])
That said, this does NOT take into account WORK HOURS (e.g. 9:00am - 5:00pm)