Skip to main content

Built-in Functions: Information

  • 9 minutes to read

The ExpressSpreadSheet function repository automatically registers all function signatures listed in the both tables below. Each signature has a corresponding function in Microsoft Excel® under the “Information“ category. These functions are designed to return the status of a cell or its content, that is, to check if a value or cell reference meets a specific criteria, such as “the parameter value is even” or “the parameter value contains text”, etc.

All function signatures marked as “Implemented”, are ready for use in formula expressions. The ExpressSpreadSheet formula engine uses “unimplemented” function signatures only to ensure compatibility with Microsoft Excel® spreadsheet documents that can contain the corresponding functions. You can add implementations to such “empty” signatures and override existing implementations as the “How to Create Custom Functions“ topic describes.

The first table lists signatures of those Information functions that accept only a single mandatory parameter that can be either a value or cell reference, and return a Boolean result.

No.

Function

Implemented

XLS Token

Syntax

Description

1.

ISBLANK

Yes

129

=ISBLANK(Parameter)

Returns TRUE if the Parameter is a reference to an empty cell; otherwise – FALSE.

To localize the ISBLANK function’s name and short description, use the sfnIsBlank and sfnIsBlankDescription resource strings.

2.

ISERR

Yes

126

=ISERR(Parameter)

Returns TRUE if the Parameter is any error except #N/A; otherwise – FALSE.

To localize the ISERR function’s name and short description, use the sfnIsErr and sfnIsErrDescription resource strings.

3.

ISEVEN

Yes

255

=ISEVEN(Parameter)

Returns TRUE if the Parameter value is even; otherwise – FALSE.

To localize the ISEVEN function’s name and short description, use the sfnIsEven and sfnIsEvenDescription resource strings.

4.

ISERROR

Yes

3

=ISERROR(Parameter)

Returns TRUE if the Parameter refers to an expression that evaluates to any error value; otherwise – FALSE.

To localize the ISERROR function’s name and short description, use the sfnIsError and sfnIsErrorDescription resource strings.

5.

ISFORMULA

No

255

=ISFORMULA(Parameter)

Returns TRUE if the Parameter value is a formula expression text or a reference (or a defined name) to a cell with a parsed formula expression; otherwise – FALSE.

The ISFORMULA function returns the #VALUE! error code if the Parameter value has an incorrect data type.

To localize the ISFORMULA function’s name and short description, use the sfnIsFormula and sfnIsFormulaDescription resource strings.

6.

ISLOGICAL

Yes

198

=ISLOGICAL(Parameter)

Returns TRUE if the Parameter is a Boolean value; otherwise – FALSE.

To localize the ISLOGICAL function’s name and short description, use the sfnIsLogical and sfnIsLogicalDescription resource strings.

7.

ISNA

Yes

2

=ISNA(Parameter)

Returns TRUE if the Parameter value is the #N/A error code; otherwise – FALSE.

To localize the ISNA function’s name and short description, use the sfnIsNA and sfnIsNADescription resource strings.

8.

ISNONTEXT

Yes

190

=ISNONTEXT(Parameter)

Returns TRUE if the Parameter value is not a text string; otherwise – FALSE.

To localize the ISNONTEXT function’s name and short description, use the sfnIsNonText and sfnIsNonTextDescription resource strings.

9.

ISNUMBER

Yes

128

=ISNUMBER(Parameter)

Returns TRUE if the Parameter is a numeric value; otherwise – FALSE.

To localize the ISNUMBER function’s name and short description, use the sfnIsNumber and sfnIsNumberDescription resource strings.

10.

ISTEXT

Yes

127

=ISTEXT(Parameter)

Returns TRUE if the Parameter value is a text string; otherwise – FALSE.

To localize the ISTEXT function’s name and short description, use the sfnIsText and sfnIsTextDescription resource strings.

11.

ISODD

Yes

255

=ISODD(Parameter)

Returns TRUE if the Parameter value is odd; otherwise – FALSE.

To localize the ISODD function’s name and short description, use the sfnIsOdd and sfnIsOddDescription resource strings.

12.

ISREF

Yes

105

=ISREF(Parameter)

Returns TRUE if the Parameter value is a reference to a cell or cell range; otherwise – FALSE.

To localize the ISREF function’s name and short description, use the sfnIsRef and sfnIsRefDescription resource strings.

The next table lists all remaining Information function signatures. The Syntax column lists each optional function parameter in square bracket.

No.

Function

Implemented

XLS Token

Parameters

Syntax

Description

13.

CELL

No

125

TextRequest is the only mandatory parameter that accepts a single keyword (in quotation marks) from the predefined list.

The optional Reference parameter accepts a reference to the target cell. If you specify a reference to a cell range, the CELL function treats the upper-left cell as a target.

=CELL(TextRequest, [Reference])

Returns information on a cell’s status, depending on the specified text request (a single supported keyword in quotation marks).

