Синтаксис
NETWORKDAYS(start_date, end_date, [holidays])
- start_date—The first date to be measured
- end_date—The last date to be measured
- Выходные—(необязательно)The dates to exclude from the count
Пример использования
NETWORKDAYS([Due Date]4; [Due Date]5, [holidays])
Примечания об использовании
WORKDAY, NETWORKDAY, and NETWORKDAYS count Saturday and Sunday as non-working days. If you enable dependencies on your sheet, you can customize the non-working days. After you do this, the formulas use your settings in calculations.
Примеры
В примере ниже используется информация из этой таблицы.
Предмет одежды | Дата заказа | Дата отправки | Праздничный день | Percent Complete | |
---|---|---|---|---|---|
1 | Футболка | 12.02.2019 | 15.02.2019 | 100 % | |
2 | Брюки | 15.02.2019 | 20.03.2019 | 2/21/19 | 50 % |
3 | Куртка | 20.02.2019 | 27.02.2019 | 2/21/19 | 75 % |
Вот несколько примеров использования функции TODAY применительно к таблице выше.
Формула | Описание | Результат |
---|---|---|
=IF([Percent Complete]1 = 1; NETWORKDAYS([Order Date]1, [Ship Date]1); "Order Not Yet Fulfilled") | If the value in row 1 of the Percent Complete column is 100%, the function returns the number of working days between the date in row 1 of the Order Date column and the date in row 1 of the Ship Date column. Otherwise, the function returns Order Not Yet Fulfilled. | 4 |
=NETWORKDAYS([Order Date]2; [Ship Date]2) | Returns the number of working days between the date in row 2 of the Order Date column and the date in row 2 of the Ship Date column. | 24 |
=IF([Clothing Item]3 = "Jacket"; NETWORKDAYS([Order Date]3; [Ship Date]3)) | If the value in row 3 of the Clothing Item column is Jacket, the return the number of working days between the date in row 3 of the Order Date column and the date in row 3 of the Ship Date column. Otherwise, keep the cell blank. | 6 |
=NETWORKDAYS([Order Date]2, [Ship Date]2, Holiday2) | Returns the number of working days—excluding the holidays—between the Order Date and Ship Date columns in row 2. | %23 |
Остались вопросы?
Используйте шаблон Руководство по работе с формулами, чтобы просмотреть дополнительные ресурсы и изучить более 100 формул. Руководство содержит глоссарий, описывающий каждую функцию, обращение с которой вы сможете отработать на практике, и примеры как часто используемых, так и более сложных функций.
Изучить примеры того, как эту функцию применяют другие пользователи Smartsheet, или задать интересующий вопрос можно в Сообществе Smartsheet.