← All packages

API reference

@searsuite/sear-domain-formula-engine-ts

The TypeScript formula parser, evaluator, dependency graph, and built-in function runtime.

606 exportsderived from source

classAggregationCachesource ↗
class AggregationCache extends IAggregationCache

Caches incremental aggregate results for large formula ranges.

constructorconstructor
AggregationCache(): AggregationCache
propertysymbolstatic
readonly symbol: typeof symbol
methodclear
clear(): void

Clears all caches.

methodenforceCommandBoundary
enforceCommandBoundary(isCommandExecuting: (): boolean): void

Binds cache writes to the owning editor command dispatch after initialization.

isCommandExecuting: (): boolean
methodgetCount
getCount(startRow: number, startCol: number, endRow: number, endCol: number): number

Gets the COUNT for a range, meaning the number of numeric cells.

Uses the same cache and incremental strategy as getSum.

startRow: number
startCol: number
endRow: number
endCol: number
methodgetSum
getSum(startRow: number, startCol: number, endRow: number, endCol: number): number

Gets the SUM for a range.

Cache hit returns directly in O(1). Cache miss requires a full O(N) scan on the first call.

Called by FormulaEvaluator while evaluating SUM, not exposed directly to users.

startRow: number

Start row (0-based).

startCol: number

Start column (0-based).

endRow: number

End row (0-based).

endCol: number

End column (0-based).

methodonCellChanged
onCellChanged(row: number, col: number, oldVal: FormulaValue, newVal: FormulaValue): void

Notifies the cache that one cell value changed.

Finds every cached range covering the cell and updates incrementally:

  • newSum = oldSum - oldVal + newVal
  • FormulaError oldVal/newVal values are treated as non-numeric and do not affect sum.
row: number

Changed row (0-based).

col: number

Changed column (0-based).

oldVal: FormulaValue

Previous value.

newVal: FormulaValue

New value.

methodonStructureChanged
onStructureChanged(): void

Notifies the cache that rows or columns were inserted or deleted.

Structural changes invalidate all range caches because range coordinates have changed, so the cache must be cleared.

methodsetCount
setCount(startRow: number, startCol: number, endRow: number, endCol: number, count: number): void

Stores a successfully calculated COUNT for a rectangular range.

startRow: number
startCol: number
endRow: number
endCol: number
count: number
methodsetSum
setSum(startRow: number, startCol: number, endRow: number, endCol: number, sum: number): void

Stores a successfully calculated SUM for a rectangular range.

startRow: number
startCol: number
endRow: number
endCol: number
sum: number
classAsyncFormulaServiceCachesource ↗
class AsyncFormulaServiceCache<TKey, TValue>

Host-driven async cache. read() never starts work or returns a Promise.

constructorconstructor
AsyncFormulaServiceCache<TKey, TValue>(loader: (key: TKey): Promise<TValue>, warn?: (message: string, error: unknown): void): AsyncFormulaServiceCache<TKey, TValue>
loader: (key: TKey): Promise<TValue>
warn: (message: string, error: unknown): void
methodclear
clear(): void

Drops values and ignores results from requests started before this boundary.

methoddestroy
destroy(): void
methodload
load(key: TKey): Promise<void>

Loads one value, deduplicating concurrent requests for the same key.

key: TKey
methodread
read(key: TKey): FormulaServiceCacheResult<TValue>
key: TKey
methodsubscribeInvalidation
subscribeInvalidation(listener: (): void): (): void
listener: (): void
classDependencyGraphsource ↗
class DependencyGraph extends IDependencyGraph

Tracks formula dependencies, dirty propagation, evaluation readiness, and cycles.

constructorconstructor
DependencyGraph(): DependencyGraph
propertysymbolstatic
readonly symbol: typeof symbol

DI token for resolving DependencyGraph.

memberpendingCount
pendingCount: unknown

Number of dirty formulas still waiting for evaluation.

membersize
size: unknown

Total number of formula cells currently in the graph.

methodclear
clear(): void

Clears all data.

methodenforceCommandBoundary
enforceCommandBoundary(isCommandExecuting: (): boolean): void

Binds mutations to the owning editor command dispatch after initialization.

isCommandExecuting: (): boolean
methodgetDependencies
getDependencies(formulaKey: number): readonly Dependency[]

Gets the range-level dependencies owned by one formula cell.

Returns defensive copies so callers can inspect dependency edges without mutating the graph's internal forward-dependency store.

formulaKey: number
methodgetDependents
getDependents(key: number): number[]

Gets every formula that depends on one cell.

Merges results from three lookup paths:

  1. cellRevDeps (cell + small-range expansion) — O(1)
  2. columnRanges (column-grouped intervals) — O(log N + K)
  3. overflowRanges (very wide ranges) — O(M)
key: number
methodgetFormulaKeys
getFormulaKeys(): readonly number[]

Gets a defensive snapshot of formula cells currently registered in the graph.

methodgetLastCycleKeys
getLastCycleKeys(): number[]

Returns the last cycle keys.

methodgetNextReadyBatch
getNextReadyBatch(viewport: Set<number>, maxCount: number): number[]

Gets currently dirty formulas that can be evaluated immediately.

Two-pass scan: viewport first, then off-screen formulas. Viewport priority ensures visible formulas update first.

viewport: Set<number>
maxCount: number
methodisDirty
isDirty(key: number): boolean

Reports whether one formula cell is currently dirty.

key: number
methodmarkClean
markClean(key: number): void

Marks one formula clean.

Unlocks downstream dependencies by decrementing dirtyDepCount for every dirty formula that depends on key.

key: number
methodmarkDirty
markDirty(changedKeys: number[]): void

Marks all affected formulas dirty.

Propagates by BFS from changedKeys along reverse-dependency edges. Only marks; does not sort or calculate.

changedKeys: number[]
methodonStructureChanged
onStructureChanged(changes: StructureChange[]): void

Notifies the graph about structural changes.

For row/column insertions and deletions, updates range/cell coordinates in every formula's deps and rebuilds reverse indexes.

changes: StructureChange[]
methodremoveCell
removeCell(formulaKey: number): void

Removes one formula cell.

formulaKey: number
methodupdateCell
updateCell(formulaKey: number, depsList: Dependency[]): void

Registers or updates dependencies for one formula cell.

formulaKey: number
depsList: Dependency[]
classFormulaCubeCachesource ↗
class FormulaCubeCache extends FormulaCubeService

Host-driven OLAP cache. Formula evaluation reads synchronously and never starts connection I/O.

constructorconstructor
FormulaCubeCache(loader: (query: FormulaCubeQuery): Promise<FormulaCubeResult>, warn?: (message: string, error: unknown): void): FormulaCubeCache
loader: (query: FormulaCubeQuery): Promise<FormulaCubeResult>
warn: (message: string, error: unknown): void
methodclear
clear(): void
methoddestroy
destroy(): void
methodload
load(query: FormulaCubeQuery): Promise<void>
query: FormulaCubeQuery
methodread
read(query: FormulaCubeQuery): FormulaServiceCacheResult<FormulaCubeResult>
query: FormulaCubeQuery
methodsubscribeInvalidation
subscribeInvalidation(listener: (): void): (): void
listener: (): void
classFormulaEvaluatorsource ↗
class FormulaEvaluator extends IFormulaEvaluator

Evaluates parsed formulas against an explicit host-provided context.

constructorconstructor
FormulaEvaluator(registry: IFunctionRegistry, aggCache: IAggregationCache): FormulaEvaluator

Creates a FormulaEvaluator instance.

registry: IFunctionRegistry
aggCache: IAggregationCache
propertysymbolstatic
readonly symbol: typeof symbol

DI token for resolving FormulaEvaluator.

methodevaluate
evaluate(ast: FormulaAST, context: EvalContext): FormulaValue

Evaluates one AST.

Recursively traverses each AST node and executes the matching operation.

ast: FormulaAST
context: EvalContext
methodevaluateBatch
evaluateBatch(asts: { ast: FormulaAST; key: number }[], context: EvalContext): EvalResult[]

Batch evaluation.

The TS implementation evaluates one AST at a time. A WASM implementation can process all ASTs on the Rust side in one pass.

asts: { ast: FormulaAST; key: number }[]
context: EvalContext
methodregisterFunction
registerFunction(fn: FormulaFunction): void

Registers a custom function.

fn: FormulaFunction
classFormulaExecutionBudgetsource ↗
class FormulaExecutionBudget extends FormulaEvaluationBudget

Mutable, deterministic guard against unbounded formula work.

constructorconstructor
FormulaExecutionBudget(maxSteps?: number): FormulaExecutionBudget
maxSteps: number
propertymaxSteps
readonly maxSteps: number
methodconsumeStep
consumeStep(): boolean
classFormulaExternalServiceRegistrysource ↗
class FormulaExternalServiceRegistry extends IFormulaExternalServiceProvider

Tokenized editor-local external-service registry with isolated listener failures.

constructorconstructor
FormulaExternalServiceRegistry(warn?: (message: string, error: unknown): void): FormulaExternalServiceRegistry
warn: (message: string, error: unknown): void
methoddestroy
destroy(ownerToken?: object): void
ownerToken: object
methodenforceCommandBoundary
enforceCommandBoundary(isCommandExecuting: (): boolean, dispatchRemoval: (id: number): void): void
isCommandExecuting: (): boolean
dispatchRemoval: (id: number): void
methodenforceTeardownBoundary
enforceTeardownBoundary(ownerToken: object): void

Reserves cleanup of an assembled registry for its owning editor.

ownerToken: object
methodget
get<T>(definition: FormulaExternalServiceDefinition<T>): T | undefined
definition: FormulaExternalServiceDefinition<T>
methodinvalidate
invalidate<T>(definition: FormulaExternalServiceDefinition<T>): void
definition: FormulaExternalServiceDefinition<T>
methodregister
register<T>(definition: FormulaExternalServiceDefinition<T>, service: T): (): void
definition: FormulaExternalServiceDefinition<T>
service: T
methodsubscribeInvalidation
subscribeInvalidation(listener: (serviceIds: readonly string[]): void): (): void
listener: (serviceIds: readonly string[]): void
methodunregisterRegistration
unregisterRegistration(id: number): void
id: number
classFormulaFormattersource ↗
class FormulaFormatter

Formats the shared FormulaAST back to formula source text.

constructorconstructor
FormulaFormatter(): FormulaFormatter
methodformat
format(ast: FormulaAST, options?: WorkbookFormulaFormatOptions): string
ast: FormulaAST
options: WorkbookFormulaFormatOptions
classFormulaGoogleServiceCachesource ↗
class FormulaGoogleServiceCache extends FormulaGoogleService

Host-driven cache for AI, import, finance, and translation formulas.

constructorconstructor
FormulaGoogleServiceCache(loader: (request: FormulaGoogleRequest): Promise<FormulaValue>, warn?: (message: string, error: unknown): void): FormulaGoogleServiceCache
loader: (request: FormulaGoogleRequest): Promise<FormulaValue>
warn: (message: string, error: unknown): void
methodclear
clear(): void
methoddestroy
destroy(): void
methodload
load(request: FormulaGoogleRequest): Promise<void>
request: FormulaGoogleRequest
methodread
read(request: FormulaGoogleRequest): FormulaServiceCacheResult<FormulaValue>
request: FormulaGoogleRequest
methodsubscribeInvalidation
subscribeInvalidation(listener: (): void): (): void
listener: (): void
classFormulaLexicalScopesource ↗
class FormulaLexicalScope extends FormulaEvaluationScope

Case-insensitive lexical scope for LET bindings.

constructorconstructor
FormulaLexicalScope(parent?: FormulaEvaluationScope): FormulaLexicalScope
parent: FormulaEvaluationScope
propertyparent
readonly parent?: FormulaEvaluationScope
methodget
get(name: string): FormulaValue | undefined
name: string
methodset
set(name: string, value: FormulaValue): void
name: string
value: FormulaValue
classFormulaParsersource ↗
class FormulaParser extends IFormulaParser

Parses formula source and rewrites structural references.

constructorconstructor
FormulaParser(): FormulaParser
propertysymbolstatic
readonly symbol: typeof symbol

DI token for resolving FormulaParser.

methodextractDependencies
extractDependencies(ast: FormulaAST): Dependency[]

Extracts all dependencies from an AST.

Traverses the AST and collects all cell/range nodes. The returned Dependency list stays range-level and is not expanded per cell.

ast: FormulaAST
methodparse
parse(formula: string): FormulaAST

Parses a formula string into an AST.

ReturnsParsed AST.

formula: string

Formula string including the leading '=', such as "=A1+B1".

methodshiftReferences
shiftReferences(ast: FormulaAST, changes: StructureChange[]): FormulaAST

Shifts references by rewriting row/column references for structural changes.

Uses immutable updates: creates a new AST and never mutates the original. If no reference needs shifting, returns the original AST by reference.

ast: FormulaAST
changes: StructureChange[]
classFormulaStockHistoryCachesource ↗
class FormulaStockHistoryCache extends FormulaStockHistoryService

Host-driven STOCKHISTORY cache; the loader owns transport, credentials, policy, and normalization.

constructorconstructor
FormulaStockHistoryCache(loader: (request: FormulaStockHistoryRequest): Promise<FormulaError | unknown[][]>, warn?: (message: string, error: unknown): void): FormulaStockHistoryCache
loader: (request: FormulaStockHistoryRequest): Promise<FormulaError | FormulaValue[][]>
warn: (message: string, error: unknown): void
methodclear
clear(): void
methoddestroy
destroy(): void
methodload
load(request: FormulaStockHistoryRequest): Promise<void>
request: FormulaStockHistoryRequest
methodread
read(request: FormulaStockHistoryRequest): FormulaServiceCacheResult<FormulaError | FormulaValue[][]>
request: FormulaStockHistoryRequest
methodsubscribeInvalidation
subscribeInvalidation(listener: (): void): (): void
listener: (): void
classFormulaTextServiceRegistrysource ↗
class FormulaTextServiceRegistry extends IFormulaTextServiceProvider

Default tokenized editor-local registry for metadata and cached external formula services.

constructorconstructor
FormulaTextServiceRegistry(): FormulaTextServiceRegistry
methodenforceCommandBoundary
enforceCommandBoundary(isCommandExecuting: (): boolean, dispatchRemoval: (id: number): void): void
isCommandExecuting: (): boolean
dispatchRemoval: (id: number): void
methodgetLanguageService
getLanguageService(): FormulaLanguageService | undefined
methodgetPhoneticReader
getPhoneticReader(): FormulaPhoneticReader | undefined
methodregisterLanguageService
registerLanguageService(service: FormulaLanguageService): (): void
service: FormulaLanguageService
methodregisterPhoneticReader
registerPhoneticReader(reader: FormulaPhoneticReader): (): void
reader: FormulaPhoneticReader
methodsubscribeInvalidation
subscribeInvalidation(listener: (): void): (): void
listener: (): void
methodunregisterRegistration
unregisterRegistration(id: number): void
id: number
classFormulaWebServiceCachesource ↗
class FormulaWebServiceCache extends AsyncFormulaServiceCache<string, string | FormulaError>, FormulaWebService

Host-driven WEBSERVICE cache; loaders own HTTP status checks, cancellation, and network policy.

constructorconstructor
FormulaWebServiceCache(loader: (url: string): Promise<string>, warn?: (message: string, error: unknown): void): FormulaWebServiceCache
loader: (url: string): Promise<string>
warn: (message: string, error: unknown): void
Inherited members 5

Inherited from AsyncFormulaServiceCache.

classFunctionRegistrysource ↗
class FunctionRegistry extends IFunctionRegistry

Public contract for IFunctionRegistry.

constructorconstructor
FunctionRegistry(options?: FunctionRegistryOptions): FunctionRegistry

Creates a FunctionRegistry instance.

options: FunctionRegistryOptions
propertysymbolstatic
readonly symbol: typeof symbol

