syntax:functions:workdays
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
syntax:functions:workdays [2024/01/20 11:41] – [Remarks] dmitry | syntax:functions:workdays [2025/05/15 14:48] (current) – add exclusion/inclusion feature craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======Workdays(from_date, | + | ======Workdays(from_date, |
Category: | Category: | ||
Line 10: | Line 10: | ||
|from_date|Date or Number (date serial)|An expression representing the first date value to derive the number of workdays from.| | |from_date|Date or Number (date serial)|An expression representing the first date value to derive the number of workdays from.| | ||
|to_date|Date or Number (date serial)|An expression representing the second date value to derive the number of workdays from.| | |to_date|Date or Number (date serial)|An expression representing the second date value to derive the number of workdays from.| | ||
+ | |exclude|Text|(Optional) Dates to exclude from the calculation. | ||
+ | |include|Text|(Optional) Dates to include in the calculation. | ||
**Return value type:** Number | **Return value type:** Number | ||
Line 19: | Line 21: | ||
* A date serial value: 43811 (the date serial for " | * A date serial value: 43811 (the date serial for " | ||
* A date value created using any of the Date/Time functions that returns a date serial value. | * A date value created using any of the Date/Time functions that returns a date serial value. | ||
+ | |||
+ | The //exclude// and //include// arguments need to be a date or list of dates, delimited by commas, enclosed in quotes, and appearing in yyyy-MM-dd format: | ||
+ | * A single date: " | ||
+ | * List of 3 dates: " | ||
+ | * Use empty quotes ("" | ||
+ | * A date serial value cannot be used (i.e., " | ||
\\ | \\ | ||
Line 28: | Line 36: | ||
workdays(# | workdays(# | ||
+ | |||
+ | workdays(# | ||
+ | |||
+ | workdays(# | ||
+ | |||
+ | workdays(# | ||
+ | | ||
syntax/functions/workdays.txt · Last modified: 2025/05/15 14:48 by craigt