@syncfusion/ej2-spreadsheet
Version:
Feature-rich JavaScript Spreadsheet (Excel) control with built-in support for selection, editing, formatting, importing and exporting to Excel
584 lines (583 loc) • 19.1 kB
TypeScript
import { IBasicFormula } from '../common/index';
import { Calculate } from '../base/index';
/**
* Represents the basic formulas module.
*/
export declare class BasicFormulas {
private parent;
formulas: IBasicFormula[];
private isConcat;
constructor(parent?: Calculate);
private init;
private addFormulaCollection;
/**
* @hidden
* @param {string[]} args - specify the args
* @returns {string | number} - Comput sum value
*/
ComputeSUM(...args: string[]): string | number;
/**
* @hidden
* @param {string[]} args - specify the args.
* @returns {string | number} - Compute the Integer.
*/
ComputeINT(...args: string[]): string | number;
/**
* @hidden
* @param {string[]} args - specify the args.
* @returns {Date | string} - Compute the Today.
*/
ComputeTODAY(...args: string[]): Date | string;
/**
* @hidden
* @param {string[]} args - specify the args.
* @returns {number} - Compute the day from the date.
*/
ComputeWEEKDAY(...args: string[]): number | string;
/**
* @hidden
* @param {string[]} args - specify the args.
* @returns {string} - Compute to the Proper casing.
*/
ComputePROPER(...args: string[]): string;
/**
* @hidden
* @param {string[]} args - specify the args.
* @returns {string | number} - Compute the Sum product.
*/
ComputeSUMPRODUCT(...args: string[]): string | number;
/**
* @hidden
* @param {string[]} args - specify the args.
* @returns {string | number} - Compute the Roundup.
*/
ComputeROUNDUP(...args: string[]): string | number;
/**
* @hidden
* @param {string[]} args - specify the args.
* @returns {string | number} - Compute the Rounddown.
*/
ComputeROUNDDOWN(...args: string[]): string | number;
/**
* @hidden
* @param {string[]} args - specify the args.
* @returns {number | string} - Compute the count.
*/
ComputeCOUNT(...args: string[]): number | string;
/**
* @hidden
* @param {string[]} args - specify the args.
* @returns {Date | string} - Compute the Date.
*/
ComputeDATE(...args: string[]): Date | string;
/**
* @hidden
* @param {string[]} args - specify the args.
* @returns {number | string} - Compute the ceiling.
*/
ComputeFLOOR(...args: string[]): number | string;
/**
* @hidden
* @param {string[]} args - specify the args.
* @returns {number | string} - Compute the ceiling.
*/
ComputeCEILING(...args: string[]): number | string;
/**
* @hidden
* @param {string[]} args - specify the serialNumber.
* @returns {number | string} - Compute the DAY.
*/
ComputeDAY(...args: string[]): number | string;
/**
* @hidden
* @param {string[]} args - specify the args.
* @returns {string | number} - Compute the IF value.
*/
ComputeIF(...args: string[]): string | number;
/**
* @hidden
* @param {string[]} args - specify the args.
* @returns {number | string} - Compute the IFERROR value.
*/
ComputeIFERROR(...args: string[]): number | string;
/**
* @hidden
* @param {string[]} range - specify the range.
* @returns {string | number} - Compute the PRODUCT value.
*/
ComputePRODUCT(...range: string[]): string | number;
/**
* @hidden
* @param {string[]} args - specify the range.
* @returns {string | number} - Compute the Choose value.
*/
ComputeDAYS(...args: string[]): number | string;
/**
* @hidden
* @param {string[]} argArr - specify the range.
* @returns {number | string | number[] | string[]} - Compute the unique.
*/
ComputeUNIQUE(...argArr: string[]): number | string | number[] | string[];
private setValueRefresh;
private checkSpill;
clearDependency(value: string): void;
/**
* @hidden
* @param {string} args - specify the args.
* @returns {string} - Compute the text or null value.
*/
ComputeT(...args: string[]): string;
/**
* @hidden
* @param {string} args - specify the args.
* @returns {string | boolean} - Compute the hours.
*/
ComputeHOUR(...args: string[]): number | string;
/**
* @hidden
* @param {string} argArr - specify the args.
* @returns {string | boolean} - Compute the hours.
*/
ComputeMINUTE(...argArr: string[]): number | string;
/**
* @hidden
* @param {string} args - specify the args.
* @returns {string | boolean} - Compute the hours.
*/
ComputeSECOND(...args: string[]): number | string;
/**
* @hidden
* @param {string} argsVal - specify the args.
* @returns {string | boolean} - Compute the months.
*/
ComputeMONTH(...argsVal: string[]): number | string;
/**
* @hidden
* @param {string} args - specify the args.
* @returns {string } - Compute the time and date value.
*/
ComputeNOW(...args: string[]): string;
/**
* @hidden
* @param {string} args - specify the args.
* @returns {string | boolean} - Compute the exact value or not.
*/
ComputeEXACT(...args: string[]): string | boolean;
/**
* @hidden
* @param {string} args - specify the args.
* @returns {string | boolean} - Compute the exact value or not.
*/
ComputeLEN(...args: string[]): string | number;
/**
* @hidden
* @param {string} args - specify the args.
* @returns {string | boolean} - Compute the remainder from the given numbers.
*/
ComputeMOD(...args: string[]): string | number;
/**
* @hidden
* @param {string} args - specify the args.
* @returns {string | boolean} - Compute the next odd number.
*/
ComputeODD(...args: string[]): string | number;
/**
* @hidden
* @param {string} args - specify the args.
* @returns {string | boolean} - Compute the next even number.
*/
ComputeEVEN(...args: string[]): string | number;
/**
* @hidden
* @param {string} args - specify the args.
* @returns {string | boolean} - Compute the value of pi.
*/
ComputePI(...args: string[]): string | number;
/**
* @hidden
* @param {string} args - specify the args.
* @returns {string | boolean} - Compute the median value.
*/
ComputeMEDIAN(...args: string[]): string | number;
/**
* @hidden
* @param {string} args - specify the args.
* @returns {string | boolean} - Compute the edate value.
*/
ComputeEDATE(...args: string[]): Date | string;
/**
* @hidden
* @param {string} args - specify the args.
* @returns {string | boolean} - Compute the number of months value.
*/
ComputeEOMONTH(...args: string[]): Date | string;
/**
* @hidden
* @param {string} args - specify the args.
* @returns {string | boolean} - Compute the date value.
*/
ComputeDATEVALUE(...args: string[]): Date | string;
/**
* @hidden
* @param {string} args - specify the args.
* @returns {string | boolean} - Compute the count blank value.
*/
ComputeCOUNTBLANK(...args: string[]): string | number;
/**
* @hidden
* @param {string} args - specify the args.
* @returns {string | boolean} - Compute the factorial value.
*/
ComputeFACT(...args: string[]): string | number;
/**
* @hidden
* @param {string} args - specify the args.
* @returns {string | boolean} - Compute the decimal value.
*/
ComputeDECIMAL(...args: string[]): string | number;
/**
* @hidden
* @param {string} args - specify the args.
* @returns {string | boolean} - Compute the degrees value.
*/
ComputeDEGREES(...args: string[]): string | number;
/**
* @hidden
* @param {string} argArr - specify the args.
* @returns {string | boolean} - Compute the cell address.
*/
ComputeADDRESS(...argArr: string[]): string | number;
/**
* @hidden
* @param {string} args - specify the args.
* @returns {string | boolean} - Compute the time.
*/
ComputeTIME(...args: string[]): string | number;
/**
* @hidden
* @param {string} args - specify the args.
* @returns {string | boolean} - Compute the char value.
*/
ComputeCHAR(...args: string[]): string | number;
/**
* @hidden
* @param {string} args - specify the args.
* @returns {string | boolean} - Compute the code value.
*/
ComputeCODE(...args: string[]): string | number;
/**
* @hidden
* @param {string} args - specify the args.
* @returns {string | boolean} - Compute the currency value.
*/
ComputeDOLLAR(...args: string[]): string | number;
/**
* @hidden
* @param {string} args - specify the args.
* @returns {string | boolean} - Compute the k-th smallest value.
*/
ComputeSMALL(...args: string[]): string | number;
/**
* @hidden
* @param {string} args - specify the args.
* @returns {string | boolean} - Compute the k-th largest value.
*/
ComputeLARGE(...args: string[]): string | number;
/**
* @hidden
* @param {string[]} args - specify the args.
* @returns {string | number} - Compute the Choose value.
*/
ComputeCHOOSE(...args: string[]): string | number;
/**
* @hidden
* @param {string[]} range - specify the range.
* @returns {string | number} - Compute the SUMIF value.
*/
ComputeSUMIF(...range: string[]): string | number;
/**
* @hidden
* @param {string[]} absValue - specify the absValue.
* @returns {string | number} - Compute the AVERAGE value.
*/
ComputeABS(...absValue: string[]): string | number;
/**
* @hidden
* @param {string[]} args - specify the range.
* @returns {string} - Compute the AVERAGE value.
*/
ComputeAVERAGE(...args: string[]): string;
/**
* @hidden
* @param {string[]} range - specify the range.
* @returns {string | number} - Compute the AVERAGEIF value.
*/
ComputeAVERAGEIF(...range: string[]): string | number;
/**
* @hidden
* @param {string[]} range - specify the range.
* @returns {string} - Compute the CONCATENATE value.
*/
ComputeCONCATENATE(...range: string[]): string;
/**
* @hidden
* @param {string[]} range - specify the range.
* @returns {string} - Compute the CONCAT value.
*/
ComputeCONCAT(...range: string[]): string;
/**
* @hidden
* @param {string[]} args - specify the args.
* @returns {string | number} - Compute the MAX value.
*/
ComputeMAX(...args: string[]): string;
/**
* @hidden
* @param {string[]} args - specify the args.
* @returns {string} - Compute the MIN value.
*/
ComputeMIN(...args: string[]): string;
/**
* @hidden
* @param {string[]} args - specify the args.
* @returns {string} - Compute the RAND value.
*/
ComputeRAND(...args: string[]): string;
/**
* @hidden
* @param {string[]} args - specify the args.
* @returns {string} - Compute the AND value.
*/
ComputeAND(...args: string[]): string;
/**
* @hidden
* @param {string[]} args - specify the args.
* @returns {string} - Compute the OR value.
*/
ComputeOR(...args: string[]): string;
/**
* @hidden
* @param {string[]} args - specify the args.
* @returns {string} - Compute the NOT value.
*/
ComputeNOT(...args: string[]): string;
/**
* @hidden
* @param {string[]} args - specify the range.
* @returns {string | number} - Compute the find value.
*/
ComputeFIND(...args: string[]): string | number;
/**
* @hidden
* @param {string[]} argArr - specify the range.
* @returns {string | number} - Compute the index.
*/
ComputeINDEX(...argArr: string[]): string | number;
private getSheetReference;
/**
* @hidden
* @param {string[]} range - specify the range.
* @returns {string | number} - Compute the if.
*/
ComputeIFS(...range: string[]): string | number;
/**
* @hidden
* @param {string[]} args - specify the range.
* @returns {number | string} - Compute the count.
*/
ComputeCOUNTA(...args: string[]): number | string;
/**
* @hidden
* @param {string[]} args - specify the range.
* @returns {number | string} - Compute the average.
*/
ComputeAVERAGEA(...args: string[]): number | string;
private processLogicalCellValue;
/**
* @hidden
* @param {string[]} args - specify the range.
* @returns {number | string} - Compute the count if.
*/
ComputeSORT(...args: string[]): number | string;
/**
* @hidden
* @param {string[]} args - specify the range.
* @returns {number | string} - Compute the count if.
*/
ComputeCOUNTIF(...args: string[]): number | string;
/**
* @hidden
* @param {string[]} range - specify the range.
* @returns {string | number} - Compute the sum if.
*/
ComputeSUMIFS(...range: string[]): string | number;
private calculateIFS;
/**
* @hidden
* @param {string[]} args - specify the range.
* @returns {string | number} - Compute the Text.
*/
ComputeTEXT(...args: string[]): string | number;
/**
* @hidden
* @param {string[]} args - specify the range.
* @returns {number | string} - Compute the count if.
*/
ComputeCOUNTIFS(...args: string[]): number | string;
/**
* @hidden
* @param {string[]} args - specify the range.
* @returns {number | string} - Compute the Average if.
*/
ComputeAVERAGEIFS(...args: string[]): number | string;
/**
* @hidden
* @param {string[]} args - specify the range.
* @returns {string | number} - Compute the Match.
*/
ComputeMATCH(...args: string[]): string | number;
/**
* @hidden
* @param {string[]} range - specify the range.
* @returns {string | number} - Compute the lookup value.
*/
ComputeLOOKUP(...range: string[]): string | number;
/**
* @hidden
* @param {string[]} range - specify the range.
* @returns {string | number} - Compute the vlookup value.
*/
ComputeVLOOKUP(...range: string[]): string | number;
/**
* @hidden
* @param {string[]} range - specify the range.
* @returns {string | number} - Compute the hlookup value.
*/
ComputeHLOOKUP(...range: string[]): string | number;
/**
* @hidden
* @param {string[]} argArr - specify the range.
* @returns {string | number} - Compute the sub total value.
*/
ComputeSUBTOTAL(...argArr: string[]): string | number;
/**
* @hidden
* @param {string[]} argValue - specify the range.
* @returns {string | number} - Compute the Radians value.
*/
ComputeRADIANS(...argValue: string[]): string | number;
/**
* @hidden
* @param {string[]} args - specify the range.
* @returns {string | number} - Compute the random between value.
*/
ComputeRANDBETWEEN(...args: string[]): string | number;
/**
* @hidden
* @param {string[]} argValue - specify the range.
* @returns {string | number} - Compute the slope value.
*/
ComputeSLOPE(...argValue: string[]): string | number;
/**
* @hidden
* @param {string[]} argValue - specify the range.
* @returns {string | number} - Compute the intercept.
*/
ComputeINTERCEPT(...argValue: string[]): string | number;
/**
* @hidden
* @param {string[]} logValue - specify the log value.
* @returns {string | number} - Compute the value.
*/
ComputeLN(...logValue: string[]): string | number;
/**
* @hidden
* @param {string[]} logValue - specify the log value.
* @returns {boolean | string} - Compute the Isnumber value.
*/
ComputeISNUMBER(...logValue: string[]): boolean | string;
/**
* @hidden
* @param {string[]} logValue - specify the log value.
* @returns {number | string} - Compute the round value.
*/
ComputeROUND(...logValue: string[]): number | string;
private preciseRound;
/**
* @hidden
* @param {string[]} argArr - specify the log value.
* @returns {boolean | string} - Compute the power value.
*/
ComputePOWER(...argArr: string[]): boolean | string;
/**
* @hidden
* @param {string[]} args - specify the args.
* @returns {number | string} - Computes a positive square root of the given number.
*/
ComputeSQRT(...args: string[]): number | string;
/**
* @hidden
* @param {string[]} logValue - specify the log value.
* @returns {number | string} - Compute the log value.
*/
ComputeLOG(...logValue: string[]): number | string;
/**
* @hidden
* @param {string[]} logValue - specify the log value.
* @returns {boolean | string} - Compute the trunc value.
*/
ComputeTRUNC(...logValue: string[]): boolean | string;
/**
* @hidden
* @param {string[]} logValue - specify the log value.
* @returns {boolean | string} - Compute the expression.
*/
ComputeEXP(...logValue: string[]): boolean | string;
/**
* @hidden
* @param {string[]} logValue - specify the log value
* @returns {boolean | string} - compute the value.
*/
ComputeGEOMEAN(...logValue: string[]): boolean | string;
/**
* @hidden
* @param {string[]} range - specify the args.
* @returns {number | string} - Returns the square of the Pearson product moment correlation coefficient based on data points in known_y's and known_x's.
*/
ComputeRSQ(...range: string[]): string | number;
/**
* @hidden
* @param {string[]} xValues - specify the x values
* @param {string[]} yValues - specify the y values
* @param {number} meanX - specify the mean of x values
* @param {number} meanY - specify the mean of y values
* @returns {number} - Returns correlation value
*/
private getCorrelation;
/**
* @hidden
* @param {string[]} xValues - specify the x values
* @param {string[]} yValues - specify the y values
* @returns {number[]} meanX - returns array of mean values of x and y values
*/
private getMeanArray;
private getDataCollection;
/**
* @hidden
* @param {string} value - specify the value
* @returns {number} - Returns parse double value.
*/
private parseDouble;
/**
* @hidden
* @param {string} value - specify the value
* @returns {string} - Returns spreadsheet display text.
*/
private spreadsheetDisplayText;
/**
* @hidden
* @param {string} value - specify the value
* @returns {string} - Returns spreadsheet format.
*/
private spreadsheetFormat;
}