DI token for resolving FunctionRegistry.

methodenforceCommandBoundary
enforceCommandBoundary(isCommandExecuting: (): boolean, dispatchRemoval: (id: number): void): void

Requires post-initialization writes to occur during the owning editor's command dispatch.

isCommandExecuting: (): boolean
dispatchRemoval: (id: number): void
methodget
get(name: string): FormulaFunction | undefined

Returns the value.

name: string
methodhas
has(name: string): boolean

Returns whether the requested entry exists.

name: string
methodlist
list(): string[]

Returns all registered entries.

methodregister
register(fn: FormulaFunction): (): void

Registers a formula function under its canonical and compatible names.

fn: FormulaFunction
methodregisterMany
registerMany(functions: readonly FormulaFunction[]): (): void

Registers multiple functions while publishing one combined invalidation.

functions: readonly FormulaFunction[]
methodsubscribe
subscribe(listener: (functionNames: readonly string[]): void): (): void

Subscribes to registrations and removals that can change formula results.

listener: (functionNames: readonly string[]): void
methodunregisterRegistration
unregisterRegistration(id: number): void

Removes one tokenized registration; disposal may dispatch an owner command.

id: number
classWebFormulaAddInServicesource ↗
class WebFormulaAddInService extends FormulaAddInService

Web host adapter: browsers cannot resolve or invoke native add-in procedures.

constructorconstructor
WebFormulaAddInService(): WebFormulaAddInService
methodcall
call(_request: FormulaAddInCall): FormulaServiceCacheResult<FormulaValue>
_request: FormulaAddInCall
methodresolveRegistration
resolveRegistration(_request: FormulaAddInRegistrationRequest): FormulaServiceCacheResult<number>
_request: FormulaAddInRegistrationRequest
interfaceCouponSchedulesource ↗
interface CouponSchedule

Coupon schedule resolved around a bond settlement date.

propertybasis
readonly basis: FinancialDayCountBasis
propertycouponsRemaining
readonly couponsRemaining: number
propertydaysFromPrevious
readonly daysFromPrevious: number
propertydaysInPeriod
readonly daysInPeriod: number
propertydaysToNext
readonly daysToNext: number
propertyfrequency
readonly frequency: 1 | 2 | 4
propertynextCoupon
readonly nextCoupon: number
propertypreviousCoupon
readonly previousCoupon: number
interfaceExcelDatePartssource ↗
interface ExcelDateParts
propertyday
readonly day: number
propertymonth
readonly month: number
propertyphantomLeapDay
readonly phantomLeapDay?: boolean
propertyyear
readonly year: number
interfaceExcelDateTimeParseOptionssource ↗
interface ExcelDateTimeParseOptions extends FormulaDateTimeParseOptions

Options passed to locale-aware formula date/time parsers.

propertylocale
readonly locale?: FormulaDateTimeLocale
Inherited members 1

Inherited from FormulaDateTimeParseOptions.

interfaceFinancialRootOptionssource ↗
interface FinancialRootOptions
propertyinitialGuess
readonly initialGuess?: number
propertylowerBound
readonly lowerBound?: number
propertymaxIterations
readonly maxIterations?: number
propertytolerance
readonly tolerance?: number
propertyupperBound
readonly upperBound?: number
interfaceFunctionRegistryOptionssource ↗
interface FunctionRegistryOptions

FunctionRegistry public API.

propertyexcludedBuiltinNames
readonly excludedBuiltinNames?: readonly string[]

Built-ins omitted from the initial catalog; hosts may register them later.

propertyincludeGoogleFunctions
readonly includeGoogleFunctions?: boolean

Google-specific functions require an explicit host contribution when disabled.

interfaceParsedCellRefsource ↗
interface ParsedCellRef

Parsed A1 cell reference.

propertyabsCol
absCol: boolean
propertyabsRow
absRow: boolean
propertycol
col: number
propertyrow
row: number
interfaceParsedExcelDateTimesource ↗
interface ParsedExcelDateTime
propertyhasDate
readonly hasDate: boolean
propertyhasTime
readonly hasTime: boolean
propertyserial
readonly serial: number
interfaceWorkbookFormulaFormatOptionssource ↗
interface WorkbookFormulaFormatOptions

Workbook name resolution used while formatting formula source.

propertymissingSheetName
readonly missingSheetName?: string
propertyresolveSheetName
readonly resolveSheetName?: (formulaSheetName: string): string | undefined
typeBondResultsource ↗
type BondResult = number | FormulaError
typeBuiltInExcelDateTimeLocaleIdsource ↗
type BuiltInExcelDateTimeLocaleId = typeof BuiltInExcelDateTimeLocaleId[keyof typeof BuiltInExcelDateTimeLocaleId]

Built-in locale identifiers registered by sear-plugin-i18n.

typeDayCountResultsource ↗
type DayCountResult = number | FormulaError
typeDepreciationResultsource ↗
type DepreciationResult = number | FormulaError
typeFinancialDayCountBasissource ↗
type FinancialDayCountBasis = 0 | 1 | 2 | 3 | 4

Excel financial day-count conventions.

typeFinancialNumberResultsource ↗
type FinancialNumberResult = number | FormulaError
typeFinancialRootResultsource ↗
type FinancialRootResult = number | FormulaError
variableABSsource ↗
ABS: FormulaFunction

ABS: Returns the absolute value of a number.

Example
=ABS(-2) returns 2.
variableACCRINTsource ↗
ACCRINT: FormulaFunction

ACCRINT: accrued interest for a periodically paying security.

variableACCRINTMsource ↗
ACCRINTM: FormulaFunction

ACCRINTM: accrued interest for a security paying interest at maturity.

variableACOSsource ↗
ACOS: FormulaFunction

ACOS: Returns the arccosine of a number in radians.

Example
=ACOS(1) returns 0.
variableACOSHsource ↗
ACOSH: FormulaFunction

ACOSH: Returns the inverse hyperbolic cosine of a number.

Example
=ACOSH(2) returns approximately 1.316957897.
variableACOTsource ↗
ACOT: FormulaFunction

ACOT: Returns the arccotangent of a number in radians.

Example
=ACOT(1) returns pi/4.
variableACOTHsource ↗
ACOTH: FormulaFunction

ACOTH: Returns the inverse hyperbolic cotangent of a number.

Example
=ACOTH(2) returns approximately 0.549306144.
variableADDsource ↗
ADD: FormulaFunction

ADD returns the sum of two values. Example: =ADD(2,3) returns 5.

variableaddInFunctionssource ↗
addInFunctions: readonly FormulaFunction[]
variableADDRESSsource ↗
ADDRESS: FormulaFunction

ADDRESS returns an A1 or R1C1 address. Example: =ADDRESS(2,3) returns $C$2.

variableAGGREGATEsource ↗
AGGREGATE: FormulaFunction

AGGREGATE: Applies an aggregate operation while honoring options for hidden rows and errors.

Example
=AGGREGATE(4,6,{1,2,3}) returns 3.
variableAIsource ↗
AI: FormulaFunction

AI reads a Gemini result from a host-managed cache. Example: =AI("Summarize",A1) returns cached generated text.

variableAMORDEGRCsource ↗
AMORDEGRC: FormulaFunction

AMORDEGRC: declining-balance depreciation with a French accounting coefficient.

variableAMORLINCsource ↗
AMORLINC: FormulaFunction

AMORLINC: straight-line depreciation prorated over the first period.

variableANDsource ↗
AND: FormulaFunction

AND: Returns TRUE when every supplied logical value is TRUE.

Example
=AND(TRUE,1)
variableARABICsource ↗
ARABIC: FormulaFunction

ARABIC: Converts a Roman numeral text value to an Arabic number.

Example
=ARABIC("MCMXCIX") returns 1999.
variableAREASsource ↗
AREAS: FormulaFunction

AREAS counts areas in a reference. Example: =AREAS(A1:B2) returns 1.

variableARRAY_CONSTRAINsource ↗
ARRAY_CONSTRAIN: FormulaFunction

ARRAY_CONSTRAIN limits an array to a row and column count. Example: =ARRAY_CONSTRAIN(A1:C3,2,1).

variableARRAYFORMULAsource ↗
ARRAYFORMULA: FormulaFunction

ARRAYFORMULA exposes an expression's array result. Example: =ARRAYFORMULA({1,2}*2) returns {2,4}.

variableARRAYTOTEXTsource ↗
ARRAYTOTEXT: FormulaFunction

Converts an array to concise or strict text. Example: ARRAYTOTEXT({1,"A"},1) returns "{1,&quot;A&quot;}".

variableASCsource ↗
ASC: FormulaFunction

Converts full-width DBCS characters to half-width characters. Example: ASC("ABC") returns "ABC".

variableASINsource ↗
ASIN: FormulaFunction

ASIN: Returns the arcsine of a number in radians.

Example
=ASIN(0) returns 0.
variableASINHsource ↗
ASINH: FormulaFunction

ASINH: Returns the inverse hyperbolic sine of a number.

Example
=ASINH(0) returns 0.
variableATANsource ↗
ATAN: FormulaFunction

ATAN: Returns the arctangent of a number in radians.

Example
=ATAN(0) returns 0.
variableATAN2source ↗
ATAN2: FormulaFunction

ATAN2: Returns the angle from an X and Y coordinate pair in radians.

Example
=ATAN2(1,0) returns 0.
variableATANHsource ↗
ATANH: FormulaFunction

ATANH: Returns the inverse hyperbolic tangent of a number.

Example
=ATANH(0) returns 0.
variableAVEDEVsource ↗
AVEDEV: FormulaFunction

AVEDEV formula. Evaluates the Excel-compatible AVEDEV statistical function. Example: =AVEDEV(1,2,3).

variableAVERAGEsource ↗
AVERAGE: FormulaFunction

AVERAGE: Returns the arithmetic mean of numeric values.

Example
=AVERAGE(10,20,30) returns 20.
variableAVERAGE_WEIGHTEDsource ↗
AVERAGE_WEIGHTED: FormulaFunction

AVERAGE_WEIGHTED formula. Computes a weighted arithmetic mean. Example: =AVERAGE_WEIGHTED({10,20},{1,3}) returns 17.5.

variableAVERAGE_WEIGHTED_DOTTEDsource ↗
AVERAGE_WEIGHTED_DOTTED: FormulaFunction

AVERAGE.WEIGHTED is the dotted Google Sheets alias. Example: =AVERAGE.WEIGHTED({10,20},{1,3}) returns 17.5.

variableAVERAGEAsource ↗
AVERAGEA: FormulaFunction

AVERAGEA formula. Evaluates the Excel-compatible AVERAGEA statistical function. Example: =AVERAGEA(1,2,3).

variableAVERAGEIFsource ↗
AVERAGEIF: FormulaFunction

AVERAGEIF formula. Evaluates the Excel-compatible AVERAGEIF statistical function. Example: =AVERAGEIF(1,2,3).

variableAVERAGEIFSsource ↗
AVERAGEIFS: FormulaFunction

AVERAGEIFS formula. Evaluates the Excel-compatible AVERAGEIFS statistical function. Example: =AVERAGEIFS(1,2,3).

variableBAHTTEXTsource ↗
BAHTTEXT: FormulaFunction

Spells a number as Thai baht and satang. Example: BAHTTEXT(1234) returns Thai amount text.

variableBASEsource ↗
BASE: FormulaFunction

BASE: Converts a nonnegative integer to text in a selected radix.

Example
=BASE(31,16) returns "1F".
variableBETA_DISTsource ↗
BETA_DIST: FormulaFunction

BETA.DIST formula. Evaluates the Excel-compatible BETA.DIST statistical function. Example: =BETA.DIST(1,1,TRUE).

variableBETA_INVsource ↗
BETA_INV: FormulaFunction

BETA.INV formula. Evaluates the Excel-compatible BETA.INV statistical function. Example: =BETA.INV(0.5,1,1).

variableBETADISTsource ↗
BETADIST: FormulaFunction

BETADIST compatibility formula: Returns the cumulative beta distribution using the legacy signature.

Example
=BETADIST(2,8,10,1,3)
variableBETAINVsource ↗
BETAINV: FormulaFunction

BETAINV compatibility formula: Returns the inverse cumulative beta distribution.

Example
=BETAINV(0.685470581,8,10,1,3)
variableBINOM_DISTsource ↗
BINOM_DIST: FormulaFunction

BINOM.DIST formula. Evaluates the Excel-compatible BINOM.DIST statistical function. Example: =BINOM.DIST(1,1,TRUE).

variableBINOM_DIST_RANGEsource ↗
BINOM_DIST_RANGE: FormulaFunction

BINOM.DIST.RANGE formula. Evaluates the Excel-compatible BINOM.DIST.RANGE statistical function. Example: =BINOM.DIST.RANGE(1,1,TRUE).

variableBINOM_INVsource ↗
BINOM_INV: FormulaFunction

BINOM.INV formula. Evaluates the Excel-compatible BINOM.INV statistical function. Example: =BINOM.INV(0.5,1,1).

variableBINOMDISTsource ↗
BINOMDIST: FormulaFunction

BINOMDIST compatibility formula: Returns a binomial probability using the legacy function name.

Example
=BINOMDIST(6,10,0.5,FALSE)
variableBuiltInExcelDateTimeLocaleIdsource ↗
BuiltInExcelDateTimeLocaleId: { Chinese: "zh"; English: "en" }

Built-in locale identifiers registered by sear-plugin-i18n.

variableCALLsource ↗
CALL: FormulaFunction

Calls a host-authorized add-in procedure by registration id or module signature. Example: =CALL(&quot;example&quot;,&quot;entry&quot;,&quot;JJ&quot;,1) invokes entry with the argument 1.

variableCEILINGsource ↗
CEILING: FormulaFunction

CEILING compatibility formula: Rounds a number up to a legacy significance multiple.

Example
=CEILING(2.5,1)
variableCEILING_MATHsource ↗
CEILING_MATH: FormulaFunction

CEILING.MATH: Rounds a number up to the nearest multiple.

Example
=CEILING.MATH(24.3,5) returns 25.
variableCEILING_PRECISEsource ↗
CEILING_PRECISE: FormulaFunction

CEILING.PRECISE: Rounds a number up to the nearest multiple, using an absolute direction.

Example
=CEILING.PRECISE(-4.3,2) returns -4.
variableCELLsource ↗
CELL: FormulaFunction

CELL: Returns information about a referenced cell.

Example
=CELL("row",B3)
variableCHARsource ↗
CHAR: FormulaFunction

Returns the character for a code-page number. Example: CHAR(65) returns "A".

variableCHIDISTsource ↗
CHIDIST: FormulaFunction

CHIDIST compatibility formula: Returns the right-tailed chi-square probability.

Example
=CHIDIST(18.307,10)
variableCHIINVsource ↗
CHIINV: FormulaFunction

CHIINV compatibility formula: Returns the inverse right-tailed chi-square value.

Example
=CHIINV(0.05,10)
variableChineseExcelDateTimeLocalesource ↗
ChineseExcelDateTimeLocale: FormulaDateTimeLocale

Chinese Excel-style date/time text parser and formatter.

variableChineseExcelDateTimeSymbolssource ↗
ChineseExcelDateTimeSymbols: FormulaDateTimeSymbols

Chinese symbols consumed by the shared Excel-compatible date/time parser.

variableCHISQ_DISTsource ↗
CHISQ_DIST: FormulaFunction

CHISQ.DIST formula. Evaluates the Excel-compatible CHISQ.DIST statistical function. Example: =CHISQ.DIST(1,1,TRUE).

variableCHISQ_DIST_RTsource ↗
CHISQ_DIST_RT: FormulaFunction

CHISQ.DIST.RT formula. Evaluates the Excel-compatible CHISQ.DIST.RT statistical function. Example: =CHISQ.DIST.RT(1,1,TRUE).

variableCHISQ_INVsource ↗
CHISQ_INV: FormulaFunction

