Forum Discussion
RussNobby
Dec 09, 2022Copper Contributor
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:m...
Patrick2788
Dec 09, 2022Silver Contributor
I 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.
- RussNobbyDec 11, 2022Copper 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.
- mtarlerDec 11, 2022Silver 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.- RussNobbyDec 12, 2022Copper ContributorHi, thank you
What I'm finding is weekend dates are displayed as the dreaded ##### which if I'm correct in my thinking is caused by the addition of -1 in the centre of the formula? Is there a better way of calculating the information?