LibreOffice 25.2 Help
This category contains the Statistics functions.
The data in the following table serves as the basis for some of the examples in the function descriptions:
| C | D | |
|---|---|---|
| 2 | x value | y value | 
| 3 | -5 | -3 | 
| 4 | -2 | 0 | 
| 5 | -1 | 1 | 
| 6 | 0 | 3 | 
| 7 | 2 | 4 | 
| 8 | 4 | 6 | 
| 9 | 6 | 8 | 
Returns information on address, formatting or contents of a cell.
CELL("InfoType" [; Reference])
Info_type is the character string that specifies the type of information. The character string is always in English. Upper or lower case is optional.
| Info_type | Значење | 
|---|---|
| COL | Returns the number of the referenced column. Cell("COL";D2) returns 4. | 
| ROW | Returns the number of the referenced row. Cell("ROW";D2) returns 2. | 
| SHEET | Returns the number of the referenced sheet. Cell("Sheet";Sheet3.D2) returns 3. | 
| ADDRESS | Returns the absolute address of the referenced cell. CELL("ADDRESS";D2) returns $D$2. CELL("ADDRESS";Sheet3.D2) returns $Sheet3.$D$2. =CELL("ADDRESS";'X:\dr\test.ods'#$Sheet1.D2) returns 'file:///X:/dr/test.ods'#$Sheet1.$D$2. | 
| FILENAME | Returns the file name and the sheet number of the referenced cell. =CELL("FILENAME";D2) returns 'file:///X:/dr/own.ods'#$Sheet1, if the formula in the current document X:\dr\own.ods is located in Sheet1. =CELL("FILENAME";'X:\dr\test.ods'#$Sheet1.D2) returns 'file:///X:/dr/test.ods'#$Sheet1. | 
| COORD | Returns the complete cell address in Lotus™ notation. CELL("COORD"; D2) returns $A:$D$2. CELL("COORD"; Sheet3.D2) returns $C:$D$2. | 
| CONTENTS | Returns the contents of the referenced cell, without any formatting. | 
| TYPE | Returns the type of cell contents. b = blank. empty cell l = label. Text, result of a formula as text v = value. Value, result of a formula as a number | 
| WIDTH | Returns the width of the referenced column. The unit is the number of zeros (0) that fit into the column in the default text and the default size. | 
| PREFIX | Returns the alignment of the referenced cell. ' = align left or left-justified " = align right ^ = centered \ = repeating (currently inactive) | 
| PROTECT | Returns the status of the cell protection for the cell. 1 = cell is protected 0 = cell is not protected | 
| FORMAT | Returns a character string that indicates the number format. , = number with thousands separator F = number without thousands separator C = currency format S = exponential representation, for example, 1.234+E56 P = percentage In the above formats, the number of decimal places after the decimal separator is given as a number. Example: the number format #,##0.0 returns ,1 and the number format 00.000% returns P3 D1 = MMM-D-YY, MM-D-YY and similar formats D2 = DD-MM D3 = MM-YY D4 = DD-MM-YYYY HH:MM:SS D5 = MM-DD D6 = HH:MM:SS AM/PM D7 = HH:MM AM/PM D8 = HH:MM:SS D9 = HH:MM G = All other formats - (Minus) at the end = negative numbers are formatted in color () (brackets) at the end = there is an opening bracket in the format code | 
| COLOR | Returns 1, if negative values have been formatted in color, otherwise 0. | 
| PARENTHESES | Returns 1 if the format code contains an opening bracket (, otherwise 0. | 
Reference (list of options) is the position of the cell to be examined. If Reference is a range, the cell moves to the top left of the range. If Reference is missing, LibreOffice Calc uses the position of the cell in which this formula is located. Microsoft Excel uses the reference of the cell in which the cursor is positioned.
Calculates the current value of a formula at the actual position.
CURRENT()
=1+2+CURRENT()
The example returns 6. The formula is calculated from left to right as: 1 + 2 equals 3, giving the result to date when CURRENT() is encountered; CURRENT() therefore yields 3, which is added to the original 3 to give 6.
=A2+B2+STYLE(IF(CURRENT()>10;"Red";"Default"))
The example returns A2 + B2 (STYLE returns 0 here). If this sum is greater than 10, the style Red is applied to the cell. See the STYLE function for more explanation.
="choo"&CURRENT()
The example returns choochoo.
ORG.OPENOFFICE.CURRENT
Ја прикажува формулата на ќелијата со формула како текстуелна низа.
FORMULA(reference)
Reference is a reference to a cell containing a formula.
An invalid reference or a reference to a cell with no formula results in the error value #N/A.
The cell A8 contains the result of a formula having the value 23. You can now use the Formula function in cell A1 to display the formula in cell A8.
=FORMULA(A8)
Returns specific information about the current working environment. The function receives a single text argument and returns data depending on that parameter.
INFO(type)
The following table lists the values for the text parameter Type and the return values of the INFO function.
| Value for "type" | Повратна вредност | 
|---|---|
| "osversion" | Always "Windows (32-bit) NT 5.01", for compatibility reasons | 
| "system" | The type of the operating system:  | 
| "release" | The product release identifier, for example "300m25(Build:9876)" | 
| "numfile" | Always 1, for compatibility reasons | 
| "recalc" | Current formula recalculation mode, either "Automatic" or "Manual" (localized into LibreOffice language) | 
Other spreadsheet applications may accept localized values for the "type" parameter, but LibreOffice Calc will only accept the English values.
=INFO("release") returns the product release number of the LibreOffice in use.
=INFO(D5) with cell D5 containing a text string system returns the operation system type.
Returns TRUE if the reference to a cell is blank. This function is used to determine if the content of a cell is empty. A cell with a formula inside is not empty.
ISBLANK(value)
Value is the content to be tested.
ISBLANK(D2) returns FALSE as a result.
Returns TRUE if the value refers to any error value except #N/A. You can use this function to control error values in certain cells.
ISERR(value)
Value is any value or expression in which a test is performed to determine whether an error value not equal to #N/A is present.
ISERR(C5) returns FALSE.
ISERR(C5) returns FALSE.
The ISERROR tests if the cells contain general error values. ISERROR recognizes the #N/A error value.
ISERROR(value)
Value is any value where a test is performed to determine whether it is an error value.
ISERROR(C8) returns FALSE.
ISERROR(C8) returns FALSE.
Returns the value if the cell does not contain an error value, or the alternative value if it does.
IFERROR(Value; Alternate_value)
Value is the value or expression to be returned if it is not equal or results in an error.
Alternate_value is the value or expression to be returned if the expression or value of Value is equal or results in an error.
ISERROR(C8) returns FALSE.
ISERROR(C8) returns FALSE.
Returns TRUE if the value is an even integer, or FALSE if the value is odd.
ISEVEN(value)
Value is the value to be checked.
If Value is not an integer any digits after the decimal point are ignored. The sign of Value is also ignored.
If you enter the value 642, TRUE will be returned as the result.
If you enter the value 642, TRUE will be returned as the result.
If you enter the value 642, TRUE will be returned as the result.
If you enter the value 642, TRUE will be returned as the result.
If you enter the value 642, TRUE will be returned as the result.
Tests for even numbers. Returns TRUE (1) if the number returns a whole number when divided by 2.
ISEVEN_ADD(Number)
Number: the number to be tested.
=ISEVEN_ADD(5) returns 0.
ISNONTEXT(D9) returns TRUE.
Returns TRUE if a cell is a formula cell.
ISFORMULA(reference)
Reference indicates the reference to a cell in which a test will be performed to determine if it contains a formula.
ISFORMULA(C4) returns FALSE as a result.
Returns TRUE if the cell contains a logical number format. The function is used in order to check for both TRUE and FALSE values in certain cells.
If an error occurs, the function returns FALSE.
ISLOGICAL(value)
Value is the value to be tested for logical number format.
ISLOGICAL(D5) returns FALSE as a result.
=ISLOGICAL(ISNA(D4)) returns TRUE whatever the contents of cell D4, because ISNA() returns a logical value.
Returns TRUE if a cell contains the #N/A (value not available) error value.
If an error occurs, the function returns FALSE.
ISNA(value)
Value is the value or expression to be tested.
ISNA(D3) returns FALSE as a result.
Returns the value if the cell does not contain the #N/A (value not available) error value, or the alternative value if it does.
IFNA(Value; Alternate_value)
Value is the value or expression to be returned if it is not equal or results in an #N/A error.
Alternate_value is the value or expression to be returned if the expression or value of Value is equal or results in an #N/A error.
=IFNA(D3;D4) returns the value of D3 if D3 does not result in an #N/A error, or D4 if it does.
Tests if the cell contents are text or numbers, and returns FALSE if the contents are text.
If an error occurs, the function returns TRUE.
ISNONTEXT(value)
Value is any value or expression where a test is performed to determine whether it is a text or numbers or a Boolean value.
ISNONTEXT(D2) returns FALSE.
ISNONTEXT(D9) returns TRUE.
Returns TRUE if the value refers to a number.
ISNUMBER(value)
Value is any expression to be tested to determine whether it is a number or text.
ISNUMBER(C3) returns the result TRUE.
ISNUMBER(C2) returns FALSE as a result.
Returns TRUE if the value is odd, or FALSE if the number is even.
ISODD(value)
Value is the value to be checked.
If Value is not an integer any digits after the decimal point are ignored. The sign of Value is also ignored.
If you enter the value 642, FALSE will be returned as the result.
If you enter the value 642, FALSE will be returned as the result.
If you enter the value 642, FALSE will be returned as the result.
If you enter the value 642, FALSE will be returned as the result.
Returns TRUE (1) if the number does not return a whole number when divided by 2.
ISODD_ADD(Number)
Number: the number to be tested.
=ISODD_ADD(5) returns 1.
Tests if the content of one or several cells is a reference. Verifies the type of references in a cell or a range of cells.
ISREF(value)
Value is the value to be tested, to determine whether it is a reference.
ISREF(C5) returns the result TRUE
=ISREF("abcdef") returns always FALSE because a text can never be a reference.
If you enter the value 642, TRUE will be returned as the result.
=ISREF(INDIRECT("A6")) returns TRUE, because INDIRECT is a function that returns a reference.
=ISREF(ADDRESS(1; 1; 2;"Sheet2")) returns FALSE, because ADDRESS is a function that returns a text, although it looks like a reference.
Returns TRUE if the cell contents refer to text.
If an error occurs, the function returns FALSE.
ISTEXT(value)
Value is a value, number, Boolean value, or an error value to be tested.
ISTEXT(D9) returns the result TRUE.
ISTEXT(C3) returns FALSE as a result.
Returns the numeric value of the given parameter. Returns 0 if parameter is text or FALSE.
If an error occurs the function returns the error value.
N(value)
Value is the parameter to be converted into a number. N() returns the numeric value if it can. It returns the logical values TRUE and FALSE as 1 and 0 respectively. It returns text as 0.
N(TRUE) returns 1
N(FALSE) returns 0
N(FALSE) returns 0
N("abc") returns 0
=N(1/0) returns #DIV/0!
Returns the error value #N/A.
NA()
NA() converts the contents of the cell into #N/A.
Returns the type of value, where 1 = number, 2 = text, 4 = Boolean value, 8 = formula, 16 = error value, 64 = array.
TYPE(value)
Value is a specific value for which the data type is determined.
TYPE(C2) returns 2 as a result.
TYPE(D9) returns 1 as a result.