Dapatkan jumlah hari kerja antara dua tanggal
=NETWORKDAYS(start_date, end_date, [holidays])
| Parameter | Deskripsi |
|---|---|
start_date |
The start date. |
end_date |
The end date. |
holidays |
[optional] A list of non-work days as dates. |
The general form of a NETWORKDAYS formula is as follows:
=NETWORKDAYS(start,end) // exclude weekends
=NETWORKDAYS(start,end,holidays) // exclude weekends + holidays
In the example shown, holidays is the named range H5:H13, which contains non-working days in 2021. Columns E and F show the number of working days in
=NETWORKDAYS(B5,C5) // returns 21
The formula in cell F5 (Result 2) does take into account holidays:
=NETWORKDAYS(B5,C5,holidays) // returns 19