Top Description Fields Constructors Methods
org.apache.poi.ss.formula.atp

pack-priv final Class WorkdayIntlFunction

extends Object
implements FreeRefFunction
Class Inheritance
All Implemented Interfaces
org.apache.poi.ss.formula.functions.FreeRefFunction
Imports
org.apache.poi.ss.formula.OperationEvaluationContext, org.apache.poi.ss.formula.eval.BlankEval, .ErrorEval, .EvaluationException, .NumberEval, .ValueEval, org.apache.poi.ss.formula.functions.FreeRefFunction, org.apache.poi.ss.usermodel.DateUtil

Implementation of Excel 'Analysis ToolPak' function WORKDAY.INTL()
Returns the date past a number of workdays beginning at a start date, considering an interval of holidays.

Syntax
WORKDAY.INTL(startDate, days, weekendType, holidays)

https://support.microsoft.com/en-us/office/workday-intl-function-a378391c-9ba7-4678-8a39-39611a9bf81d

Since
POI 5.2.0

Field Summary

Modifier and TypeField and Description
private ArgumentsEvaluator
public static final FreeRefFunction

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public ValueEval

Returns:

ValueEval with date as its value.
evaluate
(ValueEval[]
the pre-evaluated arguments for this function. args is never null, nor are any of its elements.
args
,
OperationEvaluationContext
primarily used to identify the source cell containing the formula being evaluated. may also be used to dynamically create reference evals.
ec
)

Implements org.apache.poi.ss.formula.functions.FreeRefFunction.evaluate.

Evaluate for WORKDAY.INTL.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

evaluatorback to summary
private ArgumentsEvaluator evaluator
instanceback to summary
public static final FreeRefFunction instance

Constructor Detail

WorkdayIntlFunctionback to summary
private WorkdayIntlFunction(ArgumentsEvaluator anEvaluator)

Method Detail

evaluateback to summary
public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec)

Implements org.apache.poi.ss.formula.functions.FreeRefFunction.evaluate.

Evaluate for WORKDAY.INTL. Given a date, a number of days, an optional weekend type and an optional date or interval of holidays, determines which date it is past number of parameterized workdays.

Parameters
args:ValueEval[]

Doc from org.apache.poi.ss.formula.functions.FreeRefFunction.evaluate.

the pre-evaluated arguments for this function. args is never null, nor are any of its elements.

ec:OperationEvaluationContext

Doc from org.apache.poi.ss.formula.functions.FreeRefFunction.evaluate.

primarily used to identify the source cell containing the formula being evaluated. may also be used to dynamically create reference evals.

Returns:ValueEval

ValueEval with date as its value.