CHISQ.INV formula. Evaluates the Excel-compatible CHISQ.INV statistical function. Example: =CHISQ.INV(0.5,1,1).

variableCHISQ_INV_RTsource ↗
CHISQ_INV_RT: FormulaFunction

CHISQ.INV.RT formula. Evaluates the Excel-compatible CHISQ.INV.RT statistical function. Example: =CHISQ.INV.RT(0.5,1,1).

variableCHISQ_TESTsource ↗
CHISQ_TEST: FormulaFunction

CHISQ.TEST formula. Evaluates the Excel-compatible CHISQ.TEST statistical function. Example: =CHISQ.TEST(1,2,3).

variableCHITESTsource ↗
CHITEST: FormulaFunction

CHITEST compatibility formula: Returns the chi-square independence test probability.

Example
=CHITEST({58,35;11,25},{45,48;24,22})
variableCHOOSEsource ↗
CHOOSE: FormulaFunction

CHOOSE selects a value by index. Example: =CHOOSE(2,"A","B") returns B.

variableCHOOSECOLSsource ↗
CHOOSECOLS: FormulaFunction

CHOOSECOLS selects columns from an array. Example: =CHOOSECOLS(A1:C2,1,3).

variableCHOOSEROWSsource ↗
CHOOSEROWS: FormulaFunction

CHOOSEROWS selects rows from an array. Example: =CHOOSEROWS(A1:C3,1,3).

variableCjkFormulaTextLocalesource ↗
CjkFormulaTextLocale: FormulaTextLocale

Excel-compatible CJK text locale where wide CJK code points count as two bytes.

variableCLEANsource ↗
CLEAN: FormulaFunction

Removes ASCII control characters 0 through 31. Example: CLEAN(CHAR(9)&"A") returns "A".

variableCODEsource ↗
CODE: FormulaFunction

Returns the code of the first character. Example: CODE("A") returns 65.

variableCOLUMNsource ↗
COLUMN: FormulaFunction

COLUMN returns a reference's first column number. Example: =COLUMN(C5) returns 3.

variableCOLUMNSsource ↗
COLUMNS: FormulaFunction

COLUMNS returns the number of columns in a reference. Example: =COLUMNS(A1:C2) returns 3.

variableCOMBINsource ↗
COMBIN: FormulaFunction

COMBIN: Returns the number of combinations for choosing items without repetition.

Example
=COMBIN(8,2) returns 28.
variableCOMBINAsource ↗
COMBINA: FormulaFunction

COMBINA: Returns the number of combinations for choosing items with repetition.

Example
=COMBINA(4,3) returns 20.
variablecompatibilityFunctionssource ↗
compatibilityFunctions: readonly FormulaFunction[]
variableCompatibleExcelDateTimeLocalesource ↗
CompatibleExcelDateTimeLocale: FormulaDateTimeLocale

Legacy alias for the default parser, which now falls back to English symbols.

variableCONCATsource ↗
CONCAT: FormulaFunction

Joins text and ranges without a delimiter. Example: CONCAT("A",1) returns "A1".

variableCONCATENATEsource ↗
CONCATENATE: FormulaFunction

Legacy text concatenation. Example: CONCATENATE("Hello"," World") returns "Hello World".

variableCONFIDENCEsource ↗
CONFIDENCE: FormulaFunction

CONFIDENCE compatibility formula: Returns a normal-distribution confidence interval.

Example
=CONFIDENCE(0.05,2.5,50)
variableCONFIDENCE_NORMsource ↗
CONFIDENCE_NORM: FormulaFunction

CONFIDENCE.NORM formula. Evaluates the Excel-compatible CONFIDENCE.NORM statistical function. Example: =CONFIDENCE.NORM(1,2,3).

variableCONFIDENCE_Tsource ↗
CONFIDENCE_T: FormulaFunction

CONFIDENCE.T formula. Evaluates the Excel-compatible CONFIDENCE.T statistical function. Example: =CONFIDENCE.T(1,2,3).

variableCORRELsource ↗
CORREL: FormulaFunction

CORREL formula. Evaluates the Excel-compatible CORREL statistical function. Example: =CORREL(1,2,3).

variableCOSsource ↗
COS: FormulaFunction

COS: Returns the cosine of an angle in radians.

Example
=COS(0) returns 1.
variableCOSHsource ↗
COSH: FormulaFunction

COSH: Returns the hyperbolic cosine of a number.

Example
=COSH(0) returns 1.
variableCOTsource ↗
COT: FormulaFunction

COT: Returns the cotangent of an angle in radians.

Example
=COT(RADIANS(45)) returns 1.
variableCOTHsource ↗
COTH: FormulaFunction

COTH: Returns the hyperbolic cotangent of a number.

Example
=COTH(1) returns approximately 1.313035285.
variableCOUNTsource ↗
COUNT: FormulaFunction

COUNT function definition.

variableCOUNTAsource ↗
COUNTA: FormulaFunction

COUNTA formula. Evaluates the Excel-compatible COUNTA statistical function. Example: =COUNTA(1,2,3).

variableCOUNTBLANKsource ↗
COUNTBLANK: FormulaFunction

COUNTBLANK formula. Evaluates the Excel-compatible COUNTBLANK statistical function. Example: =COUNTBLANK(1,2,3).

variableCOUNTIFsource ↗
COUNTIF: FormulaFunction

COUNTIF formula. Evaluates the Excel-compatible COUNTIF statistical function. Example: =COUNTIF(1,2,3).

variableCOUNTIFSsource ↗
COUNTIFS: FormulaFunction

COUNTIFS formula. Evaluates the Excel-compatible COUNTIFS statistical function. Example: =COUNTIFS(1,2,3).

variableCOUNTUNIQUEsource ↗
COUNTUNIQUE: FormulaFunction

COUNTUNIQUE counts distinct values. Example: =COUNTUNIQUE(1,1,2) returns 2.

variableCOUPDAYBSsource ↗
COUPDAYBS: FormulaFunction

COUPDAYBS: days from the beginning of a coupon period to settlement.

variableCOUPDAYSsource ↗
COUPDAYS: FormulaFunction

COUPDAYS: number of days in the coupon period containing settlement.

variableCOUPDAYSNCsource ↗
COUPDAYSNC: FormulaFunction

COUPDAYSNC: days from settlement to the next coupon.

variableCOUPNCDsource ↗
COUPNCD: FormulaFunction

COUPNCD: next coupon date after settlement.

variableCOUPNUMsource ↗
COUPNUM: FormulaFunction

COUPNUM: number of coupons remaining after settlement.

variableCOUPPCDsource ↗
COUPPCD: FormulaFunction

COUPPCD: previous coupon date before settlement.

variableCOVARsource ↗
COVAR: FormulaFunction

COVAR compatibility formula: Returns population covariance for two data sets.

Example
=COVAR({2,4,8},{5,11,12})
variableCOVARIANCE_Psource ↗
COVARIANCE_P: FormulaFunction

COVARIANCE.P formula. Evaluates the Excel-compatible COVARIANCE.P statistical function. Example: =COVARIANCE.P(1,2,3).

variableCOVARIANCE_Ssource ↗
COVARIANCE_S: FormulaFunction

COVARIANCE.S formula. Evaluates the Excel-compatible COVARIANCE.S statistical function. Example: =COVARIANCE.S(1,2,3).

variableCRITBINOMsource ↗
CRITBINOM: FormulaFunction

CRITBINOM compatibility formula: Returns the smallest binomial value meeting a cumulative probability.

Example
=CRITBINOM(6,0.5,0.75)
variableCSCsource ↗
CSC: FormulaFunction

CSC: Returns the cosecant of an angle in radians.

Example
=CSC(PI()/2) returns 1.
variableCSCHsource ↗
CSCH: FormulaFunction

CSCH: Returns the hyperbolic cosecant of a number.

Example
=CSCH(1) returns approximately 0.850918128.
variablecubeFunctionssource ↗
cubeFunctions: readonly [FormulaFunction, FormulaFunction, FormulaFunction, FormulaFunction, FormulaFunction, FormulaFunction, FormulaFunction]
variableCUBEKPIMEMBERsource ↗
CUBEKPIMEMBER: FormulaFunction

Returns a typed KPI property member. Example: CUBEKPIMEMBER("Sales","Revenue KPI",KPIGoal).

variableCUBEMEMBERsource ↗
CUBEMEMBER: FormulaFunction

Returns a typed cube member or tuple. Example: CUBEMEMBER("Sales","[Time].[Fiscal].[2004]").

variableCUBEMEMBERPROPERTYsource ↗
CUBEMEMBERPROPERTY: FormulaFunction

Returns one property of a cube member. Example: CUBEMEMBERPROPERTY("Sales","[Time].[2004]","Name").

variableCUBERANKEDMEMBERsource ↗
CUBERANKEDMEMBER: FormulaFunction

Returns the member at a one-based set rank. Example: CUBERANKEDMEMBER("Sales",A1,1).

variableCUBESETsource ↗
CUBESET: FormulaFunction

Returns a typed OLAP set. Example: CUBESET("Sales","[Product].Members","Products").

variableCUBESETCOUNTsource ↗
CUBESETCOUNT: FormulaFunction

Returns the item count of a CUBESET result. Example: CUBESETCOUNT(A1).

variableCUBEVALUEsource ↗
CUBEVALUE: FormulaFunction

Returns an aggregated cube value. Example: CUBEVALUE("Sales","[Measures].[Profit]").

variableCUMIPMTsource ↗
CUMIPMT: FormulaFunction

CUMIPMT: cumulative interest paid between two periods.

variableCUMPRINCsource ↗
CUMPRINC: FormulaFunction

CUMPRINC: cumulative principal paid between two periods.

variabledatabaseFunctionssource ↗
databaseFunctions: readonly FormulaFunction[]
variableDATEsource ↗
DATE: FormulaFunction

DATE: Creates an Excel date serial from year, month, and day parts. Example: =DATE(2024,2,29) returns 45351.

variableDATEDIFsource ↗
DATEDIF: FormulaFunction

DATEDIF: Returns the elapsed days, months, or years between two dates. Example: =DATEDIF("1/1/2001","1/1/2003","Y") returns 2.

variabledateTimeFunctionssource ↗
dateTimeFunctions: readonly FormulaFunction[]
variableDATEVALUEsource ↗
DATEVALUE: FormulaFunction

DATEVALUE: Converts date text into an Excel date serial. Example: =DATEVALUE("22-MAY-2011") returns 40685.

variableDAVERAGEsource ↗
DAVERAGE: FormulaFunction

DAVERAGE: Returns the average of matching numeric database records.

Example
=DAVERAGE(A1:C5,"Sales",E1:F2)
variableDAYsource ↗
DAY: FormulaFunction

DAY: Returns the day of month for a date serial. Example: =DAY("2011-4-15") returns 15.

variableDAYSsource ↗
DAYS: FormulaFunction

DAYS: Returns the number of days between an end date and a start date. Example: =DAYS("2021-12-31","2021-1-1") returns 364.

variableDAYS360source ↗
DAYS360: FormulaFunction

DAYS360: Returns the day difference using a 360-day accounting year. Example: =DAYS360("2011-1-1","2011-12-31") returns 360.

variableDBsource ↗
DB: FormulaFunction

DB: fixed-declining balance depreciation.

variableDBCSsource ↗
DBCS: FormulaFunction

Converts half-width characters to full-width DBCS characters. Example: DBCS("ABC") returns "ABC".

variableDCOUNTsource ↗
DCOUNT: FormulaFunction

DCOUNT: Counts matching database records containing numbers.

Example
=DCOUNT(A1:C5,"Sales",E1:F2)
variableDCOUNTAsource ↗
DCOUNTA: FormulaFunction

DCOUNTA: Counts matching nonblank database records.

Example
=DCOUNTA(A1:C5,"Name",E1:F2)
variableDDBsource ↗
DDB: FormulaFunction

DDB: double-declining or custom-factor depreciation.

variableDECIMALsource ↗
DECIMAL: FormulaFunction

DECIMAL: Converts text in a selected radix to a decimal number.

Example
=DECIMAL("1010",2) returns 10.
variableDEGREESsource ↗
DEGREES: FormulaFunction

DEGREES: Converts an angle from radians to degrees.

Example
=DEGREES(PI()) returns 180.
variableDETECTLANGUAGEsource ↗
DETECTLANGUAGE: FormulaFunction

Reads language detection from the host cache. Example: DETECTLANGUAGE("hello") commonly returns "en".

variableDEVSQsource ↗
DEVSQ: FormulaFunction

DEVSQ formula. Evaluates the Excel-compatible DEVSQ statistical function. Example: =DEVSQ(1,2,3).

variableDGETsource ↗
DGET: FormulaFunction

DGET: Returns the single field value from exactly one matching record.

Example
=DGET(A1:C5,"Sales",E1:F2)
variableDISCsource ↗
DISC: FormulaFunction

DISC: annualized discount rate for a discounted security.

variableDIVIDEsource ↗
DIVIDE: FormulaFunction

DIVIDE divides one value by another. Example: =DIVIDE(6,2) returns 3.

variableDMAXsource ↗
DMAX: FormulaFunction

DMAX: Returns the largest matching numeric database value.

Example
=DMAX(A1:C5,"Sales",E1:F2)
variableDMINsource ↗
DMIN: FormulaFunction

DMIN: Returns the smallest matching numeric database value.

Example
=DMIN(A1:C5,"Sales",E1:F2)
variableDOLLARsource ↗
DOLLAR: FormulaFunction

Formats a number as currency text. Example: DOLLAR(1234.5,2) returns "$1,234.50".

variableDOLLARDEsource ↗
DOLLARDE: FormulaFunction

DOLLARDE: converts a fractional dollar price to a decimal price.

variableDOLLARFRsource ↗
DOLLARFR: FormulaFunction

DOLLARFR: converts a decimal dollar price to a fractional price.

variableDPRODUCTsource ↗
DPRODUCT: FormulaFunction

DPRODUCT: Multiplies matching numeric database values.

Example
=DPRODUCT(A1:C5,"Sales",E1:F2)
variableDROPsource ↗
DROP: FormulaFunction

DROP removes rows and columns. Example: =DROP(A1:C3,1) removes the first row.

variableDSTDEVsource ↗
DSTDEV: FormulaFunction

DSTDEV: Returns the sample standard deviation of matching records.

Example
=DSTDEV(A1:C5,"Sales",E1:F2)
variableDSTDEVPsource ↗
DSTDEVP: FormulaFunction

DSTDEVP: Returns the population standard deviation of matching records.

Example
=DSTDEVP(A1:C5,"Sales",E1:F2)
variableDSUMsource ↗
DSUM: FormulaFunction

DSUM: Sums matching numeric database values.

Example
=DSUM(A1:C5,"Sales",E1:F2)
variableDURATIONsource ↗
DURATION: FormulaFunction

DURATION: Macaulay duration of a coupon security.

variableDVARsource ↗
DVAR: FormulaFunction

DVAR: Returns the sample variance of matching records.

Example
=DVAR(A1:C5,"Sales",E1:F2)
variableDVARPsource ↗
DVARP: FormulaFunction

DVARP: Returns the population variance of matching records.

Example
=DVARP(A1:C5,"Sales",E1:F2)
variableEDATEsource ↗
EDATE: FormulaFunction

EDATE: Returns the date serial offset by a whole number of months. Example: =EDATE("2011-1-15",2) returns 40617.

variableEFFECTsource ↗
EFFECT: FormulaFunction

EFFECT: effective annual interest rate.

variableENCODEURLsource ↗
ENCODEURL: FormulaFunction

Encodes text as an RFC 3986 UTF-8 URL component. Example: ENCODEURL("a b") returns "a%20b".

variableEnglishExcelDateTimeLocalesource ↗
EnglishExcelDateTimeLocale: FormulaDateTimeLocale

