pub struct WorkdayIntlFn;Expand description
Returns the date serial that is a given number of workdays from a start date, with configurable weekends.
§Remarks
- Positive
daysmoves forward; negativedaysmoves backward. - The
weekendargument can be a number code (1-7, 11-17) or a 7-character string of0s and1s (Mon-Sun,1= weekend day). Default is1(Sat/Sun). - The optional
holidaysargument accepts a range or array of date serials to exclude. - A weekend string of all
1s (no workdays) returns#VALUE!.
§Examples
=WORKDAY.INTL(DATE(2024,1,1), 5)title: "Default weekends (same as WORKDAY)"
formula: "=WORKDAY.INTL(DATE(2024,1,1), 5)"
expected: 45306title: "Sunday-only weekend"
formula: "=WORKDAY.INTL(DATE(2024,1,1), 5, 11)"
expected: 45302title: "Custom weekend string"
formula: "=WORKDAY.INTL(DATE(2024,1,1), 5, \"0000011\")"
expected: 45299related:
- WORKDAY
- NETWORKDAYS.INTL
- WEEKDAY
faq:
- q: "What is the difference between WORKDAY and WORKDAY.INTL?"
a: "WORKDAY.INTL adds a weekend parameter that lets you define which days are non-working, instead of always using Saturday/Sunday."Trait Implementations§
Source§impl Debug for WorkdayIntlFn
impl Debug for WorkdayIntlFn
Source§impl Function for WorkdayIntlFn
[formualizer-docgen:schema:start]
Name: WORKDAY.INTL
Type: WorkdayIntlFn
Min args: 2
Max args: variadic
Variadic: true
Signature: WORKDAY.INTL(arg1: number@scalar, arg2: number@scalar, arg3: any@scalar, arg4…: any@scalar)
Arg schema: arg1{kinds=number,required=true,shape=scalar,by_ref=false,coercion=NumberLenientText,max=None,repeating=None,default=false}; arg2{kinds=number,required=true,shape=scalar,by_ref=false,coercion=NumberLenientText,max=None,repeating=None,default=false}; arg3{kinds=any,required=true,shape=scalar,by_ref=false,coercion=None,max=None,repeating=None,default=false}; arg4{kinds=any,required=true,shape=scalar,by_ref=false,coercion=None,max=None,repeating=None,default=false}
Caps: PURE
[formualizer-docgen:schema:end]
impl Function for WorkdayIntlFn
[formualizer-docgen:schema:start] Name: WORKDAY.INTL Type: WorkdayIntlFn Min args: 2 Max args: variadic Variadic: true Signature: WORKDAY.INTL(arg1: number@scalar, arg2: number@scalar, arg3: any@scalar, arg4…: any@scalar) Arg schema: arg1{kinds=number,required=true,shape=scalar,by_ref=false,coercion=NumberLenientText,max=None,repeating=None,default=false}; arg2{kinds=number,required=true,shape=scalar,by_ref=false,coercion=NumberLenientText,max=None,repeating=None,default=false}; arg3{kinds=any,required=true,shape=scalar,by_ref=false,coercion=None,max=None,repeating=None,default=false}; arg4{kinds=any,required=true,shape=scalar,by_ref=false,coercion=None,max=None,repeating=None,default=false} Caps: PURE [formualizer-docgen:schema:end]
fn name(&self) -> &'static str
fn min_args(&self) -> usize
fn variadic(&self) -> bool
fn arg_schema(&self) -> &'static [ArgSchema]
Source§fn eval<'a, 'b, 'c>(
&self,
args: &'c [ArgumentHandle<'a, 'b>],
_ctx: &dyn FunctionContext<'b>,
) -> Result<CalcValue<'b>, ExcelError>
fn eval<'a, 'b, 'c>( &self, args: &'c [ArgumentHandle<'a, 'b>], _ctx: &dyn FunctionContext<'b>, ) -> Result<CalcValue<'b>, ExcelError>
fn namespace(&self) -> &'static str
fn volatile(&self) -> bool
Source§fn aliases(&self) -> &'static [&'static str]
fn aliases(&self) -> &'static [&'static str]
fn function_salt(&self) -> u64
Source§fn eval_reference<'a, 'b, 'c>(
&self,
_args: &'c [ArgumentHandle<'a, 'b>],
_ctx: &dyn FunctionContext<'b>,
) -> Option<Result<ReferenceType, ExcelError>>
fn eval_reference<'a, 'b, 'c>( &self, _args: &'c [ArgumentHandle<'a, 'b>], _ctx: &dyn FunctionContext<'b>, ) -> Option<Result<ReferenceType, ExcelError>>
Source§fn dispatch<'a, 'b, 'c>(
&self,
args: &'c [ArgumentHandle<'a, 'b>],
ctx: &dyn FunctionContext<'b>,
) -> Result<CalcValue<'b>, ExcelError>
fn dispatch<'a, 'b, 'c>( &self, args: &'c [ArgumentHandle<'a, 'b>], ctx: &dyn FunctionContext<'b>, ) -> Result<CalcValue<'b>, ExcelError>
Auto Trait Implementations§
impl Freeze for WorkdayIntlFn
impl RefUnwindSafe for WorkdayIntlFn
impl Send for WorkdayIntlFn
impl Sync for WorkdayIntlFn
impl Unpin for WorkdayIntlFn
impl UnsafeUnpin for WorkdayIntlFn
impl UnwindSafe for WorkdayIntlFn
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more