Hey I am trying to calculated the difference between two dates excluding weekends and holidays but so fat I was only able to come across this formula
IF(ISERROR(DATEDIF([Start Date], [End Date],"d")), "",(DATEDIF([Start Date], [End Date], "d")) + 1 - INT(DATEDIF([Start Date], [End Date], "d") / 7) * 2 - IF((WEEKDAY([End Date]) - WEEKDAY([Start Date])) < 0, 2, 0) - IF(OR(AND(WEEKDAY([End Date]) = 7, WEEKDAY([Start Date]) = 7), AND(WEEKDAY([End Date]) = 1, WEEKDAY([Start Date]) = 1)), 1, 0) - IF(AND(WEEKDAY([Start Date]) = 1, (WEEKDAY([End Date]) - WEEKDAY([Start Date])) > 0), 1, 0) - IF(AND(NOT(WEEKDAY([Start Date]) = 7), WEEKDAY([End Date]) = 7), 1, 0))
This formula works for weekdays but not holidays is there a way to make it include holidays.