English Excel-style date/time text parser and formatter.

variableEnglishExcelDateTimeSymbolssource ↗
EnglishExcelDateTimeSymbols: FormulaDateTimeSymbols

English symbols consumed by the shared Excel-compatible date/time parser.

variableEOMONTHsource ↗
EOMONTH: FormulaFunction

EOMONTH: Returns the last day of the month offset from a start date. Example: =EOMONTH("2011-1-1",1) returns 40602.

variableEPOCHTODATEsource ↗
EPOCHTODATE: FormulaFunction

EPOCHTODATE converts a Unix timestamp to an Excel UTC date-time serial. Example: =EPOCHTODATE(0) returns 25569.

variableEQsource ↗
EQ: FormulaFunction

EQ tests two values for equality. Example: =EQ(2,2) returns TRUE.

variableERROR_TYPEsource ↗
ERROR_TYPE: FormulaFunction

ERROR.TYPE: Returns the numeric code for an error value.

Example
=ERROR.TYPE(NA())
variableEUROCONVERTsource ↗
EUROCONVERT: FormulaFunction

Converts between the euro and legacy euro-member currencies using fixed EU rates. Example: =EUROCONVERT(1.2,&quot;DEM&quot;,&quot;EUR&quot;) returns 0.61.

variableEVENsource ↗
EVEN: FormulaFunction

EVEN: Rounds a number away from zero to the nearest even integer.

Example
=EVEN(1.5) returns 2.
variableEXACTsource ↗
EXACT: FormulaFunction

Compares two strings with case sensitivity. Example: EXACT("A","a") returns FALSE.

variableEXCEL_1904_SERIAL_OFFSETsource ↗
EXCEL_1904_SERIAL_OFFSET: 1462
variableEXPsource ↗
EXP: FormulaFunction

EXP: Returns e raised to the specified power.

Example
=EXP(0) returns 1.
variableEXPANDsource ↗
EXPAND: FormulaFunction

EXPAND pads an array. Example: =EXPAND(A1:B2,3,3,0).

variableEXPON_DISTsource ↗
EXPON_DIST: FormulaFunction

EXPON.DIST formula. Evaluates the Excel-compatible EXPON.DIST statistical function. Example: =EXPON.DIST(1,1,TRUE).

variableEXPONDISTsource ↗
EXPONDIST: FormulaFunction

EXPONDIST compatibility formula: Returns an exponential distribution value.

Example
=EXPONDIST(0.2,10,TRUE)
variableF_DISTsource ↗
F_DIST: FormulaFunction

F.DIST formula. Evaluates the Excel-compatible F.DIST statistical function. Example: =F.DIST(1,1,TRUE).

variableF_DIST_RTsource ↗
F_DIST_RT: FormulaFunction

F.DIST.RT formula. Evaluates the Excel-compatible F.DIST.RT statistical function. Example: =F.DIST.RT(1,1,TRUE).

variableF_INVsource ↗
F_INV: FormulaFunction

F.INV formula. Evaluates the Excel-compatible F.INV statistical function. Example: =F.INV(0.5,1,1).

variableF_INV_RTsource ↗
F_INV_RT: FormulaFunction

F.INV.RT formula. Evaluates the Excel-compatible F.INV.RT statistical function. Example: =F.INV.RT(0.5,1,1).

variableF_TESTsource ↗
F_TEST: FormulaFunction

F.TEST formula. Evaluates the Excel-compatible F.TEST statistical function. Example: =F.TEST(1,2,3).

variableFACTsource ↗
FACT: FormulaFunction

FACT: Returns the factorial of a nonnegative integer.

Example
=FACT(5) returns 120.
variableFACTDOUBLEsource ↗
FACTDOUBLE: FormulaFunction

FACTDOUBLE: Returns the double factorial of a nonnegative integer.

Example
=FACTDOUBLE(7) returns 105.
variableFALSEsource ↗
FALSE: FormulaFunction

FALSE: Returns the logical value FALSE.

Example
=FALSE()
variableFDISTsource ↗
FDIST: FormulaFunction

FDIST compatibility formula: Returns the right-tailed F distribution probability.

Example
=FDIST(15.2069,6,4)
variableFILTERsource ↗
FILTER: FormulaFunction

FILTER returns rows matching a Boolean include array. Example: =FILTER(A1:B3,{TRUE;FALSE;TRUE}).

variableFILTERXMLsource ↗
FILTERXML: FormulaFunction

Extracts XPath matches from XML as a spilling column. Example: FILTERXML("<r><v>A</v></r>","//v") returns A.

variablefinancialFunctionssource ↗
financialFunctions: readonly FormulaFunction[]

All built-in financial worksheet functions.

variableFINDsource ↗
FIND: FormulaFunction

Finds case-sensitive text and returns a one-based position. Example: FIND("b","abc") returns 2.

variableFINDBsource ↗
FINDB: FormulaFunction

Finds case-sensitive text using locale-defined DBCS byte positions. Example: FINDB("b", "abc") returns 2.

variableFINVsource ↗
FINV: FormulaFunction

FINV compatibility formula: Returns the inverse right-tailed F distribution.

Example
=FINV(0.01,6,4)
variableFISHERsource ↗
FISHER: FormulaFunction

FISHER formula. Evaluates the Excel-compatible FISHER statistical function. Example: =FISHER(1,2,3).

variableFISHERINVsource ↗
FISHERINV: FormulaFunction

FISHERINV formula. Evaluates the Excel-compatible FISHERINV statistical function. Example: =FISHERINV(0.5,1,1).

variableFIXEDsource ↗
FIXED: FormulaFunction

Formats rounded fixed-decimal text. Example: FIXED(1234.567,1) returns "1,234.6".

variableFLATTENsource ↗
FLATTEN: FormulaFunction

FLATTEN combines one or more arrays into a single column. Example: =FLATTEN(A1:B2,C1:C2).

variableFLOORsource ↗
FLOOR: FormulaFunction

FLOOR compatibility formula: Rounds a number down to a legacy significance multiple.

Example
=FLOOR(2.5,1)
variableFLOOR_MATHsource ↗
FLOOR_MATH: FormulaFunction

FLOOR.MATH: Rounds a number down to the nearest multiple.

Example
=FLOOR.MATH(-8.1,2) returns -10.
variableFLOOR_PRECISEsource ↗
FLOOR_PRECISE: FormulaFunction

FLOOR.PRECISE: Rounds a number down to the nearest multiple using an absolute direction.

Example
=FLOOR.PRECISE(-3.2,1) returns -4.
variableFORECASTsource ↗
FORECAST: FormulaFunction

FORECAST formula. Evaluates the Excel-compatible FORECAST statistical function. Example: =FORECAST(1,2,3).

variableFORECAST_ETSsource ↗
FORECAST_ETS: FormulaFunction

FORECAST.ETS formula. Evaluates the Excel-compatible FORECAST.ETS statistical function. Example: =FORECAST.ETS(1,2,3).

variableFORECAST_ETS_CONFINTsource ↗
FORECAST_ETS_CONFINT: FormulaFunction

FORECAST.ETS.CONFINT formula. Evaluates the Excel-compatible FORECAST.ETS.CONFINT statistical function. Example: =FORECAST.ETS.CONFINT(1,2,3).

variableFORECAST_ETS_SEASONALITYsource ↗
FORECAST_ETS_SEASONALITY: FormulaFunction

FORECAST.ETS.SEASONALITY formula. Evaluates the Excel-compatible FORECAST.ETS.SEASONALITY statistical function. Example: =FORECAST.ETS.SEASONALITY(1,2,3).

variableFORECAST_ETS_STATsource ↗
FORECAST_ETS_STAT: FormulaFunction

FORECAST.ETS.STAT formula. Evaluates the Excel-compatible FORECAST.ETS.STAT statistical function. Example: =FORECAST.ETS.STAT(1,2,3).

variableFORECAST_LINEARsource ↗
FORECAST_LINEAR: FormulaFunction

FORECAST.LINEAR formula. Evaluates the Excel-compatible FORECAST.LINEAR statistical function. Example: =FORECAST.LINEAR(1,2,3).

variableFORMULATEXTsource ↗
FORMULATEXT: FormulaFunction

FORMULATEXT returns source text for a formula cell. Example: =FORMULATEXT(A1).

variableFREQUENCYsource ↗
FREQUENCY: FormulaFunction

FREQUENCY formula. Evaluates the Excel-compatible FREQUENCY statistical function. Example: =FREQUENCY(1,2,3).

variableFTESTsource ↗
FTEST: FormulaFunction

FTEST compatibility formula: Returns the two-tailed F-test probability.

Example
=FTEST({1,2,3},{1,2,4})
variableFVsource ↗
FV: FormulaFunction

FV: future value of an annuity.

variableFVSCHEDULEsource ↗
FVSCHEDULE: FormulaFunction

FVSCHEDULE: future value using a series of variable rates.

variableGAMMAsource ↗
GAMMA: FormulaFunction

GAMMA formula. Evaluates the Excel-compatible GAMMA statistical function. Example: =GAMMA(1,2,3).

variableGAMMA_DISTsource ↗
GAMMA_DIST: FormulaFunction

GAMMA.DIST formula. Evaluates the Excel-compatible GAMMA.DIST statistical function. Example: =GAMMA.DIST(1,1,TRUE).

variableGAMMA_INVsource ↗
GAMMA_INV: FormulaFunction

GAMMA.INV formula. Evaluates the Excel-compatible GAMMA.INV statistical function. Example: =GAMMA.INV(0.5,1,1).

variableGAMMADISTsource ↗
GAMMADIST: FormulaFunction

GAMMADIST compatibility formula: Returns a gamma distribution value.

Example
=GAMMADIST(10,9,2,TRUE)
variableGAMMAINVsource ↗
GAMMAINV: FormulaFunction

GAMMAINV compatibility formula: Returns an inverse gamma distribution value.

Example
=GAMMAINV(0.068094,9,2)
variableGAMMALNsource ↗
GAMMALN: FormulaFunction

GAMMALN formula. Evaluates the Excel-compatible GAMMALN statistical function. Example: =GAMMALN(1,2,3).

variableGAMMALN_PRECISEsource ↗
GAMMALN_PRECISE: FormulaFunction

GAMMALN.PRECISE formula. Evaluates the Excel-compatible GAMMALN.PRECISE statistical function. Example: =GAMMALN.PRECISE(1,2,3).

variableGAUSSsource ↗
GAUSS: FormulaFunction

GAUSS formula. Evaluates the Excel-compatible GAUSS statistical function. Example: =GAUSS(1,2,3).

variableGCDsource ↗
GCD: FormulaFunction

GCD: Returns the greatest common divisor of numeric values.

Example
=GCD(24,36) returns 12.
variableGEOMEANsource ↗
GEOMEAN: FormulaFunction

GEOMEAN formula. Evaluates the Excel-compatible GEOMEAN statistical function. Example: =GEOMEAN(1,2,3).

variableGETPIVOTDATAsource ↗
GETPIVOTDATA: FormulaFunction

GETPIVOTDATA reads a host pivot data service. Example: =GETPIVOTDATA("Sales",A1).

variableGOOGLEFINANCEsource ↗
GOOGLEFINANCE: FormulaFunction

GOOGLEFINANCE reads market data from a host-managed cache. Example: =GOOGLEFINANCE("NASDAQ:GOOG","price") returns cached price data.

variablegoogleFunctionssource ↗
googleFunctions: readonly FormulaFunction[]
variableGOOGLETRANSLATEsource ↗
GOOGLETRANSLATE: FormulaFunction

GOOGLETRANSLATE reads a translation from a host-managed cache. Example: =GOOGLETRANSLATE("hello","en","zh-CN") returns cached text.

variableGROUPBYsource ↗
GROUPBY: FormulaFunction

GROUPBY groups rows by a key and aggregates values by sum. Example: =GROUPBY(A2:A5,B2:B5,SUM).

variableGROWTHsource ↗
GROWTH: FormulaFunction

GROWTH formula. Evaluates the Excel-compatible GROWTH statistical function. Example: =GROWTH(1,2,3).

variableGTsource ↗
GT: FormulaFunction

GT tests whether the first value is greater. Example: =GT(3,2) returns TRUE.

variableGTEsource ↗
GTE: FormulaFunction

GTE tests whether the first value is at least the second. Example: =GTE(2,2) returns TRUE.

variableHARMEANsource ↗
HARMEAN: FormulaFunction

HARMEAN formula. Evaluates the Excel-compatible HARMEAN statistical function. Example: =HARMEAN(1,2,3).

variableHLOOKUPsource ↗
HLOOKUP: FormulaFunction

HLOOKUP searches a table's first row. Example: =HLOOKUP("B",A1:C2,2,FALSE).

variableHOURsource ↗
HOUR: FormulaFunction

HOUR: Returns the hour component from a time or date-time value. Example: =HOUR("2011-7-18 7:45") returns 7.

variableHSTACKsource ↗
HSTACK: FormulaFunction

HSTACK joins arrays horizontally. Example: =HSTACK({1;2},{3;4}).

variableHYPGEOM_DISTsource ↗
HYPGEOM_DIST: FormulaFunction

HYPGEOM.DIST formula. Evaluates the Excel-compatible HYPGEOM.DIST statistical function. Example: =HYPGEOM.DIST(1,1,TRUE).

variableHYPGEOMDISTsource ↗
HYPGEOMDIST: FormulaFunction

HYPGEOMDIST compatibility formula: Returns the non-cumulative hypergeometric probability.

Example
=HYPGEOMDIST(1,4,8,20)
variableIFsource ↗
IF: FormulaFunction

Returns one value when a condition is true and another when it is false.

variableIFERRORsource ↗
IFERROR: FormulaFunction

IFERROR: Replaces a formula error with a fallback value.

Example
=IFERROR(1/0,0) returns 0.
variableIFNAsource ↗
IFNA: FormulaFunction

IFNA: Returns a fallback only when the input is #N/A.

Example
=IFNA(NA(),0)
variableIFSsource ↗
IFS: FormulaFunction

IFS: Returns the value paired with the first TRUE condition.

Example
=IFS(A1>90,"A",A1>80,"B",TRUE,"C")
variableIMAGEsource ↗
IMAGE: FormulaFunction

IMAGE reads a host-managed image cache. Example: =IMAGE("https://example.com/logo.png").

variableIMPORTDATAsource ↗
IMPORTDATA: FormulaFunction

IMPORTDATA reads CSV or TSV data from a host-managed cache. Example: =IMPORTDATA("https://example.com/data.csv") returns cached rows.

variableIMPORTFEEDsource ↗
IMPORTFEED: FormulaFunction

IMPORTFEED reads RSS or Atom data from a host-managed cache. Example: =IMPORTFEED("https://example.com/feed.xml") returns cached feed rows.

variableIMPORTHTMLsource ↗
IMPORTHTML: FormulaFunction

IMPORTHTML reads an HTML table or list from a host-managed cache. Example: =IMPORTHTML("https://example.com","table",1) returns cached rows.

variableIMPORTRANGEsource ↗
IMPORTRANGE: FormulaFunction

IMPORTRANGE reads another spreadsheet through a host-managed cache. Example: =IMPORTRANGE("sheet-id","A1:B2") returns cached cells.

variableIMPORTXMLsource ↗
IMPORTXML: FormulaFunction

IMPORTXML reads XPath-selected data from a host-managed cache. Example: =IMPORTXML("https://example.com","//title") returns cached nodes.

variableINDEXsource ↗
INDEX: FormulaFunction

INDEX returns a value or subarray by row and column. Example: =INDEX(A1:C3,2,3).

variableINDIRECTsource ↗
INDIRECT: FormulaFunction

INDIRECT resolves text to a reference. Example: =INDIRECT("A1") returns A1.

variableINFOsource ↗
INFO: FormulaFunction

INFO: Returns host or workbook environment information.

