I have an issue where I need to workout the number of days between a set of dates. Now using just the Networkdays formula isnt any good as I need to determine if both the dates are falling into the correct week I want to report on. I have used this formulas below, but they are cumbersome and prone to crashing excel, is there an easier way that I can do this in one formula and not 3?
I need to use Monday as Day1 of the week
StartDate - 09/09/2010 11:18:51 (cell C2)
EndDate - 06/09/2010 10:49:02 (cell L2)
RevisedStartDate - IF(WEEKDAY(C2,2)=7,C2+1,IF(WEEKDAY(C2,2)=6,C2+2,C2))
RevisedEndDate - IF(WEEKDAY(L2,2)=7,L2-2,IF(WEEKDAY(L2,2)=6,L2-1,L2))
DaysDifference
IF(NETWORKDAYS(O2,N2,PublicHolidays!B5:B28)>=0,(NETWORKDAYS(O2,N2,PublicHolidays!B5:B28)-1),(NETWORKDAYS(O2,N2,PublicHolidays!B5:B28))+1)
Another issue I have is that if I call a range for the PublicHolidays it returns #N/A.
How can I do this?
Bookmarks