Spreadsheet: 854188d1704158774-a-networkday-formula-that-excludes-holidays-and-multiple-leave-date-entries-by-employee-formula-play_with-expected-results-highlighted-in-yellow_v4
Sheet: Project

employee | Start | end | actual end |  | Networkdays | Example of actual end date | result wanted for example of actual end date |  | number of sick leave days for end date | number of sick days for actual end date
AS123 | 2024-01-15 00:00:00 | 2024-02-16 00:00:00 | 2024-02-14 00:00:00 |  |  |  | 16 |  | 8 | 6
AP345 | 2024-03-10 00:00:00 | 2024-03-14 00:00:00 | 2024-03-13 00:00:00 |  |  |  | 1 |  | 0 | 0
AP346 | 2023-12-29 00:00:00 | 2024-03-29 00:00:00 | 2024-02-19 00:00:00 |  |  |  | 28 |  | 0 | 0
[NAME] | 2023-12-05 00:00:00 | 2024-02-02 00:00:00 | 2024-02-20 00:00:00 |  |  |  | -6 |  | 0 | 6
 | empl. AS123 |  |  |  | empl. [NAME]
 |  | 1 |  |  |  | 1
 | 2024-01-16 00:00:00 | 1 |  |  | 2023-12-06 00:00:00 | 1
 | 2024-01-17 00:00:00 | 1 |  |  | 2023-12-07 00:00:00 | 1
 | 2024-01-18 00:00:00 | 1 |  |  | 2023-12-08 00:00:00 | 1
 | 2024-01-19 00:00:00 | 1 |  |  | 2023-12-09 00:00:00 | Weekend
 | 2024-01-20 00:00:00 | Weekend |  |  | 2023-12-10 00:00:00 | Weekend
 | 2024-01-21 00:00:00 | Weekend |  |  | 2023-12-11 00:00:00 | 1
 | 2024-01-22 00:00:00 | 1 |  |  | 2023-12-12 00:00:00 | 1
 | 2024-01-23 00:00:00 | 1 |  |  | 2023-12-13 00:00:00 | 1
 | 2024-01-24 00:00:00 | 1 |  |  | 2023-12-14 00:00:00 | 1
 | 2024-01-25 00:00:00 | 1 |  |  | 2023-12-15 00:00:00 | 1
 | 2024-01-26 00:00:00 | Australia Day |  |  | 2023-12-16 00:00:00 | Weekend
 | 2024-01-27 00:00:00 | Weekend |  |  | 2023-12-17 00:00:00 | Weekend
 | 2024-01-28 00:00:00 | Weekend |  |  | 2023-12-18 00:00:00 | 1
 | 2024-01-29 00:00:00 | 1 |  |  | 2023-12-19 00:00:00 | 1
 | 2024-01-30 00:00:00 | 1 |  |  | 2023-12-20 00:00:00 | 1
 | 2024-01-31 00:00:00 | 1 |  |  | 2023-12-21 00:00:00 | 1
 | 2024-02-01 00:00:00 | 1 |  |  | 2023-12-22 00:00:00 | 1
 | 2024-02-02 00:00:00 | 1 |  |  | 2023-12-23 00:00:00 | Weekend
 | 2024-02-03 00:00:00 | Weekend |  |  | 2023-12-24 00:00:00 | Weekend
 | 2024-02-04 00:00:00 | Weekend |  |  | 2023-12-25 00:00:00 | Christmas Day
 | 2024-02-05 00:00:00 | 1 |  |  | 2023-12-26 00:00:00 | Boxing Day
 | 2024-02-06 00:00:00 | 1 |  |  | 2023-12-27 00:00:00 | Picnic Day
 | 2024-02-07 00:00:00 | Leave |  |  | 2023-12-28 00:00:00 | 1
 | 2024-02-08 00:00:00 | Leave |  |  | 2023-12-29 00:00:00 | 1
 | 2024-02-09 00:00:00 | Leave |  |  | 2023-12-30 00:00:00 | Weekend
 | 2024-02-10 00:00:00 | Leave |  |  | 2023-12-31 00:00:00 | Weekend
 | 2024-02-11 00:00:00 | Leave |  |  | 2024-01-01 00:00:00 | New Year's Day
 | 2024-02-12 00:00:00 | Leave |  |  | 2024-01-02 00:00:00 | 1
 | 2024-02-13 00:00:00 | Leave |  |  | 2024-01-03 00:00:00 | 1
 | 2024-02-14 00:00:00 | Leave |  |  | 2024-01-04 00:00:00 | 1
 | 2024-02-15 00:00:00 | Leave |  |  | 2024-01-05 00:00:00 | 1
 | 2024-02-16 00:00:00 | Leave |  |  | 2024-01-06 00:00:00 | Weekend
 |  |  |  |  | 2024-01-07 00:00:00 | Weekend
 |  |  |  |  | 2024-01-08 00:00:00 | 1
 |  |  |  |  | 2024-01-09 00:00:00 | 1
 |  |  |  |  | 2024-01-10 00:00:00 | 1
 |  |  |  |  | 2024-01-11 00:00:00 | 1
 |  |  |  |  | 2024-01-12 00:00:00 | 1
 |  |  |  |  | 2024-01-13 00:00:00 | Weekend
 |  |  |  |  | 2024-01-14 00:00:00 | Weekend
 |  |  |  |  | 2024-01-15 00:00:00 | 1
 |  |  |  |  | 2024-01-16 00:00:00 | 1
 |  |  |  |  | 2024-01-17 00:00:00 | 1
 |  |  |  |  | 2024-01-18 00:00:00 | 1
 |  |  |  |  | 2024-01-19 00:00:00 | 1
 |  |  |  |  | 2024-01-20 00:00:00 | Weekend
 |  |  |  |  | 2024-01-21 00:00:00 | Weekend
 |  |  |  |  | 2024-01-22 00:00:00 | 1
 |  |  |  |  | 2024-01-23 00:00:00 | 1
 |  |  |  |  | 2024-01-24 00:00:00 | 1
 |  |  |  |  | 2024-01-25 00:00:00 | 1
 |  |  |  |  | 2024-01-26 00:00:00 | Australia Day
 |  |  |  |  | 2024-01-27 00:00:00 | Weekend
 |  |  |  |  | 2024-01-28 00:00:00 | Weekend
 |  |  |  |  | 2024-01-29 00:00:00 | 1
 |  |  |  |  | 2024-01-30 00:00:00 | 1
 |  |  |  |  | 2024-01-31 00:00:00 | 1
 |  |  |  |  | 2024-02-01 00:00:00 | 1
 |  |  |  |  | 2024-02-02 00:00:00 | 1