Example
=INFO("numfile")
variableinformationFunctionssource ↗
informationFunctions: readonly FormulaFunction[]
variableINTsource ↗
INT: FormulaFunction

INT: Rounds a number down to the nearest integer.

Example
=INT(-0.1) returns -1.
variableINTERCEPTsource ↗
INTERCEPT: FormulaFunction

INTERCEPT formula. Evaluates the Excel-compatible INTERCEPT statistical function. Example: =INTERCEPT(1,2,3).

variableINTRATEsource ↗
INTRATE: FormulaFunction

INTRATE: annualized interest rate of a fully invested security.

variableIPMTsource ↗
IPMT: FormulaFunction

IPMT: interest payment for a period.

variableIRRsource ↗
IRR: FormulaFunction

IRR: periodic internal rate of return.

variableISBETWEENsource ↗
ISBETWEEN: FormulaFunction

ISBETWEEN tests whether a value lies between bounds. Example: =ISBETWEEN(5,1,10) returns TRUE.

variableISBLANKsource ↗
ISBLANK: FormulaFunction

ISBLANK: Returns TRUE only for a genuinely empty referenced cell.

Example
=ISBLANK(A1)
variableISDATEsource ↗
ISDATE: FormulaFunction

ISDATE reports whether a value is a valid date or date serial. Example: =ISDATE("2024-02-29") returns TRUE.

variableISEMAILsource ↗
ISEMAIL: FormulaFunction

ISEMAIL checks common email-address syntax without contacting a server. Example: =ISEMAIL("a@example.com") returns TRUE.

variableISERRsource ↗
ISERR: FormulaFunction

ISERR: Returns TRUE for errors other than #N/A.

Example
=ISERR(1/0)
variableISERRORsource ↗
ISERROR: FormulaFunction

ISERROR: Returns TRUE for any formula error.

Example
=ISERROR(1/0)
variableISEVENsource ↗
ISEVEN: FormulaFunction

ISEVEN: Returns TRUE when a number is even.

Example
=ISEVEN(4)
variableISFORMULAsource ↗
ISFORMULA: FormulaFunction

ISFORMULA: Returns TRUE when a referenced cell contains a formula.

Example
=ISFORMULA(A1)
variableISLOGICALsource ↗
ISLOGICAL: FormulaFunction

ISLOGICAL: Returns TRUE for logical values.

Example
=ISLOGICAL(TRUE)
variableISNAsource ↗
ISNA: FormulaFunction

ISNA: Returns TRUE only for #N/A.

Example
=ISNA(NA())
variableISNONTEXTsource ↗
ISNONTEXT: FormulaFunction

ISNONTEXT: Returns TRUE for non-text values.

Example
=ISNONTEXT(42)
variableISNUMBERsource ↗
ISNUMBER: FormulaFunction

ISNUMBER: Returns TRUE for numeric values.

Example
=ISNUMBER(42)
variableISO_CEILINGsource ↗
ISO_CEILING: FormulaFunction

ISO.CEILING: Rounds a number up to the nearest multiple.

Example
=ISO.CEILING(-4.3,2) returns -4.
variableISODDsource ↗
ISODD: FormulaFunction

ISODD: Returns TRUE when a number is odd.

Example
=ISODD(3)
variableISOWEEKNUMsource ↗
ISOWEEKNUM: FormulaFunction

ISOWEEKNUM: Returns the ISO 8601 week number for a date. Example: =ISOWEEKNUM("2012-3-9") returns 10.

variableISPMTsource ↗
ISPMT: FormulaFunction

ISPMT: interest paid during a specific period of an investment.

variableISREFsource ↗
ISREF: FormulaFunction

ISREF: Returns TRUE when its argument preserves reference identity.

Example
=ISREF(A1)
variableISTEXTsource ↗
ISTEXT: FormulaFunction

ISTEXT: Returns TRUE for text values.

Example
=ISTEXT("text")
variableISURLsource ↗
ISURL: FormulaFunction

ISURL checks whether text is an absolute URL. Example: =ISURL("https://example.com") returns TRUE.

variableJISsource ↗
JIS: FormulaFunction

Converts half-width text to Japanese full-width text. Example: JIS("ABC カ") returns "ABC カ".

variableJOINsource ↗
JOIN: FormulaFunction

JOIN concatenates values with a delimiter. Example: =JOIN("-",{1,2,3}) returns "1-2-3".

variableKURTsource ↗
KURT: FormulaFunction

KURT formula. Evaluates the Excel-compatible KURT statistical function. Example: =KURT(1,2,3).

variableLARGEsource ↗
LARGE: FormulaFunction

LARGE formula. Evaluates the Excel-compatible LARGE statistical function. Example: =LARGE(1,2,3).

variableLAST_EXCEL_DATE_SERIALsource ↗
LAST_EXCEL_DATE_SERIAL: 2958465
variableLCMsource ↗
LCM: FormulaFunction

LCM: Returns the least common multiple of numeric values.

Example
=LCM(4,6) returns 12.
variableLEFTsource ↗
LEFT: FormulaFunction

Returns characters from the start of text. Example: LEFT("Sale",2) returns "Sa".

variableLEFTBsource ↗
LEFTB: FormulaFunction

Returns leading text limited by a locale-defined DBCS byte count. Example: LEFTB("abc", 2) returns "ab".

variableLENsource ↗
LEN: FormulaFunction

Returns the UTF-16 character count used by Excel compatibility mode. Example: LEN("Excel") returns 5.

variableLENBsource ↗
LENB: FormulaFunction

Returns text length measured in locale-defined DBCS bytes. Example: LENB("abc") returns 3.

variableLETsource ↗
LET: FormulaFunction

LET: Evaluates sequential name/value bindings in a child lexical scope.

Example
=LET(rate,2,amount,5,rate*amount) returns 10.
variableLINESTsource ↗
LINEST: FormulaFunction

LINEST formula. Evaluates the Excel-compatible LINEST statistical function. Example: =LINEST(1,2,3).

variableLNsource ↗
LN: FormulaFunction

LN: Returns the natural logarithm of a positive number.

Example
=LN(1) returns 0.
variableLOGsource ↗
LOG: FormulaFunction

LOG: Returns the logarithm of a number for a specified base.

Example
=LOG(8,2) returns 3.
variableLOG10source ↗
LOG10: FormulaFunction

LOG10: Returns the base-10 logarithm of a positive number.

Example
=LOG10(100) returns 2.
variableLOGESTsource ↗
LOGEST: FormulaFunction

LOGEST formula. Evaluates the Excel-compatible LOGEST statistical function. Example: =LOGEST(1,2,3).

variablelogicalFunctionssource ↗
logicalFunctions: readonly FormulaFunction[]
variableLOGINVsource ↗
LOGINV: FormulaFunction

LOGINV compatibility formula: Returns the inverse lognormal distribution.

Example
=LOGINV(0.039084,3.5,1.2)
variableLOGNORM_DISTsource ↗
LOGNORM_DIST: FormulaFunction

LOGNORM.DIST formula. Evaluates the Excel-compatible LOGNORM.DIST statistical function. Example: =LOGNORM.DIST(1,1,TRUE).

variableLOGNORM_INVsource ↗
LOGNORM_INV: FormulaFunction

LOGNORM.INV formula. Evaluates the Excel-compatible LOGNORM.INV statistical function. Example: =LOGNORM.INV(0.5,1,1).

variableLOGNORMDISTsource ↗
LOGNORMDIST: FormulaFunction

LOGNORMDIST compatibility formula: Returns the cumulative lognormal distribution.

Example
=LOGNORMDIST(4,3.5,1.2)
variableLOOKUPsource ↗
LOOKUP: FormulaFunction

LOOKUP performs approximate vector lookup. Example: =LOOKUP(2,{1,2,3},{"A","B","C"}) returns B.

variablelookupFunctionNamessource ↗
lookupFunctionNames: readonly ["ADDRESS", "AREAS", "ARRAY_CONSTRAIN", "CHOOSE", "CHOOSECOLS", "CHOOSEROWS", "COLUMN", "COLUMNS", "DROP", "EXPAND", "FILTER", "FLATTEN", "FORMULATEXT", "GETPIVOTDATA", "GROUPBY", "HLOOKUP", "HSTACK", "HYPERLINK", "IMAGE", "INDEX", "INDIRECT", "LOOKUP", "MATCH", "OFFSET", "PIVOTBY", "ROW", "ROWS", "RTD", "SORT", "SORTBY", "TAKE", "TOCOL", "TOROW", "TRANSPOSE", "TRIMRANGE", "UNIQUE", "VSTACK", "WRAPCOLS", "WRAPROWS", "XLOOKUP", "XMATCH"]

Names implemented by the lookup/reference and dynamic-array family.

variableLOWERsource ↗
LOWER: FormulaFunction

Converts letters to lowercase. Example: LOWER("Excel") returns "excel".

variableLTsource ↗
LT: FormulaFunction

LT tests whether the first value is smaller. Example: =LT(2,3) returns TRUE.

variableLTEsource ↗
LTE: FormulaFunction

LTE tests whether the first value is no greater than the second. Example: =LTE(2,2) returns TRUE.

variableMARGINOFERRORsource ↗
MARGINOFERROR: FormulaFunction

MARGINOFERROR formula. Estimates the normal confidence margin for a sample. Example: =MARGINOFERROR(0.95,A1:A10).

variableMATCHsource ↗
MATCH: FormulaFunction

MATCH returns the position of a lookup value. Example: =MATCH("B",{"A";"B"},0) returns 2.

variableMAXsource ↗
MAX: FormulaFunction

MAX formula. Evaluates the Excel-compatible MAX statistical function. Example: =MAX(1,2,3).

variableMAXAsource ↗
MAXA: FormulaFunction

MAXA formula. Evaluates the Excel-compatible MAXA statistical function. Example: =MAXA(1,2,3).

variableMAXIFSsource ↗
MAXIFS: FormulaFunction

MAXIFS formula. Evaluates the Excel-compatible MAXIFS statistical function. Example: =MAXIFS(1,2,3).

variableMDETERMsource ↗
MDETERM: FormulaFunction

MDETERM: Returns the determinant of a square matrix.

Example
=MDETERM({1,2;3,4}) returns -2.
variableMDURATIONsource ↗
MDURATION: FormulaFunction

MDURATION: modified duration of a coupon security.

variableMEDIANsource ↗
MEDIAN: FormulaFunction

MEDIAN formula. Evaluates the Excel-compatible MEDIAN statistical function. Example: =MEDIAN(1,2,3).

variableMIDsource ↗
MID: FormulaFunction

Returns a substring by one-based start and length. Example: MID("Fluid Flow",7,4) returns "Flow".

variableMIDBsource ↗
MIDB: FormulaFunction

Returns text from a locale-defined DBCS byte position. Example: MIDB("abc", 2, 1) returns "b".

variableMINsource ↗
MIN: FormulaFunction

MIN formula. Evaluates the Excel-compatible MIN statistical function. Example: =MIN(1,2,3).

variableMINAsource ↗
MINA: FormulaFunction

MINA formula. Evaluates the Excel-compatible MINA statistical function. Example: =MINA(1,2,3).

variableMINIFSsource ↗
MINIFS: FormulaFunction

MINIFS formula. Evaluates the Excel-compatible MINIFS statistical function. Example: =MINIFS(1,2,3).

variableMINUSsource ↗
MINUS: FormulaFunction

MINUS subtracts the second value from the first. Example: =MINUS(5,2) returns 3.

variableMINUTEsource ↗
MINUTE: FormulaFunction

MINUTE: Returns the minute component from a time or date-time value. Example: =MINUTE("12:45 PM") returns 45.

variableMINVERSEsource ↗
MINVERSE: FormulaFunction

MINVERSE: Returns the inverse matrix for a square, nonsingular matrix.

Example
=MINVERSE({1,2;3,4}) returns {-2,1;1.5,-0.5}.
variableMIRRsource ↗
MIRR: FormulaFunction

MIRR: modified internal rate of return.

variableMMULTsource ↗
MMULT: FormulaFunction

MMULT: Returns the matrix product of two compatible arrays.

Example
=MMULT({1,2},{3;4}) returns 11.
variableMODsource ↗
MOD: FormulaFunction

MOD: Returns the remainder after division.

Example
=MOD(-3,2) returns 1.
variableMODEsource ↗
MODE: FormulaFunction

MODE compatibility formula: Returns the most frequent numeric value.

Example
=MODE(1,1,2,3)
variableMODE_MULTsource ↗
MODE_MULT: FormulaFunction

MODE.MULT formula. Evaluates the Excel-compatible MODE.MULT statistical function. Example: =MODE.MULT(1,2,3).

variableMODE_SNGLsource ↗
MODE_SNGL: FormulaFunction

MODE.SNGL formula. Evaluates the Excel-compatible MODE.SNGL statistical function. Example: =MODE.SNGL(1,2,3).

variableMONTHsource ↗
MONTH: FormulaFunction

MONTH: Returns the month number for a date serial. Example: =MONTH("2011-4-15") returns 4.

variableMROUNDsource ↗
MROUND: FormulaFunction

MROUND: Rounds a number to the nearest specified multiple.

Example
=MROUND(10,3) returns 9.
variableMULTINOMIALsource ↗
MULTINOMIAL: FormulaFunction

MULTINOMIAL: Returns the multinomial coefficient for a set of numbers.

Example
=MULTINOMIAL(1,1,1) returns 6.
variableMULTIPLYsource ↗
MULTIPLY: FormulaFunction

MULTIPLY multiplies two values. Example: =MULTIPLY(3,4) returns 12.

variableMUNITsource ↗
MUNIT: FormulaFunction

MUNIT: Returns an identity matrix of the requested size.

Example
=MUNIT(2) returns {1,0;0,1}.
variableNsource ↗
N: FormulaFunction

N: Converts numbers, booleans, and other values to a numeric projection.

Example
=N(TRUE)
variableNAsource ↗
NA: FormulaFunction

NA: Returns the #N/A error value.

Example
=NA()
variableNEsource ↗
NE: FormulaFunction

NE tests two values for inequality. Example: =NE(2,3) returns TRUE.

variableNEGBINOM_DISTsource ↗
NEGBINOM_DIST: FormulaFunction

NEGBINOM.DIST formula. Evaluates the Excel-compatible NEGBINOM.DIST statistical function. Example: =NEGBINOM.DIST(1,1,TRUE).

variableNEGBINOMDISTsource ↗
NEGBINOMDIST: FormulaFunction

NEGBINOMDIST compatibility formula: Returns the non-cumulative negative-binomial probability.

Example
=NEGBINOMDIST(10,5,0.25)
variableNETWORKDAYSsource ↗
NETWORKDAYS: FormulaFunction

NETWORKDAYS: Counts whole workdays between two dates, excluding weekends and holidays. Example: =NETWORKDAYS("2012-10-1","2013-3-1",{"2012-11-22";"2012-12-4";"2013-1-21"}) returns 107.

variableNETWORKDAYS_INTLsource ↗
NETWORKDAYS_INTL: FormulaFunction

NETWORKDAYS.INTL: Counts workdays between dates with custom weekend rules. Example: =NETWORKDAYS.INTL(DATE(2006,1,1),DATE(2006,2,1),"0010001",{"2006/1/2","2006/1/16"}) returns 20.

variableNOMINALsource ↗
NOMINAL: FormulaFunction

NOMINAL: nominal annual interest rate.

variableNORM_DISTsource ↗
NORM_DIST: FormulaFunction

NORM.DIST formula. Evaluates the Excel-compatible NORM.DIST statistical function. Example: =NORM.DIST(1,1,TRUE).

variableNORM_INVsource ↗
NORM_INV: FormulaFunction

NORM.INV compatibility formula: Returns an inverse normal distribution value under the NORM.INV name.

Example
=NORM.INV(0.908789,40,1.5)
variableNORM_S_DISTsource ↗
NORM_S_DIST: FormulaFunction