The keyword list includes:

  • “address”. Returns the reference to the target cell.

  • “col”. Returns the sequence number of the target cell’s column.

  • “color”. Returns 1 if the target cell is formatted in color for negative values; otherwise – 0.

  • “contents”. Returns the target cell’s value.

  • “filename” Returns the path to the external file included into the specified reference. Note that the current implementation of the ExpressSpreadSheet formula engine provides no support for external references.

  • “format”. Returns the target cell’s code that corresponds to the active value format pattern.

  • “parentheses”. Returns 1 if the target cell’s formatting pattern includes parentheses for positive or all values; otherwise – 0.

  • “prefix”. Returns a character that corresponds to the target cell’s “label prefix”.

  • “protect”. Returns 1 if the target cell is locked (default state); otherwise – 0.

  • “row”. Returns the sequence number of the target cell’s row.

  • “type”. Returns a character that corresponds to the target cell’s content type. The CELL function returns “b” [blank] for a blank cell, “l” [label] for a cell with a string value, and “v” [value] in all other cases.

  • “width”. Returns the cell’s rounded width, in relative measurement units. The unit equals a character’s width at the default font settings.

The CELL function returns the #N/A error code if it accepts a keyword that is not on the supported list.

To localize the CELL function’s name and short description, use the sfnCell and sfnCellDescription resource strings.

14

ERROR.TYPE

261

ErrorCode is the only mandatory parameter.

=ERROR.TYPE(ErrorCode)

Returns the sequence number of the specified error code.

The ERROR.TYPE function returns the #N/A error code if the specified value is not a supported error code. Note that the current implementation of the ExpressSpreadSheet formula engine does not support the #GETTING_DATA error code whose sequence number is 8 in Microsoft Excel®.

To localize the ERROR.TYPE function’s name and short description, use the sfnError_Type and sfnError_TypeDescription resource strings.

15

INFO

244

TextRequest is the only mandatory parameter that accepts a keyword from the predefined list.

=INFO(TextRequest)

Returns information on the current operating environment, depending on the specified text request (a single supported keyword in quotation marks).

The keyword list includes:

  • “directory”. Returns the path to the loaded spreadsheet document’s repository.

  • “numfile”. Returns the number of active worksheets in loaded spreadsheet documents. Note that a single Spreadsheet control can work with only one document at a time.

  • “origin”. Returns the absolute reference to the cell that is currently at the top left corner of the visible worksheet area. The result reference has the R1C1 format if it is enabled.

  • “osversion”. Returns the operating system’s version number as a text string.

  • “recalc”. Identifies if the automatic recalculation mode is enabled (that is, the INFO function returns “Automatic” or “Manual”).

  • “release”. Returns the spreadsheet application’s version.

  • “system”. Returns the operating system type.

The INFO function returns the #N/A error code if it accepts a keyword that is not on the supported list.

To localize the INFO function’s name and short description, use the sfnInfo and sfnInfoDescription resource strings.

16.

N

Yes

131

Value is the only mandatory parameter; it can be any value that the ExpressSpreadSheet formula engine supports.

=N(Value)

Explicitly converts the specified value into a number.

The N function converts:

  • A valid date/time value into the corresponding serial number (for instance, January 1, 2008 becomes 39448).

  • TRUE into 1.

  • FALSE into 0.

  • A text string into 0.

In addition, the function returns the specified error codes and numeric values as is.

To localize the N function’s name and short description, use the sfnN and sfnNDescription resource strings.

17.

NA

Yes

10

The NA function accepts no parameters.

=NA()

Returns the #N/A error code.

Alternatively, you can type #N/A into a cell without quotation marks. The NA function is designed for use in spreadsheet applications that do not support this approach.

To localize the NA function’s name and short description, use the sfnNA and sfnNADescription resource strings.

18.

SHEET

No

255

The only optional Value parameter accepts a worksheet’s name or cell reference. The SHEET function returns the serial number of the worksheet at which the formula expression is located if you omit the parameter.

=SHEET([Value])

Returns the worksheet number by the specified name or cell reference.

The SHEET function returns:

  • The #REF error code if the parameter value is an invalid cell reference.

  • The #N/A error code if the specified name does not match any worksheet name in the loaded spreadsheet document.

To localize the SHEET function’s name and short description, use the sfnSheet and sfnSheetDescription resource strings.

19.

SHEETS

No

255

The only optional Reference parameter accepts a reference. The SHEETS function returns the total number of worksheets in the loaded spreadsheet document if you omit the parameter.

=SHEETS([Reference])

Returns the number of referred worksheets.

This function is designed to identify the number of referred sheets in a 3D reference. Note that the current implementation of the ExpressSpreadSheet formula engine does not support 3D references.

The SHEETS function returns the #REF! error code if it accepts an invalid cell reference.

To localize the SHEETS function’s name and short description, use the sfnSheets and sfnSheetsDescription resource strings.

20.

TYPE

No

86

The Parameter accepts any value that the ExpressSpreadSheet formula engine supports.

=TYPE(Parameter)

Returns the numeric code of the specified value’s data type.

This function can be useful to identify the type of a value returned by another function or expression. The TYPE function returns:

  • 1 if the Parameter is a numeric value;

  • 2 if the Parameter is a text string;

  • 4 if the Parameter is a Boolean value;

  • 16 if the Parameter is an error code;

  • 64 if the Parameter is an array.

To localize the TYPE function’s name and short description, use the sfnType and sfnTypeDescription resource strings.