Provide a hint to the UI to format the return results.
The number format to apply to the results.
Returns a date from an OADate value. This is used for date calculations.
A serialized date as a number.
Returns the address of the current sheet.
Optional
coords: Readonly<IRange.FixableCoords | IRange.FixableCellCoords>The coordinates to get the address for. If not provided the current position is used.
Optional
r1c1: booleanIf true
, the address will be in R1C1 format. Default is false
(A1 format).
Returns a formula string or null if no formula exists.
The row where the formula is located.
The column where the formula is located.
The formula string at the specified row and column, or null
if no formula exists.
Returns a formatted value using the number formatting rules.
The format to apply to the value.
The value to format.
A formatted string of the value.
Return the current location in the sheet.
Used for functions that return RangeReferences such as INDIRECT and OFFSET and SUMIF.
An IReferenceRange representing the range.
For introspecting the current runtime.
Returns the number of sheets in the workbook.
Returns a formula string or null if no formula exists.
Optional
sheetName: stringThe name of the sheet. If not provided the current sheet is used.
-1 if the sheet does not exist.
Returns a spill reference at a location if it exists.
The row where the spill starts.
The column where the spill starts.
An IReferenceRange if a spill exists at the location, otherwise null
.
Retrieves a value from the sheet.
The row where the value is located.
The column where the value is located.
The value at the specified row and column, or null
if no value exists.
Returns true
if the value is a valid date.
Any value to check.
Parsed text as a date and time.
The text to parse as a date and time.
Optional
requireDate: booleanIf true
, the text must contain a date component.
The OADate value or null if the text could not be parsed.
Returns an OADate value from a date. This is used for date calculations.
A date as a javascript object.
Provides the context for formula evaluation functions.