NORM.S.DIST formula. Evaluates the Excel-compatible NORM.S.DIST statistical function. Example: =NORM.S.DIST(1,1,TRUE).

variableNORM_S_INVsource ↗
NORM_S_INV: FormulaFunction

NORM.S.INV formula. Evaluates the Excel-compatible NORM.S.INV statistical function. Example: =NORM.S.INV(0.5,1,1).

variableNORMDISTsource ↗
NORMDIST: FormulaFunction

NORMDIST compatibility formula: Returns a normal distribution value.

Example
=NORMDIST(42,40,1.5,TRUE)
variableNORMINVsource ↗
NORMINV: FormulaFunction

NORMINV formula. Evaluates the Excel-compatible NORMINV statistical function. Example: =NORMINV(0.5,1,1).

variableNORMSDISTsource ↗
NORMSDIST: FormulaFunction

NORMSDIST compatibility formula: Returns the cumulative standard normal distribution.

Example
=NORMSDIST(1.333333)
variableNORMSINVsource ↗
NORMSINV: FormulaFunction

NORMSINV compatibility formula: Returns the inverse standard normal distribution.

Example
=NORMSINV(0.908789)
variableNOTsource ↗
NOT: FormulaFunction

NOT: Returns the inverse of a logical value.

Example
=NOT(TRUE)
variableNOWsource ↗
NOW: FormulaFunction

NOW: Returns the current date and time as an Excel serial. Example: =NOW()-0.5 returns the serial for 12 hours before the injected clock time.

variableNPERsource ↗
NPER: FormulaFunction

NPER: number of periods for an annuity.

variableNPVsource ↗
NPV: FormulaFunction

NPV: net present value of periodic cash flows.

variableNUMBERSTRINGsource ↗
NUMBERSTRING: FormulaFunction

Converts a nonnegative number to one of the supported Chinese numeral styles.

variableNUMBERVALUEsource ↗
NUMBERVALUE: FormulaFunction

Parses numeric text with explicit separators. Example: NUMBERVALUE("2.500,27",",",".") returns 2500.27.

variableODDsource ↗
ODD: FormulaFunction

ODD: Rounds a number away from zero to the nearest odd integer.

Example
=ODD(0) returns 1.
variableODDFPRICEsource ↗
ODDFPRICE: FormulaFunction

ODDFPRICE: clean price for a security with an odd first coupon period.

variableODDFYIELDsource ↗
ODDFYIELD: FormulaFunction

ODDFYIELD: yield for a security with an odd first coupon period.

variableODDLPRICEsource ↗
ODDLPRICE: FormulaFunction

ODDLPRICE: clean price for a security with an odd last coupon period.

variableODDLYIELDsource ↗
ODDLYIELD: FormulaFunction

ODDLYIELD: yield for a security with an odd last coupon period.

variableOFFSETsource ↗
OFFSET: FormulaFunction

OFFSET returns a shifted reference. Example: =OFFSET(A1,1,1) returns B2.

variableORsource ↗
OR: FormulaFunction

OR: Returns TRUE when any supplied logical value is TRUE.

Example
=OR(FALSE,TRUE)
variablePDURATIONsource ↗
PDURATION: FormulaFunction

PDURATION: periods required for an investment to reach a target value.

variablePEARSONsource ↗
PEARSON: FormulaFunction

PEARSON formula. Evaluates the Excel-compatible PEARSON statistical function. Example: =PEARSON(1,2,3).

variablePERCENTILEsource ↗
PERCENTILE: FormulaFunction

PERCENTILE compatibility formula: Returns an inclusive percentile.

Example
=PERCENTILE({1,2,3,4},0.5)
variablePERCENTILE_EXCsource ↗
PERCENTILE_EXC: FormulaFunction

PERCENTILE.EXC formula. Evaluates the Excel-compatible PERCENTILE.EXC statistical function. Example: =PERCENTILE.EXC(1,2,3).

variablePERCENTILE_INCsource ↗
PERCENTILE_INC: FormulaFunction

PERCENTILE.INC formula. Evaluates the Excel-compatible PERCENTILE.INC statistical function. Example: =PERCENTILE.INC(1,2,3).

variablePERCENTOFsource ↗
PERCENTOF: FormulaFunction

PERCENTOF: Returns the proportion represented by one value or array within another.

Example
=PERCENTOF({25},{100}) returns 0.25.
variablePERCENTRANKsource ↗
PERCENTRANK: FormulaFunction

PERCENTRANK compatibility formula: Returns an inclusive percentage rank.

Example
=PERCENTRANK({1,2,3,4},3)
variablePERCENTRANK_EXCsource ↗
PERCENTRANK_EXC: FormulaFunction

PERCENTRANK.EXC formula. Evaluates the Excel-compatible PERCENTRANK.EXC statistical function. Example: =PERCENTRANK.EXC(1,2,3).

variablePERCENTRANK_INCsource ↗
PERCENTRANK_INC: FormulaFunction

PERCENTRANK.INC formula. Evaluates the Excel-compatible PERCENTRANK.INC statistical function. Example: =PERCENTRANK.INC(1,2,3).

variablePERMUTsource ↗
PERMUT: FormulaFunction

PERMUT formula. Evaluates the Excel-compatible PERMUT statistical function. Example: =PERMUT(1,2,3).

variablePERMUTATIONAsource ↗
PERMUTATIONA: FormulaFunction

PERMUTATIONA formula. Evaluates the Excel-compatible PERMUTATIONA statistical function. Example: =PERMUTATIONA(1,2,3).

variablePHIsource ↗
PHI: FormulaFunction

PHI formula. Evaluates the Excel-compatible PHI statistical function. Example: =PHI(1,2,3).

variablePHONETICsource ↗
PHONETIC: FormulaFunction

Returns stored phonetic metadata for a cell. Example: PHONETIC(A1) returns its furigana when available.

variablePIsource ↗
PI: FormulaFunction

PI: Returns the mathematical constant pi.

Example
=PI()*0 returns 0.
variablePIVOTBYsource ↗
PIVOTBY: FormulaFunction

PIVOTBY creates a two-key summary by sum. Example: =PIVOTBY(A2:A5,B2:B5,C2:C5).

variablePMTsource ↗
PMT: FormulaFunction

PMT: periodic payment for an annuity.

variablePOISSONsource ↗
POISSON: FormulaFunction

POISSON compatibility formula: Returns a Poisson distribution value.

Example
=POISSON(2,5,TRUE)
variablePOISSON_DISTsource ↗
POISSON_DIST: FormulaFunction

POISSON.DIST formula. Evaluates the Excel-compatible POISSON.DIST statistical function. Example: =POISSON.DIST(1,1,TRUE).

variablePOWsource ↗
POW: FormulaFunction

POW raises a base to an exponent. Example: =POW(2,3) returns 8.

variablePOWERsource ↗
POWER: FormulaFunction

POWER: Raises a number to a specified power.

Example
=POWER(2,0) returns 1.
variablePPMTsource ↗
PPMT: FormulaFunction

PPMT: principal payment for a period.

variablePRICEsource ↗
PRICE: FormulaFunction

PRICE: clean price of a coupon security.

variablePRICEDISCsource ↗
PRICEDISC: FormulaFunction

PRICEDISC: price of a discounted security.

variablePRICEMATsource ↗
PRICEMAT: FormulaFunction

PRICEMAT: price of a security paying interest at maturity.

variablePROBsource ↗
PROB: FormulaFunction

PROB formula. Evaluates the Excel-compatible PROB statistical function. Example: =PROB(1,2,3).

variablePRODUCTsource ↗
PRODUCT: FormulaFunction

PRODUCT: Multiplies all numeric values in the supplied arguments.

Example
=PRODUCT(1,2,3) returns 6.
variablePROPERsource ↗
PROPER: FormulaFunction

Capitalizes each word and lowercases remaining letters. Example: PROPER("this is A TITLE") returns "This Is A Title".

variablePVsource ↗
PV: FormulaFunction

PV: present value of an annuity.

variableQUARTILEsource ↗
QUARTILE: FormulaFunction

QUARTILE compatibility formula: Returns an inclusive quartile.

Example
=QUARTILE({1,2,3,4,5},1)
variableQUARTILE_EXCsource ↗
QUARTILE_EXC: FormulaFunction

QUARTILE.EXC formula. Evaluates the Excel-compatible QUARTILE.EXC statistical function. Example: =QUARTILE.EXC(1,2,3).

variableQUARTILE_INCsource ↗
QUARTILE_INC: FormulaFunction

QUARTILE.INC formula. Evaluates the Excel-compatible QUARTILE.INC statistical function. Example: =QUARTILE.INC(1,2,3).

variableQUERYsource ↗
QUERY: FormulaFunction

QUERY runs a Google Visualization-style query over tabular data. Example: =QUERY({"A",1;"B",2},"select Col1 where Col2 > 1",0) returns "B".

variableQUOTIENTsource ↗
QUOTIENT: FormulaFunction

QUOTIENT: Returns the integer portion of a division.

Example
=QUOTIENT(-10,3) returns -3.
variableRADIANSsource ↗
RADIANS: FormulaFunction

RADIANS: Converts an angle from degrees to radians.

Example
=RADIANS(180) returns pi.
variableRANDsource ↗
RAND: FormulaFunction

RAND: Returns a random decimal number greater than or equal to 0 and less than 1.

Example
=RAND() returns a value in the range [0,1).
variableRANDARRAYsource ↗
RANDARRAY: FormulaFunction

RANDARRAY: Generates an array of random numbers with the requested shape and bounds.

Example
=RANDARRAY(1,4,5,5,TRUE) returns {5,5,5,5}.
variableRANDBETWEENsource ↗
RANDBETWEEN: FormulaFunction

RANDBETWEEN: Returns a random integer between two inclusive bounds.

Example
=RANDBETWEEN(7,7) returns 7.
variableRANKsource ↗
RANK: FormulaFunction

RANK compatibility formula: Returns the rank of a number in a list.

Example
=RANK(3,{1,2,3,4},0)
variableRANK_AVGsource ↗
RANK_AVG: FormulaFunction

RANK.AVG formula. Evaluates the Excel-compatible RANK.AVG statistical function. Example: =RANK.AVG(1,2,3).

variableRANK_EQsource ↗
RANK_EQ: FormulaFunction

RANK.EQ formula. Evaluates the Excel-compatible RANK.EQ statistical function. Example: =RANK.EQ(1,2,3).

variableRATEsource ↗
RATE: FormulaFunction

RATE: periodic interest rate for an annuity.

variableRECEIVEDsource ↗
RECEIVED: FormulaFunction

RECEIVED: amount received at maturity for a discounted security.

variableREGEXEXTRACTsource ↗
REGEXEXTRACT: FormulaFunction

Extracts regex matches or capture groups. Example: REGEXEXTRACT("A12","[0-9]+") returns "12".

variableREGEXMATCHsource ↗
REGEXMATCH: FormulaFunction

REGEXMATCH tests whether text matches a regular expression. Example: =REGEXMATCH("A12","[0-9]+") returns TRUE.

variableREGEXREPLACEsource ↗
REGEXREPLACE: FormulaFunction

Replaces all or one regex match. Example: REGEXREPLACE("A12","[0-9]+","#") returns "A#".

variableREGEXTESTsource ↗
REGEXTEST: FormulaFunction

Tests whether text matches a regular expression. Example: REGEXTEST("A12","[0-9]+") returns TRUE.

variableREGISTER_IDsource ↗
REGISTER_ID: FormulaFunction

Resolves a host-authorized add-in procedure to a stable numeric registration id. Example: =REGISTER.ID(&quot;example&quot;,&quot;entry&quot;,&quot;JJ&quot;) returns the host's handle for entry.

variableREPLACEsource ↗
REPLACE: FormulaFunction

Replaces characters at a one-based position. Example: REPLACE("abc",2,1,"X") returns "aXc".

variableREPLACEBsource ↗
REPLACEB: FormulaFunction

Replaces text at a locale-defined DBCS byte position. Example: REPLACEB("abc", 2, 1, "x") returns "axc".

variableREPTsource ↗
REPT: FormulaFunction

Repeats text a specified number of times. Example: REPT("-",3) returns "---".

variableRIGHTsource ↗
RIGHT: FormulaFunction

Returns characters from the end of text. Example: RIGHT("Sale",2) returns "le".

variableRIGHTBsource ↗
RIGHTB: FormulaFunction

Returns trailing text limited by a locale-defined DBCS byte count. Example: RIGHTB("abc", 2) returns "bc".

variableROMANsource ↗
ROMAN: FormulaFunction

ROMAN: Converts an Arabic number to Roman numeral text.

Example
=ROMAN(2024) returns "MMXXIV".
variableROUNDsource ↗
ROUND: FormulaFunction

ROUND: Rounds a number to a specified number of digits.

Example
=ROUND(-1.475,2) returns -1.48.
variableROUNDDOWNsource ↗
ROUNDDOWN: FormulaFunction

ROUNDDOWN: Rounds a number toward zero to a specified number of digits.

Example
=ROUNDDOWN(-3.9,0) returns -3.
variableROUNDUPsource ↗
ROUNDUP: FormulaFunction

ROUNDUP: Rounds a number away from zero to a specified number of digits.

Example
=ROUNDUP(-3.1,0) returns -4.
variableROWsource ↗
ROW: FormulaFunction

ROW returns a reference's first row number. Example: =ROW(C5) returns 5.

variableROWSsource ↗
ROWS: FormulaFunction

ROWS returns the number of rows in a reference. Example: =ROWS(A1:C2) returns 2.

variableRRIsource ↗
RRI: FormulaFunction

RRI: equivalent growth rate for an investment.

variableRSQsource ↗
RSQ: FormulaFunction

RSQ formula. Evaluates the Excel-compatible RSQ statistical function. Example: =RSQ(1,2,3).

variableRTDsource ↗
RTD: FormulaFunction

RTD reads a host-managed real-time data cache. Example: =RTD("provider",,"price","MSFT").

variableSEARCHBsource ↗
SEARCHB: FormulaFunction

Finds case-insensitive text using locale-defined DBCS byte positions. Example: SEARCHB("B", "abc") returns 2.

variableSECsource ↗
SEC: FormulaFunction

SEC: Returns the secant of an angle in radians.

Example
=SEC(0) returns 1.
variableSECHsource ↗
SECH: FormulaFunction

SECH: Returns the hyperbolic secant of a number.

Example
=SECH(0) returns 1.
variableSECONDsource ↗
SECOND: FormulaFunction

SECOND: Returns the second component from a time or date-time value. Example: =SECOND("4:48:18 PM") returns 18.

variableSEQUENCEsource ↗
SEQUENCE: FormulaFunction

SEQUENCE: Generates a sequential array from a starting value and step.

Example
=SEQUENCE(2,3,0,2) returns {0,2,4;6,8,10}.
variableSERIESSUMsource ↗
SERIESSUM: FormulaFunction

SERIESSUM: Evaluates a power series from an initial value, step, and coefficients.

Example
=SERIESSUM(2,0,1,{1,2,3}) returns 17.
variableSHEETsource ↗
SHEET: FormulaFunction

SHEET: Returns the one-based index of a sheet.

Example
=SHEET()
variableSHEETSsource ↗
SHEETS: FormulaFunction

SHEETS: Returns the number of sheets in the workbook.

Example
=SHEETS()
variableSIGNsource ↗
SIGN: FormulaFunction

SIGN: Returns -1, 0, or 1 according to the sign of a number.

Example
=SIGN(0) returns 0.
variableSINsource ↗
SIN: FormulaFunction

SIN: Returns the sine of an angle in radians.

Example
=SIN(0) returns 0.
variableSingleByteFormulaTextLocalesource ↗
SingleByteFormulaTextLocale: FormulaTextLocale

Excel-compatible text locale where every Unicode code point counts as one byte.

variableSINHsource ↗
SINH: FormulaFunction

