Aspose::Cells::Worksheet::CalculateArrayFormula method

Worksheet::CalculateArrayFormula(const U16String&, const CalculationOptions&) method

Calculates a formula as array formula.

Vector<Vector<Aspose::Cells::Object>> Aspose::Cells::Worksheet::CalculateArrayFormula(const U16String &formula, const CalculationOptions &opts)
ParameterTypeDescription
formulaconst U16String&Formula to be calculated.
optsconst CalculationOptions&Options for calculating formula

See Also

Worksheet::CalculateArrayFormula(const char16_t*, const CalculationOptions&) method

Calculates a formula as array formula.

Vector<Vector<Aspose::Cells::Object>> Aspose::Cells::Worksheet::CalculateArrayFormula(const char16_t *formula, const CalculationOptions &opts)
ParameterTypeDescription
formulaconst char16_t*Formula to be calculated.
optsconst CalculationOptions&Options for calculating formula

See Also

Worksheet::CalculateArrayFormula(const U16String&, const CalculationOptions&, int32_t, int32_t) method

Calculates a formula as array formula.

Vector<Vector<Aspose::Cells::Object>> Aspose::Cells::Worksheet::CalculateArrayFormula(const U16String &formula, const CalculationOptions &opts, int32_t maxRowCount, int32_t maxColumnCount)
ParameterTypeDescription
formulaconst U16String&Formula to be calculated.
optsconst CalculationOptions&Options for calculating formula
maxRowCountint32_tthe maximum row count of resultant data. If it is non-positive or greater than the actual row count, then actual row count will be used.
maxColumnCountint32_tthe maximum column count of resultant data. If it is non-positive or greater than the actual row count, then actual column count will be used.

ReturnValue

Calculated formula result.

Remarks

The formula will be taken as dynamic array formula to calculate the dimension and result. User specified maximum dimension is used for cases that the calculated result is large data set (for example, the calculated result may correspond to a whole row or column data) but user does not need so large an array according to business requirement or for performance consideration.

See Also

Worksheet::CalculateArrayFormula(const char16_t*, const CalculationOptions&, int32_t, int32_t) method

Calculates a formula as array formula.

Vector<Vector<Aspose::Cells::Object>> Aspose::Cells::Worksheet::CalculateArrayFormula(const char16_t *formula, const CalculationOptions &opts, int32_t maxRowCount, int32_t maxColumnCount)
ParameterTypeDescription
formulaconst char16_t*Formula to be calculated.
optsconst CalculationOptions&Options for calculating formula
maxRowCountint32_tthe maximum row count of resultant data. If it is non-positive or greater than the actual row count, then actual row count will be used.
maxColumnCountint32_tthe maximum column count of resultant data. If it is non-positive or greater than the actual row count, then actual column count will be used.

ReturnValue

Calculated formula result.

Remarks

The formula will be taken as dynamic array formula to calculate the dimension and result. User specified maximum dimension is used for cases that the calculated result is large data set (for example, the calculated result may correspond to a whole row or column data) but user does not need so large an array according to business requirement or for performance consideration.

See Also

Worksheet::CalculateArrayFormula(const U16String&, const FormulaParseOptions&, const CalculationOptions&, int32_t, int32_t, int32_t, int32_t, const CalculationData&) method

Calculates a formula as array formula.

Vector<Vector<Aspose::Cells::Object>> Aspose::Cells::Worksheet::CalculateArrayFormula(const U16String &formula, const FormulaParseOptions &pOpts, const CalculationOptions &cOpts, int32_t baseCellRow, int32_t baseCellColumn, int32_t maxRowCount, int32_t maxColumnCount, const CalculationData &calculationData)
ParameterTypeDescription
formulaconst U16String&Formula to be calculated.
pOptsconst FormulaParseOptions&Options for parsing formula
cOptsconst CalculationOptions&Options for calculating formula
baseCellRowint32_tThe row index of the base cell.
baseCellColumnint32_tThe column index of the base cell.
maxRowCountint32_tThe maximum row count of resultant data. If it is non-positive or greater than the actual row count, then actual row count will be used.
maxColumnCountint32_tThe maximum column count of resultant data. If it is non-positive or greater than the actual row count, then actual column count will be used.
calculationDataconst CalculationData&The calculation data. It is used for the situation that user needs to calculate some static formulas when implementing custom calculation engine. For such kind of situation, user needs to specify it with the calculation data provided for AbstractCalculationEngine.Calculate(CalculationData).

ReturnValue

Calculated formula result.

Remarks

The formula will be taken as dynamic array formula to calculate the dimension and result. User specified maximum dimension is used for cases that the calculated result is large data set (for example, the calculated result may correspond to a whole row or column data) but user does not need so large an array according to business requirement or for performance consideration.

See Also

Worksheet::CalculateArrayFormula(const char16_t*, const FormulaParseOptions&, const CalculationOptions&, int32_t, int32_t, int32_t, int32_t, const CalculationData&) method

Calculates a formula as array formula.

Vector<Vector<Aspose::Cells::Object>> Aspose::Cells::Worksheet::CalculateArrayFormula(const char16_t *formula, const FormulaParseOptions &pOpts, const CalculationOptions &cOpts, int32_t baseCellRow, int32_t baseCellColumn, int32_t maxRowCount, int32_t maxColumnCount, const CalculationData &calculationData)
ParameterTypeDescription
formulaconst char16_t*Formula to be calculated.
pOptsconst FormulaParseOptions&Options for parsing formula
cOptsconst CalculationOptions&Options for calculating formula
baseCellRowint32_tThe row index of the base cell.
baseCellColumnint32_tThe column index of the base cell.
maxRowCountint32_tThe maximum row count of resultant data. If it is non-positive or greater than the actual row count, then actual row count will be used.
maxColumnCountint32_tThe maximum column count of resultant data. If it is non-positive or greater than the actual row count, then actual column count will be used.
calculationDataconst CalculationData&The calculation data. It is used for the situation that user needs to calculate some static formulas when implementing custom calculation engine. For such kind of situation, user needs to specify it with the calculation data provided for AbstractCalculationEngine.Calculate(CalculationData).

ReturnValue

Calculated formula result.

Remarks

The formula will be taken as dynamic array formula to calculate the dimension and result. User specified maximum dimension is used for cases that the calculated result is large data set (for example, the calculated result may correspond to a whole row or column data) but user does not need so large an array according to business requirement or for performance consideration.

See Also