Counting business days
=NETWORKDAYS(start_date, end_date, [holidays])counts the Monday-to-Friday days between two dates, including both ends, and leaves out any dates in the holidays range.=WORKDAY(start_date, num_days, [holidays])goes the other way: it returns the date that is num_days business days after the start (or before, if negative), skipping weekends and holidays.
Keep public holidays in their own column and point the third argument at it, such as F2:F6. Lock it with $F$2:$F$6 if you copy the formula down.
Watch out for
- NETWORKDAYS counts the start day. Monday to Friday of the same week is 5, not 4.
- If the end is before the start, NETWORKDAYS gives a negative number.
- Both functions assume Saturday and Sunday are the weekend. For a different weekend, Sheets has NETWORKDAYS.INTL and WORKDAY.INTL.