SINH: Returns the hyperbolic sine of a number.

Example
=SINH(0) returns 0.
variableSKEWsource ↗
SKEW: FormulaFunction

SKEW formula. Evaluates the Excel-compatible SKEW statistical function. Example: =SKEW(1,2,3).

variableSKEW_Psource ↗
SKEW_P: FormulaFunction

SKEW.P formula. Evaluates the Excel-compatible SKEW.P statistical function. Example: =SKEW.P(1,2,3).

variableSLNsource ↗
SLN: FormulaFunction

SLN: straight-line depreciation.

variableSLOPEsource ↗
SLOPE: FormulaFunction

SLOPE formula. Evaluates the Excel-compatible SLOPE statistical function. Example: =SLOPE(1,2,3).

variableSMALLsource ↗
SMALL: FormulaFunction

SMALL formula. Evaluates the Excel-compatible SMALL statistical function. Example: =SMALL(1,2,3).

variableSORTsource ↗
SORT: FormulaFunction

SORT orders rows by one column. Example: =SORT(A1:B3,1,1).

variableSORTBYsource ↗
SORTBY: FormulaFunction

SORTBY orders rows using one or more key arrays. Example: =SORTBY(A1:B3,B1:B3,1).

variableSORTNsource ↗
SORTN: FormulaFunction

SORTN returns the first ranked rows after sorting. Example: =SORTN({3;1;2},2) returns {1;2}.

variableSPARKLINEsource ↗
SPARKLINE: FormulaFunction

SPARKLINE renders numeric data as a compact text sparkline. Example: =SPARKLINE({1,3,2}) returns a three-glyph trend.

variableSPLITsource ↗
SPLIT: FormulaFunction

SPLIT divides text into a spilling row. Example: =SPLIT("a,b,c",",") returns {"a","b","c"}.

variableSQRTsource ↗
SQRT: FormulaFunction

SQRT: Returns the positive square root of a number.

Example
=SQRT(0) returns 0.
variableSQRTPIsource ↗
SQRTPI: FormulaFunction

SQRTPI: Returns the square root of a number multiplied by pi.

Example
=SQRTPI(0) returns 0.
variableSTANDARDIZEsource ↗
STANDARDIZE: FormulaFunction

STANDARDIZE formula. Evaluates the Excel-compatible STANDARDIZE statistical function. Example: =STANDARDIZE(1,2,3).

variableSTDEVsource ↗
STDEV: FormulaFunction

STDEV compatibility formula: Returns the sample standard deviation.

Example
=STDEV(1,2,3)
variableSTDEV_Psource ↗
STDEV_P: FormulaFunction

STDEV.P formula. Evaluates the Excel-compatible STDEV.P statistical function. Example: =STDEV.P(1,2,3).

variableSTDEV_Ssource ↗
STDEV_S: FormulaFunction

STDEV.S formula. Evaluates the Excel-compatible STDEV.S statistical function. Example: =STDEV.S(1,2,3).

variableSTDEVAsource ↗
STDEVA: FormulaFunction

STDEVA formula. Evaluates the Excel-compatible STDEVA statistical function. Example: =STDEVA(1,2,3).

variableSTDEVPsource ↗
STDEVP: FormulaFunction

STDEVP compatibility formula: Returns the population standard deviation.

Example
=STDEVP(1,2,3)
variableSTDEVPAsource ↗
STDEVPA: FormulaFunction

STDEVPA formula. Evaluates the Excel-compatible STDEVPA statistical function. Example: =STDEVPA(1,2,3).

variableSTEYXsource ↗
STEYX: FormulaFunction

STEYX formula. Evaluates the Excel-compatible STEYX statistical function. Example: =STEYX(1,2,3).

variableSTOCKHISTORYsource ↗
STOCKHISTORY: FormulaFunction

STOCKHISTORY: Returns historical market data from a host-managed synchronous cache.

Example
=STOCKHISTORY("MSFT",DATE(2024,1,1))
variableSUBSTITUTEsource ↗
SUBSTITUTE: FormulaFunction

Replaces matching text, optionally only one occurrence. Example: SUBSTITUTE("a-b","-","/") returns "a/b".

variableSUBTOTALsource ↗
SUBTOTAL: FormulaFunction

SUBTOTAL: Calculates a subtotal for a range using a selected aggregation code.

Example
=SUBTOTAL(9,A1:A3) returns the sum of A1:A3.
variableSUMsource ↗
SUM: FormulaFunction

SUM function definition.

variableSUMIFsource ↗
SUMIF: FormulaFunction

SUMIF: Adds values that satisfy one condition.

Example
=SUMIF({1,2,3},">1",{10,20,30}) returns 50.
variableSUMIFSsource ↗
SUMIFS: FormulaFunction

Sums values whose corresponding ranges satisfy every criterion.

variableSUMPRODUCTsource ↗
SUMPRODUCT: FormulaFunction

SUMPRODUCT: Multiplies corresponding array elements and adds the products.

Example
=SUMPRODUCT({2,3,4},{10,20,30}) returns 200.
variableSUMSQsource ↗
SUMSQ: FormulaFunction

SUMSQ: Returns the sum of the squares of numeric values.

Example
=SUMSQ(0,3) returns 9.
variableSUMX2MY2source ↗
SUMX2MY2: FormulaFunction

SUMX2MY2: Returns the sum of the differences between corresponding squares.

Example
=SUMX2MY2({1,2},{3,4}) returns -20.
variableSUMX2PY2source ↗
SUMX2PY2: FormulaFunction

SUMX2PY2: Returns the sum of the sums of corresponding squares.

Example
=SUMX2PY2({1,2},{3,4}) returns 30.
variableSUMXMY2source ↗
SUMXMY2: FormulaFunction

SUMXMY2: Returns the sum of the squares of corresponding differences.

Example
=SUMXMY2({1,2},{3,4}) returns 8.
variableSWITCHsource ↗
SWITCH: FormulaFunction

SWITCH: Matches one expression and returns its paired result.

Example
=SWITCH(2,1,"one",2,"two","other")
variableSYDsource ↗
SYD: FormulaFunction

SYD: sum-of-years-digits depreciation.

variableTsource ↗
T: FormulaFunction

Returns text values and an empty string for non-text values. Example: T("Excel") returns "Excel".

variableT_DISTsource ↗
T_DIST: FormulaFunction

T.DIST formula. Evaluates the Excel-compatible T.DIST statistical function. Example: =T.DIST(1,1,TRUE).

variableT_DIST_2Tsource ↗
T_DIST_2T: FormulaFunction

T.DIST.2T formula. Evaluates the Excel-compatible T.DIST.2T statistical function. Example: =T.DIST.2T(1,1,TRUE).

variableT_DIST_RTsource ↗
T_DIST_RT: FormulaFunction

T.DIST.RT formula. Evaluates the Excel-compatible T.DIST.RT statistical function. Example: =T.DIST.RT(1,1,TRUE).

variableT_INVsource ↗
T_INV: FormulaFunction

T.INV formula. Evaluates the Excel-compatible T.INV statistical function. Example: =T.INV(0.5,1,1).

variableT_INV_2Tsource ↗
T_INV_2T: FormulaFunction

T.INV.2T formula. Evaluates the Excel-compatible T.INV.2T statistical function. Example: =T.INV.2T(0.5,1,1).

variableT_TESTsource ↗
T_TEST: FormulaFunction

T.TEST formula. Evaluates the Excel-compatible T.TEST statistical function. Example: =T.TEST(1,2,3).

variableTAKEsource ↗
TAKE: FormulaFunction

TAKE keeps rows and columns. Example: =TAKE(A1:C3,2) keeps the first two rows.

variableTANsource ↗
TAN: FormulaFunction

TAN: Returns the tangent of an angle in radians.

Example
=TAN(0) returns 0.
variableTANHsource ↗
TANH: FormulaFunction

TANH: Returns the hyperbolic tangent of a number.

Example
=TANH(0) returns 0.
variableTBILLEQsource ↗
TBILLEQ: FormulaFunction

TBILLEQ: bond-equivalent yield for a Treasury bill.

variableTBILLPRICEsource ↗
TBILLPRICE: FormulaFunction

TBILLPRICE: price per 100 for a Treasury bill.

variableTBILLYIELDsource ↗
TBILLYIELD: FormulaFunction

TBILLYIELD: discount yield for a Treasury bill price.

variableTDISTsource ↗
TDIST: FormulaFunction

TDIST compatibility formula: Returns a one- or two-tailed Student t probability.

Example
=TDIST(1.96,60,2)
variableTEXTsource ↗
TEXT: FormulaFunction

Formats a value with an Excel format code. Example: TEXT(1234.5,"#,##0.00") returns "1,234.50".

variableTEXTAFTERsource ↗
TEXTAFTER: FormulaFunction

Returns text after a delimiter occurrence. Example: TEXTAFTER("red-blue","-") returns "blue".

variableTEXTBEFOREsource ↗
TEXTBEFORE: FormulaFunction

Returns text before a delimiter occurrence. Example: TEXTBEFORE("red-blue","-") returns "red".

variabletextFunctionssource ↗
textFunctions: readonly FormulaFunction[]
variableTEXTJOINsource ↗
TEXTJOIN: FormulaFunction

Joins values with a delimiter and optional empty-value filtering. Example: TEXTJOIN(",",TRUE,"A","B") returns "A,B".

variableTEXTSPLITsource ↗
TEXTSPLIT: FormulaFunction

Splits text into a spill matrix. Example: TEXTSPLIT("A,B",",") returns {"A","B"}.

variableTIMEsource ↗
TIME: FormulaFunction

TIME: Converts hour, minute, and second parts into a fraction of one day. Example: =TIME(12,0,0) returns 0.5.

variableTIMEVALUEsource ↗
TIMEVALUE: FormulaFunction

TIMEVALUE: Converts time text into the fractional part of one day. Example: =TIMEVALUE("2:24 AM") returns 0.1.

variableTINVsource ↗
TINV: FormulaFunction

TINV compatibility formula: Returns the inverse two-tailed Student t value.

Example
=TINV(0.05,10)
variableTO_DATEsource ↗
TO_DATE: FormulaFunction

TO_DATE converts a number to its Excel date serial by removing its time fraction. Example: =TO_DATE(45351.75) returns 45351.

variableTO_DOLLARSsource ↗
TO_DOLLARS: FormulaFunction

TO_DOLLARS converts a value to a dollar amount. Example: =TO_DOLLARS(12.5) returns 12.5.

variableTO_PERCENTsource ↗
TO_PERCENT: FormulaFunction

TO_PERCENT converts a decimal to its percentage value. Example: =TO_PERCENT(0.25) returns 0.25 for percentage formatting.

variableTO_PURE_NUMBERsource ↗
TO_PURE_NUMBER: FormulaFunction

TO_PURE_NUMBER strips display formatting and returns a number. Example: =TO_PURE_NUMBER("42") returns 42.

variableTO_TEXTsource ↗
TO_TEXT: FormulaFunction

TO_TEXT converts a scalar to text. Example: =TO_TEXT(42) returns "42".

variableTOCOLsource ↗
TOCOL: FormulaFunction

TOCOL flattens an array into one column. Example: =TOCOL(A1:B2).

variableTODAYsource ↗
TODAY: FormulaFunction

TODAY: Returns the current date as an Excel serial without a time fraction. Example: =TODAY()+5 returns the serial for five days after the injected current date.

variableTOROWsource ↗
TOROW: FormulaFunction

TOROW flattens an array into one row. Example: =TOROW(A1:B2).

variableTRANSLATEsource ↗
TRANSLATE: FormulaFunction

Reads a previously loaded translation from the host cache. Example: TRANSLATE("hello", "en", "es") reads the cached result.

variableTRANSPOSEsource ↗
TRANSPOSE: FormulaFunction

TRANSPOSE swaps array rows and columns. Example: =TRANSPOSE(A1:B2).

variableTRENDsource ↗
TREND: FormulaFunction

TREND formula. Evaluates the Excel-compatible TREND statistical function. Example: =TREND(1,2,3).

variableTRIMsource ↗
TRIM: FormulaFunction

Removes outer ASCII spaces and collapses internal runs. Example: TRIM(" a b ") returns "a b".

variableTRIMMEANsource ↗
TRIMMEAN: FormulaFunction

TRIMMEAN formula. Evaluates the Excel-compatible TRIMMEAN statistical function. Example: =TRIMMEAN(1,2,3).

variableTRIMRANGEsource ↗
TRIMRANGE: FormulaFunction

TRIMRANGE removes fully blank outer rows and columns. Example: =TRIMRANGE(A1:D5).

variableTRUEsource ↗
TRUE: FormulaFunction

TRUE: Returns the logical value TRUE.

Example
=TRUE()
variableTRUNCsource ↗
TRUNC: FormulaFunction

TRUNC: Truncates a number toward zero to a specified number of digits.

Example
=TRUNC(-3.9) returns -3.
variableTTESTsource ↗
TTEST: FormulaFunction

TTEST compatibility formula: Returns a Student t-test probability.

Example
=TTEST({1,2,3},{1,2,4},2,1)
variableTYPEsource ↗
TYPE: FormulaFunction

TYPE: Returns the numeric type code for a formula value.

Example
=TYPE(42)
variableUMINUSsource ↗
UMINUS: FormulaFunction

UMINUS reverses a number's sign. Example: =UMINUS(3) returns -3.

variableUNARY_PERCENTsource ↗
UNARY_PERCENT: FormulaFunction

UNARY_PERCENT converts a percentage value to its decimal. Example: =UNARY_PERCENT(25) returns 0.25.

variableUNICHARsource ↗
UNICHAR: FormulaFunction

Returns the Unicode character for a code point. Example: UNICHAR(9733) returns "★".

variableUNICODEsource ↗
UNICODE: FormulaFunction

Returns the Unicode code point of the first character. Example: UNICODE("★") returns 9733.

variableUNIQUEsource ↗
UNIQUE: FormulaFunction

UNIQUE returns distinct rows. Example: =UNIQUE({1;1;2}) returns 1 and 2.

variableUPLUSsource ↗
UPLUS: FormulaFunction

UPLUS returns the numeric value unchanged. Example: =UPLUS("3") returns 3.

variableUPPERsource ↗
UPPER: FormulaFunction

Converts letters to uppercase. Example: UPPER("Excel") returns "EXCEL".

variableVALUEsource ↗
VALUE: FormulaFunction

Converts common numeric text to a number. Example: VALUE("$1,234.50") returns 1234.5.

variableVALUETOTEXTsource ↗
VALUETOTEXT: FormulaFunction

Converts one value to concise or strict text. Example: VALUETOTEXT("A",1) returns "&quot;A&quot;".

variableVARsource ↗
VAR: FormulaFunction

VAR formula. Estimates sample variance for compatibility with legacy Excel workbooks. Example: =VAR(1,2,3).

variableVAR_Psource ↗
VAR_P: FormulaFunction

VAR.P formula. Evaluates the Excel-compatible VAR.P statistical function. Example: =VAR.P(1,2,3).

variableVAR_Ssource ↗
VAR_S: FormulaFunction

VAR.S formula. Evaluates the Excel-compatible VAR.S statistical function. Example: =VAR.S(1,2,3).

variableVARAsource ↗
VARA: FormulaFunction

VARA formula. Evaluates the Excel-compatible VARA statistical function. Example: =VARA(1,2,3).

variableVARPsource ↗
VARP: FormulaFunction

VARP compatibility formula: Returns the population variance.

Example
=VARP(1,2,3)
variableVARPAsource ↗
VARPA: FormulaFunction

VARPA formula. Evaluates the Excel-compatible VARPA statistical function. Example: =VARPA(1,2,3).

variableVDBsource ↗
VDB: FormulaFunction

VDB: variable declining-balance depreciation.

variableVLOOKUPsource ↗
VLOOKUP: FormulaFunction

VLOOKUP: Searches the first column of a table and returns a value from a selected column.

Example
=VLOOKUP(2,{1,"A";2,"B"},2,FALSE) returns "B".
variableVSTACKsource ↗
VSTACK: FormulaFunction

VSTACK joins arrays vertically. Example: =VSTACK({1,2},{3,4}).

variablewebFunctionssource ↗
webFunctions: readonly FormulaFunction[]
variableWEBSERVICEsource ↗
WEBSERVICE: FormulaFunction

Reads response text from a host-loaded HTTP cache. Example: WEBSERVICE("https://example.com/data.xml") returns cached XML.

variableWEEKDAYsource ↗
WEEKDAY: FormulaFunction

WEEKDAY: Returns the day of week using the requested Excel return type. Example: =WEEKDAY("2008-2-14",2) returns 4.

variableWEEKNUMsource ↗
WEEKNUM: FormulaFunction

WEEKNUM: Returns the week number of a date using Excel week-numbering rules. Example: =WEEKNUM("2012-3-9",2) returns 11.

variableWEIBULLsource ↗
WEIBULL: FormulaFunction

WEIBULL compatibility formula: Returns a Weibull distribution value.

Example
=WEIBULL(105,20,100,TRUE)
variableWEIBULL_DISTsource ↗
WEIBULL_DIST: FormulaFunction

WEIBULL.DIST formula. Evaluates the Excel-compatible WEIBULL.DIST statistical function. Example: =WEIBULL.DIST(1,1,TRUE).

variableWORKDAYsource ↗
WORKDAY: FormulaFunction

WORKDAY: Returns the date serial after moving a number of workdays from a start date. Example: =WORKDAY("2008-10-1",151,{"11/26/2008";"12/4/2008";"1/21/2009"}) returns 39938.

variableWORKDAY_INTLsource ↗
WORKDAY_INTL: FormulaFunction

WORKDAY.INTL: Returns a workday-offset date serial with custom weekend rules. Example: =WORKDAY.INTL(DATE(2012,1,1),30,17) returns 40944.

variableWRAPCOLSsource ↗
WRAPCOLS: FormulaFunction

WRAPCOLS wraps a vector by columns. Example: =WRAPCOLS({1,2,3},2,0).

variableWRAPROWSsource ↗
WRAPROWS: FormulaFunction

WRAPROWS wraps a vector by rows. Example: =WRAPROWS({1,2,3},2,0).

variableXIRRsource ↗
XIRR: FormulaFunction

XIRR: internal rate of return for irregular cash-flow dates.

variableXLOOKUPsource ↗
XLOOKUP: FormulaFunction

XLOOKUP searches a vector and returns a corresponding value. Example: =XLOOKUP(2,{1,2},{"A","B"}).

variableXMATCHsource ↗
XMATCH: FormulaFunction

XMATCH returns a position with modern MATCH modes. Example: =XMATCH("B",{"A";"B"}).

variableXNPVsource ↗
XNPV: FormulaFunction

XNPV: net present value for irregular cash-flow dates.

variableXORsource ↗
XOR: FormulaFunction

XOR: Returns TRUE when an odd number of values are TRUE.

Example
=XOR(TRUE,FALSE)
variableYEARsource ↗
YEAR: FormulaFunction

YEAR: Returns the year for a date serial. Example: =YEAR("7/5/2025") returns 2025.

variableYEARFRACsource ↗
YEARFRAC: FormulaFunction

YEARFRAC: Returns the fraction of a year represented by two dates. Example: =YEARFRAC("1/1/2012","7/30/2012",1) returns 0.5765027322404371.

variableYIELDsource ↗
YIELD: FormulaFunction

YIELD: yield of a coupon security.

variableYIELDDISCsource ↗
YIELDDISC: FormulaFunction

YIELDDISC: yield of a discounted security.

variableYIELDMATsource ↗
YIELDMAT: FormulaFunction

YIELDMAT: yield of a security paying interest at maturity.

variableZ_TESTsource ↗
Z_TEST: FormulaFunction

Z.TEST formula. Evaluates the Excel-compatible Z.TEST statistical function. Example: =Z.TEST(1,2,3).

variableZTESTsource ↗
ZTEST: FormulaFunction

ZTEST compatibility formula: Returns the one-tailed z-test probability.

Example
=ZTEST({3,6,7,8},4)
functionbondDurationsource ↗
bondDuration(settlement: number, maturity: number, annualRate: number, annualYield: number, redemption?: number, frequencyValue?: number, basisValue?: number): BondResult

Computes Macaulay duration from a clean bond price.

settlement: number
maturity: number
annualRate: number
annualYield: number
redemption: number
frequencyValue: number
basisValue: number
functionbondPricesource ↗
bondPrice(settlement: number, maturity: number, annualRate: number, annualYield: number, redemption?: number, frequencyValue?: number, basisValue?: number): BondResult

Prices a coupon bond per 100 face value using a clean price.

settlement: number
maturity: number
annualRate: number
annualYield: number
redemption: number
frequencyValue: number
basisValue: number
functioncellKeysource ↗
cellKey(row: number, col: number): number

Encodes zero-based coordinates as one numeric cell key.

row: number
col: number
functioncollectFinancialCashFlowssource ↗
collectFinancialCashFlows(arg: FormulaArg | undefined, context: EvalContext, acceptFormattedText?: boolean): number[] | FormulaError

Collects a scalar, array, or range argument into finite numeric cash flows.

arg: FormulaArg | undefined
context: EvalContext
acceptFormattedText: boolean
functioncollectFinancialDateSerialssource ↗
collectFinancialDateSerials(arg: FormulaArg | undefined, context: EvalContext, acceptFormattedText?: boolean): number[] | FormulaError

Date arguments use whole serial days and reject boolean values.

arg: FormulaArg | undefined
context: EvalContext
acceptFormattedText: boolean
functioncollectFinancialScheduleRatessource ↗
collectFinancialScheduleRates(arg: FormulaArg | undefined, context: EvalContext): number[] | FormulaError

Multi-cell schedules reject stored text rates even when the text is numeric.

arg: FormulaArg | undefined
context: EvalContext
functioncollectNpvCashFlowssource ↗
collectNpvCashFlows(arg: FormulaArg | undefined, context: EvalContext): number[] | FormulaError

NPV ignores nonnumeric cells in references without consuming a period.

arg: FormulaArg | undefined
context: EvalContext
functioncouponAmountsource ↗
couponAmount(faceValue: number, annualRate: number, frequency: 1 | 2 | 4): number | FormulaError

Returns the coupon amount for a face value and annual coupon rate.

faceValue: number
annualRate: number
frequency: 1 | 2 | 4
functioncreateDefaultFormulaLocaleProvidersource ↗
createDefaultFormulaLocaleProvider(): IFormulaLocaleProvider

Creates the default formula locale provider used when no i18n plugin is installed.

functioncreateExcelDateTimeLocalesource ↗
createExcelDateTimeLocale(input: BuiltInExcelDateTimeLocaleId | { locale: string; symbols?: FormulaDateTimeSymbols }): FormulaDateTimeLocale

Creates a built-in Excel-compatible date/time locale.

input: BuiltInExcelDateTimeLocaleId | { locale: string; symbols?: FormulaDateTimeSymbols }
functioncreateFormulaTextLocalesource ↗
createFormulaTextLocale(input: { calculationModeLabel?: (mode: "Automatic" | "Manual"): string; characterCode?: (text: string): number; characterFromCode?: (code: number): string | undefined; charWidth: CharWidth; compareText?: (left: string, right: string): number; locale: string; toFullWidth?: (text: string): string; toHalfWidth?: (text: string): string; … }): FormulaTextLocale

Creates a byte-oriented text locale from a character-width strategy.

input: { calculationModeLabel?: (mode: "Automatic" | "Manual"): string; characterCode?: (text: string): number; characterFromCode?: (code: number): string | undefined; charWidth: CharWidth; compareText?: (left: string, right: string): number; locale: string; toFullWidth?: (text: string): string; toHalfWidth?: (text: string): string; … }
functioncurrentExcelDateTimeSerialsource ↗
currentExcelDateTimeSerial(context: EvalContext): number
context: EvalContext
functiondecliningBalanceDepreciationsource ↗
decliningBalanceDepreciation(cost: number, salvage: number, life: number, period: number, factor?: number): DepreciationResult

Declining-balance depreciation for a one-based period.

cost: number
salvage: number
life: number
period: number
factor: number
functionexcelDatePartsFromSerialsource ↗
excelDatePartsFromSerial(serial: number): ExcelDateParts | null
serial: number
functionexcelSerialFromDatePartssource ↗
excelSerialFromDateParts(year: number, month: number, day: number): number | null
year: number
month: number
day: number
functionexcelSerialToUnixMillissource ↗
excelSerialToUnixMillis(serial: number): number
serial: number
functionexcelTimeFractionsource ↗
excelTimeFraction(hour: number, minute: number, second: number): number | null
hour: number
minute: number
second: number
functionfinancialDayCountDayssource ↗
financialDayCountDays(start: number, end: number, basis: FinancialDayCountBasis): DayCountResult

Returns the number of days between two Excel serial dates for a basis.

start: number
end: number
basis: FinancialDayCountBasis
functionfinancialDivisionErrorsource ↗
financialDivisionError(): FormulaError

Returns a standard #DIV/0! result for an undefined periodic payment.

functionfinancialNumberErrorsource ↗
financialNumberError(): FormulaError

Returns a standard #NUM! result for an invalid basis or date interval.

functionfinancialValueErrorsource ↗
financialValueError(): FormulaError

Returns a standard #VALUE! result for malformed financial inputs.

functionfinancialYearFractionsource ↗
financialYearFraction(start: number, end: number, basis: FinancialDayCountBasis): DayCountResult

Returns the Excel year fraction for a financial basis.

start: number
end: number
basis: FinancialDayCountBasis
functionforEachFinancialCashFlowsource ↗
forEachFinancialCashFlow(arg: FormulaArg, context: EvalContext, callback: (value: number, index: number): boolean | void): FormulaError | undefined

Streams numeric values from a range without allocating an intermediate matrix.

arg: FormulaArg
context: EvalContext
callback: (value: number, index: number): boolean | void
functionformatBahtTextsource ↗
formatBahtText(value: number): string | undefined

Converts a finite number to Excel-style Thai baht and satang text.

value: number
functionformatExcelDateTimesource ↗
formatExcelDateTime(serial: number, pattern?: string): string
serial: number
pattern: string
functionfromCellKeysource ↗
fromCellKey(key: number): [number, number]

Decodes a numeric cell key to zero-based coordinates.

key: number
functionfutureValuesource ↗
futureValue(rate: number, periods: number, payment: number, presentValue: number, type?: number): FinancialNumberResult

Computes the future value of a periodic annuity.

rate: number
periods: number
payment: number
presentValue: number
type: number
functionisFinancialMonthEndsource ↗
isFinancialMonthEnd(serial: number): boolean

Returns whether an Excel serial date is the last calendar day of its month.

serial: number
functionisTextualFinancialReferencesource ↗
isTextualFinancialReference(arg: FormulaArg | undefined, context: EvalContext): boolean
arg: FormulaArg | undefined
context: EvalContext
functionnormalizeCouponFrequencysource ↗
normalizeCouponFrequency(value: number): 1 | 2 | 4 | FormulaError

Validates a bond frequency used by Excel financial functions.

value: number
functionnormalizeFinancialBasissource ↗
normalizeFinancialBasis(value: number | undefined): FormulaError | FinancialDayCountBasis

Checks and normalizes the five Excel day-count basis values.

value: number | undefined
functionnumericDateTextsource ↗
numericDateText(value: FormulaValue, context: EvalContext): number | undefined
value: FormulaValue
context: EvalContext
functionoddLastRegularPeriodDayssource ↗
oddLastRegularPeriodDays(lastCoupon: number, frequency: 1 | 2 | 4, basis: FinancialDayCountBasis): number | FormulaError

Returns the basis-dependent length of a regular period after the final coupon date.

lastCoupon: number
frequency: 1 | 2 | 4
basis: FinancialDayCountBasis
functionparseCellRefsource ↗
parseCellRef(ref: string): ParsedCellRef

Parses an A1-notation cell reference.

ref: string
functionparseExcelDatesource ↗
parseExcelDate(value: unknown, options?: ExcelDateTimeParseOptions): number | null
value: unknown
options: ExcelDateTimeParseOptions
functionparseExcelDateTimesource ↗
parseExcelDateTime(value: unknown, options?: ExcelDateTimeParseOptions): ParsedExcelDateTime | null
value: unknown
options: ExcelDateTimeParseOptions
functionparseExcelTimesource ↗
parseExcelTime(value: unknown, options?: ExcelDateTimeParseOptions): number | null
value: unknown
options: ExcelDateTimeParseOptions
functionpaymentsource ↗
payment(rate: number, periods: number, presentValue: number, future?: number, type?: number): FinancialNumberResult

Computes a periodic payment for an annuity.

rate: number
periods: number
presentValue: number
future: number
type: number
functionperiodicNpvsource ↗
periodicNpv(rate: number, cashFlows: readonly number[]): FinancialNumberResult

Computes periodic NPV. The first value is discounted by one period.

rate: number
cashFlows: readonly number[]
functionreadFinancialNumbersource ↗
readFinancialNumber(arg: FormulaArg | undefined, context: EvalContext, options?: { acceptLocalizedCurrency?: boolean }): FinancialNumberResult

Reads a scalar financial input, preserving formula errors.

arg: FormulaArg | undefined
context: EvalContext
options: { acceptLocalizedCurrency?: boolean }
functionresolveCouponSchedulesource ↗
resolveCouponSchedule(settlement: number, maturity: number, frequencyValue: number, basisValue?: number): FormulaError | CouponSchedule

Resolves the previous/next coupon dates and basis-dependent day counts.

settlement: number
maturity: number
frequencyValue: number
basisValue: number
functionresolveOddFirstCouponSchedulesource ↗
resolveOddFirstCouponSchedule(settlement: number, maturity: number, firstCoupon: number, frequencyValue: number, basisValue?: number): FormulaError | CouponSchedule

Resolves an odd first coupon schedule anchored at its first payment date.

settlement: number
maturity: number
firstCoupon: number
frequencyValue: number
basisValue: number
functionsolveFinancialRootsource ↗
solveFinancialRoot(functionValue: (value: number): number, derivative: (value: number): number | undefined, options?: FinancialRootOptions): FinancialRootResult

Solves a one-dimensional financial equation with a bracketed Newton/bisection method. The fixed iteration budget prevents a malformed cash-flow formula from blocking recalculation.

functionValue: (value: number): number
derivative: (value: number): number | undefined
options: FinancialRootOptions
functionstraightLineDepreciationsource ↗
straightLineDepreciation(cost: number, salvage: number, life: number): DepreciationResult

Straight-line depreciation for one period.

cost: number
salvage: number
life: number
functionsumOfYearsDepreciationsource ↗
sumOfYearsDepreciation(cost: number, salvage: number, life: number, period: number): DepreciationResult

Sum-of-years-digits depreciation for a one-based period.

cost: number
salvage: number
life: number
period: number
functiontoCellRefsource ↗
toCellRef(row: number, col: number, absRow?: boolean, absCol?: boolean): string

Converts zero-based coordinates to A1 notation.

row: number
col: number
absRow: boolean
absCol: boolean
functionunixMillisToExcelSerialsource ↗
unixMillisToExcelSerial(epochMs: number): number
epochMs: number
functionvariableDecliningBalancesource ↗
variableDecliningBalance(cost: number, salvage: number, life: number, startPeriod: number, endPeriod: number, factor?: number, noSwitch?: boolean): DepreciationResult

Variable declining-balance depreciation, with Excel's straight-line switch.

cost: number
salvage: number
life: number
startPeriod: number
endPeriod: number
factor: number
noSwitch: boolean