Funciones de fueya de cálculu

Esta seición contién descripciones de les funciones pa fueyes de cálculu xuntu con un exemplu.

P'aportar a esta orde...

Inxertar - Función - CategoríaFueya de cálculu


[text/scalc/01/func_error_type.xhp#error_type_head not found].

Returns a number representing a specific Error type, or the error value #N/A, if there is no error.

STYLE

Aplica un estilu a la caxella que contién la fórmula.

BUSCAR

Returns the contents of a cell either from a one-row or one-column range. Optionally, the assigned value (of the same index) is returned in a different column and row. As opposed to VLOOKUP and HLOOKUP, search and result vector may be at different positions; they do not have to be adjacent. Additionally, the search vector for the LOOKUP must be sorted ascending, otherwise the search will not return any usable results.

note

Si LOOKUP nun pue atopar el criteriu de busca, utiliza'l valor más grande del vector de busca que seya menor o igual que criteriu de busca.


The search supports wildcards or regular expressions. With regular expressions enabled, you can enter "all.*", for example to find the first location of "all" followed by any characters. If you want to search for a text that is also a regular expression, you must either precede every regular expression metacharacter or operator with a "\" character, or enclose the text into \Q...\E. You can switch the automatic evaluation of wildcards or regular expression on and off in - LibreOffice Calc - Calculate.

warning

When using functions where one or more arguments are search criteria strings that represents a regular expression, the first attempt is to convert the string criteria to numbers. For example, ".0" will convert to 0.0 and so on. If successful, the match will not be a regular expression match but a numeric match. However, when switching to a locale where the decimal separator is not the dot makes the regular expression conversion work. To force the evaluation of the regular expression instead of a numeric expression, use some expression that can not be misread as numeric, such as ".[0]" or ".\0" or "(?i).0".


Sintaxis

LOOKUP(Lookup; SearchVector [; ResultVector])

Lookup is the value of any type to be looked for; entered either directly or as a reference.

VectordeBúsqueda ye l'área d'una columna o una filera que se va a guetar.

VectordeResultado ye otra área d'una columna o una filera dende la que se toma la resultancia de la función. La resultancia ye la caxella del vector de resultancia col mesmu índiz que la instancia que s'atopó col vector de busca.

Manexu de caxelles baleres

Exemplu

=BUSCAR(A1;D1:D100;F1:F100) busca la caxella correspondiente nel área D1:D100 del númberu especificáu n'A1. Pa la instancia atopada, determinar l'índiz, por exemplu, la caxella 12 d'esta área. De siguío, el conteníu de la caxella 12 devuélvese como'l valor de la función (nel vector de resultancia).

BUSCARH

Busca un valor y una referencia a les caxelles asitiaes per debaxo del área escoyida. Esta función comprueba si la primer filera d'una matriz contién un ciertu valor. La función devuelve'l valor asitiáu nuna filera de la matriz, indicada en Índiz, na mesma columna.

The search supports wildcards or regular expressions. With regular expressions enabled, you can enter "all.*", for example to find the first location of "all" followed by any characters. If you want to search for a text that is also a regular expression, you must either precede every regular expression metacharacter or operator with a "\" character, or enclose the text into \Q...\E. You can switch the automatic evaluation of wildcards or regular expression on and off in - LibreOffice Calc - Calculate.

warning

When using functions where one or more arguments are search criteria strings that represents a regular expression, the first attempt is to convert the string criteria to numbers. For example, ".0" will convert to 0.0 and so on. If successful, the match will not be a regular expression match but a numeric match. However, when switching to a locale where the decimal separator is not the dot makes the regular expression conversion work. To force the evaluation of the regular expression instead of a numeric expression, use some expression that can not be misread as numeric, such as ".[0]" or ".\0" or "(?i).0".


Sintaxis

HLOOKUP(Lookup; Array; Index [; SortedRangeLookup])

For an explanation on the parameters, see: VLOOKUP (columns and rows are exchanged)

Manexu de caxelles baleres

Exemplu

Suppose we have built a small database table occupying the cell range A1:DO4 and containing basic information about 118 chemical elements. The first column contains the row headings “Element”, “Symbol”, “Atomic Number”, and “Relative Atomic Mass”. Subsequent columns contain the relevant information for each of the elements, ordered left to right by atomic number. For example, cells B1:B4 contain “Hydrogen”, “H”, “1” and “1.008”, while cells DO1:DO4 contain “Oganesson”, “Og”, “118”, and “294”.

A

B

C

D

...

DO

1

Elementu

Hidróxenu

Heliu

Litiu

...

Oganesón

2

Símbolu

H

He

Li

...

Og

3

Númberu atómicu

1

2

3

...

118

4

Masa atómica relativa

1.008

4.0026

6.94

...

294


=HLOOKUP("Lead"; $A$1:$DO$4; 2; 0) returns “Pb”, the symbol for lead.

=HLOOKUP("Gold"; $A$1:$DO$4; 3; 0) returns 79, the atomic number for gold.

=HLOOKUP("Carbon"; $A$1:$DO$4; 4; 0) returns 12.011, the relative atomic mass of carbon.

BUSCARV

Vertical search with reference to adjacent cells to the right. This function checks if a specific value is contained in the first column of an array. The function then returns the value in the same row of the column named by Index. If the Sorted parameter is omitted or set to TRUE or one, it is assumed that the data is sorted in ascending order. In this case, if the exact Lookup is not found, the last value that is smaller than the criterion will be returned. If Sorted is set to FALSE or zero, an exact match must be found, otherwise the error Error: Value Not Available will be the result. Thus with a value of zero the data does not need to be sorted in ascending order.

The search supports wildcards or regular expressions. With regular expressions enabled, you can enter "all.*", for example to find the first location of "all" followed by any characters. If you want to search for a text that is also a regular expression, you must either precede every regular expression metacharacter or operator with a "\" character, or enclose the text into \Q...\E. You can switch the automatic evaluation of wildcards or regular expression on and off in - LibreOffice Calc - Calculate.

warning

When using functions where one or more arguments are search criteria strings that represents a regular expression, the first attempt is to convert the string criteria to numbers. For example, ".0" will convert to 0.0 and so on. If successful, the match will not be a regular expression match but a numeric match. However, when switching to a locale where the decimal separator is not the dot makes the regular expression conversion work. To force the evaluation of the regular expression instead of a numeric expression, use some expression that can not be misread as numeric, such as ".[0]" or ".\0" or "(?i).0".


Sintaxis

=VLOOKUP(Lookup; Array; Index [; SortedRangeLookup])

Lookup is the value of any type looked for in the first column of the array.

Array is the reference, which is to comprise at least as many columns as the number passed in Index argument.

Índiz ye'l númberu de la columna na matriz que contién el valor que se va a devolver. La primer columna tien el númberu 1.

SortedRangeLookup is an optional parameter that indicates whether the first column in the array contains range boundaries instead of plain values. In this mode, the lookup returns the value in the row with first column having value equal to or less than Lookup. E.g., it could contain dates when some tax value had been changed, and so the values represent starting dates of a period when a specific tax value was effective. Thus, searching for a date that is absent in the first array column, but falls between some existing boundary dates, would give the lower of them, allowing to find out the data being effective to the searched date. Enter the Boolean value FALSE or zero if the first column is not a range boundary list. When this parameter is TRUE or not given, the first column in the array must be sorted in ascending order. Sorted columns can be searched much faster and the function always returns a value, even if the search value was not matched exactly, if it is greater than the lowest value of the sorted list. In unsorted lists, the search value must be matched exactly. Otherwise the function will return #N/A with message: Error: Value Not Available.

Manexu de caxelles baleres

Exemplu

You want to enter the number of a dish on the menu in cell A1, and the name of the dish is to appear as text in the neighboring cell (B1) immediately. The Number to Name assignment is contained in the D1:E100 array. D1 contains 100, E1 contains the name Vegetable Soup, and so forth, for 100 menu items. The numbers in column D are sorted in ascending order; thus, the optional Sorted parameter is not necessary.

Introduza la fórmula siguiente en B1:

=BUSCARV(A1;D1:Y100;2)

Al introducir un númberu n'A1, en B1 apaez rápido'l testu conteníu na segunda columna de la referencia D1:Y100. Si introduz un númberu inesistente, el testu qu'apaez ye'l correspondiente al númberu inferior más cercanu. Con cuenta de qu'esto nun asoceda, hai qu'introducir un últimu parámetru FALSU na fórmula de forma que en casu d'introducir un númberu inesistente la función produza como resultáu un mensaxe de fallu.

COINCIDIR

Devuelve la posición relativa d'un elementu d'una matriz que coincide col valor especificáu. La función devuelve, en forma de númberu, la posición del valor atopáu en guetar_matriz.

Sintaxis

MATCH(Search; LookupArray [; Type])

Search is the value which is to be searched for in the single-row or single-column array.

GuetarMatriz ye la referencia buscada. Una matriz de busca pue ser una sola filera o columna, o parte d'una sola filera o columna.

Tipu pue tomar los valores 1, 0 o -1. Si Tipu = 1 o si falta esti parámetru opcional, asumir que la primer columna de la matriz de busca ordenar n'orde ascendente. Si Tipu = -1, asumir que la columna ordenar n'orde descendente. Esto correspuende cola mesma función en Microsoft Excel.

If Type = 0, only exact matches are found. If the search criterion is found more than once, the function returns the index of the first matching value. Only if Type = 0 can you search for regular expressions (if enabled in calculation options) or wildcards (if enabled in calculation options).

If Type = 1 or the third parameter is missing, the index of the last value that is smaller or equal to the search criterion is returned. For Type = -1, the index of the last value that is larger or equal is returned.

The search supports wildcards or regular expressions. With regular expressions enabled, you can enter "all.*", for example to find the first location of "all" followed by any characters. If you want to search for a text that is also a regular expression, you must either precede every regular expression metacharacter or operator with a "\" character, or enclose the text into \Q...\E. You can switch the automatic evaluation of wildcards or regular expression on and off in - LibreOffice Calc - Calculate.

warning

When using functions where one or more arguments are search criteria strings that represents a regular expression, the first attempt is to convert the string criteria to numbers. For example, ".0" will convert to 0.0 and so on. If successful, the match will not be a regular expression match but a numeric match. However, when switching to a locale where the decimal separator is not the dot makes the regular expression conversion work. To force the evaluation of the regular expression instead of a numeric expression, use some expression that can not be misread as numeric, such as ".[0]" or ".\0" or "(?i).0".


Exemplu

=COINCIDIR(200;D1:D100) busca l'área D1:D100, que s'ordenar pola columna D, pal valor 200. Asina algámase esti valor, el devuelve'l númberu de la filera en que s'atopó. Si atopa un valor mayor mientres la busca na columna, devuélvese'l númberu de la filera anterior.

COLUMNA

Returns the column number of a cell reference. If the reference is a cell the column number of the cell is returned; if the parameter is a cell area, the corresponding column numbers are returned in a single-row array if the formula is entered as an array formula. If the COLUMN function with an area reference parameter is not used for an array formula, only the column number of the first cell within the area is determined.

Sintaxis

COLUMN([Reference])

Referencia ye la referencia a una caxella o una área de caxelles que'l so númberu de columnes va buscase.

Si nun indica denguna referencia, alcuentrase'l númberu de columna de la caxella na que s'introduz la fórmula. LibreOffice Calc establez automáticamente la referencia a la caxella actual.

Exemplu

=COLUMNA(A1) ye igual a 1. La columna A ye la primera de la tabla.

=COLUMNA(C3:Y3) ye igual a 3. La columna C ye la tercera de la tabla.

=COLUMNA(D3:G10) devuelve 4 porque la columna D ye la cuarta columna de la tabla y la función COLUMNA nun s'utiliza como una fórmula de matriz. Nesti casu, el primer valor de la matriz utilízase siempres como la resultancia.

{=COLUMNA(B2:B7)} y =COLUMNA(B2:B7) devuelven 2 porque la referencia namái contién la columna B como la primer columna de la tabla. Por cuenta de que les árees d'una sola columna namái tienen un númberu de columna, nun hai nenguna estrema si la fórmula utilízase como fórmula de matriz o non.

=COLUMNA() devuelve 3 si la fórmula especificar na columna C.

{=COLUMNA(Coneyu)} devuelve la matriz d'una filera (3, 4) si "Coneyu" ye l'área con nome (C1:D3).

COLUMNES

Devuelve'l númberu de columnes na referencia especificada.

Sintaxis

COLUMNES(Matriz)

Matriz ye la referencia a un rangu de caxelles que'l so númberu total de columnes va buscase. L'argumentu tamién pue ser una única caxella.

Exemplu

=COLUMNES(B5) devuelve 1 porque una caxella contién solamente una columna.

=COLUMNES(A1:C5) ye igual a 3. La referencia inclúi tres columnes.

=COLUMNES(Coneyu) devuelve 2 si Coneyu ye l'área con nome (C1:D3).

DDE

Devuelve la resultancia d'un enllaz basáu en DDE. Si'l conteníu del área o seición enllazada modifícase, el valor devueltu tamién va camudar. Pa ver los enllaces anovaos tien de volvese a cargar la fueya de cálculu o escoyer Editar - Enllaces. Nun se dexa definir enllaces ente plataformes distintes, por exemplu enllazar dende una instalación de LibreOffice nuna máquina Windows un documentu creáu nuna máquina Linux.

Sintaxis

DDE("Server"; "File"; "Range" [; Mode])

Server is the name of a server application. LibreOffice applications have the server name "soffice".

Ficheru ye'l nome completu de ficheru, incluyida la especificación de la ruta.

Rangu ye l'área que contién los datos que se van a evaluar.

Mou ye un parámetru opcional que controla'l métodu pol que'l sirvidor DDE convierte los sos datos en númberos.

Mou

Efeutu

0 ó nengunu

Formatu numbéricu procedente del estilu de caxella "predetermináu"

1

Los datos interprétense siempres col formatu predetermináu pa inglés d'EE.XX.

2

Los datos acéptense como testu; nun se tresformen en númberos


Exemplu

=DDE("soffice";"c:\office\document\data1.ods";"sheet1.A1") reads the contents of cell A1 in sheet1 of the LibreOffice Calc spreadsheet data1.ods.

=DDE("soffice";"c:\office\document\motto.odt";"Today's motto") returns a motto in the cell containing this formula. First, you must enter a line in the motto.odt document containing the motto text and define it as the first line of a section named Today's Motto (in LibreOffice Writer under Insert - Section). If the motto is modified (and saved) in the LibreOffice Writer document, the motto is updated in all LibreOffice Calc cells in which this DDE link is defined.

DESREF

Devuelve'l valor d'una caxella movida una determinada cantidá de fileres y columnes d'un puntu de referencia concretu.

This function is always recalculated whenever a recalculation occurs.

Sintaxis

OFFSET(Reference; Rows; Columns [; Height [; Width]])

Referencia ye la referencia dende la que la función busca una nueva referencia.

Files ye'l númberu de fileres en que se corrixó la referencia escontra riba (valor negativu) o escontra baxo.

Files ye'l númberu de fileres en que se corrixó la referencia escontra riba (valor negativu) o escontra baxo.

Alto (opcional) ye l'altu vertical d'una área qu'empieza na nueva posición de referencia.

Anchu (opcional) ye l'anchu horizontal d'una área qu'empieza na nueva posición de referencia.

Los argumentos Files y Columnes nun tienen de resultar nuna filera o columna inicial que dea cero o un valor negativu.

Argumentos Files y Columnes nun tien de llevar a cero o un empiezu negativu de filera o columna.

In the LibreOffice Calc functions, parameters marked as "optional" can be left out only when no parameter follows. For example, in a function with four parameters, where the last two parameters are marked as "optional", you can leave out parameter 4 or parameters 3 and 4, but you cannot leave out parameter 3 alone.

Exemplu

=DESREF(A1;2;2) devuelve'l valor na caxella C3 (A1 movida por dos fileres y dos columnes escontra baxo). Si C3 contién el valor 100, esta función devuelve'l valor 100.

=DESREF(B2:C3;1;1) devuelve una referencia a B2:C3 movida embaxo 1 filera y una columna a la derecha (C3:D4).

=DESREF(B2:C3;-1;-1) devuelve una referencia a B2:C3 movida enriba 1 filera y una columna a la izquierda (A1:B2).

=DESREF(B2:C3;0;0;3;4) devuelve una referencia a B2:C3 con cambéu de tamañu a 3 files y 4 columnes (B2:Y4).

=DESREF(B2:C3;1;0;3;4) devuelve una referencia a B2:C3 movida embaxo una filera y con cambéu de tamañu a 3 files y 4 columnes (B2:Y4).

=SUMA(DESREF(A1;2;2;5;6)) determina'l total del área qu'empieza na caxella C3 y tien un altor de 5 files y un anchu de 6 columnes (área=C3:H7).

note

Si s'especifiquen Anchor o Altor, la función ESPLAZAMIENTU devuelve una referencia a un intervalu de celdes. Si Referencia ye una referencia a una única celda y s'omiten Anchor y Altor, devuélvese una referencia a una única celda.


ESCOYER

Utiliza un índiz pa producir un valor a partir d'una llista formada por hasta 30 valores.

Sintaxis

CHOOSE(Index; Value 1 [; Value 2 [; ... [; Value 30]]])

Índiz ye una referencia o númberu ente 1 y 30 qu'indica'l valor que se va a tomar de la llista.

Value 1, Value 2, ..., Value 30 is the list of values entered as a reference to a cell or as individual values.

Exemplu

=ESCOYER(A1;B1;B2;B3;"Güei";"Ayeri";"Mañana"), por exemplu, devuelve'l conteníu de la caxella B2 pa A1 = 2; pa A1 = 4, la función devuelve'l testu "Güei".

FILES

Devuelve'l númberu de fileres d'una referencia o matriz.

Sintaxis

FILES(Matriz)

Matriz ye la referencia o área con nome que'l so númberu total de fileres va determinase.

Exemplu

=Files(B5) devuelve 1 porque una caxella contién solamente una filera.

=FILES(A10:B12) devuelve 3.

=FILES(Coneyu) devuelve 3 si "Coneyu" ye l'área con nome (C1:D3).

FUEYES

Determina'l númberu de fueyes d'una referencia. Si nun especifica nengún parámetru, devuelve'l númberu de fueyes del documentu actual.

Sintaxis

SHEETS([Reference])

Referencia ye la referencia a una fueya o área. Esti parámetru ye opcional.

Exemplu

=FUEYES(Fueya1.A1:Fueya3.G12) devuelve 3 si Fueya1, Fueya2 y Fueya3 esisten na secuencia indicada.

GETPIVOTDATA

La función GETPIVOTDATA torna un valor de resultaos d'una tabla de Tabla dinámica. El valor ye señaláu usando'l campu y el nome de los elementos, d'esti mou permanez válidu si l'esplegue de la tabla del Tabla dinámica camuda.

Sintaxis

Pue usase dos distintos definiciones na sintaxis:

GETPIVOTDATA(TargetField; pivot table[; Field 1; Item 1][; ... [Field 126; Item 126]])

or

GETPIVOTDATA(Tabla dinámica; Restricciones)

Asumir la segunda sitaxis son esactamente dos parametros que se dan, de la cual el primera parametro d'una caxella o rangu de caxella referenciada. La primer sintaxis asumir que estan n'otros casos. L'asistente pa funciones amuesa la primer sintaxis.

Primer sintaxis

CampuDestín ye una cadena qu'escueye unu de los campos de datos de la tabla dinámica. La cadena pue ser el nome de la columna d'orixe o'l nome del campu de datos como s'amuesa na tabla (como "Suma - Ventes").

Tabla dinámica ye una referencia a una caxella o rangu de caxelles que s'asitia na tabla dinámica o que contién una tabla dinámica. Si'l rangu de caxelles contién delles Tables dinámiques, va utilizase la última tabla que se creó.

Si nun se dieron pares Campu n / Elementu n, devuelvese'l gran total. D'otra miente, cada par amiesta una torga que tien de satisfacer el resultáu.Campu n ye'l nome d'un campu de la Tabla dinámica.Elementu n ye'l nome d'un elementu d'esi campu.

Si la Tabla dinámica contién solo un valor cenciellu como resultáu que satisfaga toles llimitaciones, o un subtotal que resuma tolos valores comparables, esa resultancia ye devueltu. Si nun hai resultancies comparables, o dellos valores ensin un subtotal pa esos, y un fallu ye devueltu. Estes condiciones aplica con resultancies que son incluyíos dientro de la Tabla dinámica.

Si la fonte de datos contién entraes que tán anubríes pola configuracion de Tables dinámiques, estes inórense. L'orde de los campos pares d'elementos nun son significantes. Los nomes de los campos y elementos que nun son sensibles a la capitalización.

If no constraint for a filter is given, the field's selected value is implicitly used. If a constraint for a filter is given, it must match the field's selected value, or an error is returned. Filters are the fields at the top left of a pivot table, populated using the "Filters" area of the pivot table layout dialog. From each filter, an item (value) can be selected, which means only that item is included in the calculation.

Los valores de subtotales de la tabla dinámica de datos namái s'usen si usen la función "auto" (sacante cuando s'especifique na torga, ver Segunda sintaxis más abaxo).

Second Syntax

Tabla dinámica tien el mesmu significáu que na primer sintaxis.

Restricciones ye una llista separada per espacios. Les entraes puen ponese ente comines (comines simples). Tola cadena tien de ponese ente comines (comines dobles), nun siendo que faiga referencia a la cadena dende otra caxella.

Una de les entraes pue ser el nome del campu de datos. El nome del campu de datos pue dexase si la tabla dinámica de datos contién solamente un campu de datos, de lo contrario tien de tar presente.

Caúna de les otres entraes indica una torga de la forma Campu[Elementu] (colos caráuteres lliterales [ y ]), o solamente Elementu si'l nome del elementu ye únicu dientro de tolos campos utilizaos na tabla dinámica de datos.

Un nome de función pue amestar na forma Campu[Elementu;Función], que van faer que'l contraste por que coincida colos valores subtotales que solamente usa esa función. Los posibles nomes de les funciones son Suma, Cuntar, Promediu, Max, Min, Productu, Cuntar(Namái númberos), DesvEst(Amuesa), DesvEst(Población), Var(Amuesa), y VarP(Población), estrema ente mayúscules y minúscules.

HIPERVÍNCULO

Al faer clic nuna caxella que contién la función HIPERVÍNCULO, ábrese'l hiperenllaz.

If you use the optional CellValue parameter, the formula locates the URL, and then displays the text or number.

tip

P'abrir col tecláu una caxella con hiperenllaz, escueya la caxella, calque F2 p'aportar al mou d'edición, mueva'l cursor delantre del hiperenllaz, calque Mayús + F10 y, de siguío, escueya Abrir hiperenllaz.


Sintaxis

HYPERLINK("URL" [; CellValue])

URL specifies the link target. The optional CellValue parameter is the text or a number that is displayed in the cell and will be returned as the result. If the CellValue parameter is not specified, the URL is displayed in the cell text and will be returned as the result.

Devuélvese'l númberu 0 pa les caxelles y los elementos de matriz baleros.

Exemplu

=HYPERLINK("http://www.example.org") displays the text "http://www.example.org" in the cell and executes the hyperlink http://www.example.org when clicked.

=HYPERLINK("http://www.example.org";"Click here") displays the text "Click here" in the cell and executes the hyperlink http://www.example.org when clicked.

=HYPERLINK("http://www.example.org";12345) displays the number 12345 and executes the hyperlink http://www.example.org when clicked.

=HYPERLINK($B4) where cell B4 contains http://www.example.org. The function adds http://www.example.org to the URL of the hyperlink cell and returns the same text which is used as formula result.

=HYPERLINK("http://www.";"Click ") & "example.org" displays the text Click example.org in the cell and executes the hyperlink http://www.example.org when clicked.

=HYPERLINK("#Sheet1.A1";"Go to top") displays the text Go to top and jumps to cell Sheet1.A1 in this document.

=HYPERLINK("file:///C:/writer.odt#Specification";"Go to Writer bookmark") displays the text "Go to Writer bookmark", loads the specified text document and jumps to bookmark "Specification".

=HYPERLINK("file:///C:/Documents/";"Open Documents folder") displays the text "Open Documents folder" and shows the folder contents using the standard file manager in your operating system.

INDIRECTU

Devuelve la referencia especificada por una cadena de testu. Esta función tamién pue utilizase pa calcular l'área de la cadena correspondiente.

This function is always recalculated whenever a recalculation occurs.

Pa la interoperabilidad les funciones de DIRECCION ya INDIRECTU soporten un parámetru opcional pa especificar ente la notación de la direición R1C1 en cuenta de la notación avezada A1 que tendría de ser usada .

En DIRECCION, el parámetru ye inxertáu como cuartu parámetru, camudando'l parámetru nome de la fueya a la quinta posición.

N'INDIRECTU, el parámetru amiéstase como'l segundu parámetru .

En dambes funciones, si inxerta l'argumentu col valor 0, entós lse usa la rotación R1C1. Si nun se da l'argumentu o tien otru valor que nun seya'l 0, entós úsase la notación A1.

Nel casu de la notación R1C1, DIRECCION retorna una cadena de direiciones usando la marca de exclamación '!' como'l separador de nomes de la fueya, ya INDIRECTU expera la marca de exclamación como nome de separador de fueya. Dambes funciones entá usen el puntu '.' como separador de nome de fueya cola notación A1.

When opening documents from ODF 1.0/1.1 format, the ADDRESS functions that show a sheet name as the fourth parameter will shift that sheet name to become the fifth parameter. A new fourth parameter with the value 1 will be inserted.

Cuando s'almacena un documentu en formatu ODF 1.0/1.1 , si les funciones de DIRECCION tienen un cuartu parámetru, esi parámetru va desaniciase .

note

Nun guarde la Fueya nel formatu antiguu de ODF 1.0/1.1 si les nueves funciones de DIRECCION col so cuartu parámetru usar con un valor 0 .


note

La función INDIRECTU guardar ensin conversión al formatu ODF 1.0/1.1 Si ta presente'l segundu parámetru, una versión antigua de Calc va retornar un fallu pa esa función .


Sintaxis

INDIRECT(Ref [; A1])

Ref representa una referencia a una caxella o a una área (con formatu de testu) pa la que se devuelve'l conteníu.

A1 (opcional): si definir en 0, utilízase la notación R1C1. Si falta esti parámetru o se define n'otru valor distintu a 0, utilízase la notación A1.

note

If you open an Excel spreadsheet that uses indirect addresses calculated from string functions, the sheet addresses will not be translated automatically. For example, the Excel address in INDIRECT("[filename]sheetname!"&B1) is not converted into the Calc address in INDIRECT("filename#sheetname."&B1).


Exemplu

=INDIRECTA(A1) ye igual a 100 si A1 contién C108 como referencia y la caxella C108 contién un valor de 100.

=SUMA(INDIRECTA("a1:" & DIRECCIÓN(1;3))) suma les caxelles nel área d'A1 hasta la caxella cola direición definida pola filera 1 y columna 3. Esto significa que se suma l'área A1:C1.

ROW

Returns the row number of a cell reference. If the reference is a cell, it returns the row number of the cell. If the reference is a cell range, it returns the corresponding row numbers in a one-column Array if the formula is entered as an array formula. If the ROW function with a range reference is not used in an array formula, only the row number of the first range cell will be returned.

Sintaxis

ROW([Reference])

Referencia ye una caxella, una área o'l nome d'una área.

Si nun indica una referencia, alcontrarase'l númberu de filera de la caxella na que s'introduz la fórmula. LibreOffice Calc establez automáticamente la referencia a la caxella actual.

Exemplu

=FILA(B3) devuelve 3 porque la referencia fai mención a la tercer filera de la tabla.

{=FILA(D5:D8)} devuelve la matriz d'una columna (5, 6, 7, 8) porque la referencia especificada contién les fileres 5 a 8.

=FILA(D5:D8) devuelve 5 porque la función FILA nun s'utiliza como fórmula de matriz y namái se devuelve'l númberu de la primer filera de la referencia.

{=FILA(A1:Y1)} y =FILA(A1:Y1) devuelven 1 porque la referencia namái contién la filera 1 como la primer filera de la tabla. Por cuenta de que les árees d'una sola filera namái tienen un númberu de filera, nun hai nenguna diferencia en si la fórmula utilízase como fórmula de matriz.

=FILA() devuelve 3 si la fórmula especificar na filera 3.

{=FILA(Coneyu)} devuelve la matriz d'una columna (1, 2, 3) si "Coneyu" ye l'área con nome (C1:D3).

SEÑES

Devuelve una direición de caxella (referencia) en forma de testu, según los númberos de filera y columna especificaos. Pue determinase si la direición interprétase como direición absoluta (por exemplu, $A$1), relativa (por exemplu, A1) o mista (A$1 o $A1). Tamién pue especificase el nome de la fueya.

Pa la interoperabilidad les funciones de DIRECCION ya INDIRECTU soporten un parámetru opcional pa especificar ente la notación de la direición R1C1 en cuenta de la notación avezada A1 que tendría de ser usada .

En DIRECCION, el parámetru ye inxertáu como cuartu parámetru, camudando'l parámetru nome de la fueya a la quinta posición.

N'INDIRECTU, el parámetru amiéstase como'l segundu parámetru .

En dambes funciones, si inxerta l'argumentu col valor 0, entós lse usa la rotación R1C1. Si nun se da l'argumentu o tien otru valor que nun seya'l 0, entós úsase la notación A1.

Nel casu de la notación R1C1, DIRECCION retorna una cadena de direiciones usando la marca de exclamación '!' como'l separador de nomes de la fueya, ya INDIRECTU expera la marca de exclamación como nome de separador de fueya. Dambes funciones entá usen el puntu '.' como separador de nome de fueya cola notación A1.

When opening documents from ODF 1.0/1.1 format, the ADDRESS functions that show a sheet name as the fourth parameter will shift that sheet name to become the fifth parameter. A new fourth parameter with the value 1 will be inserted.

Cuando s'almacena un documentu en formatu ODF 1.0/1.1 , si les funciones de DIRECCION tienen un cuartu parámetru, esi parámetru va desaniciase .

note

Nun guarde la Fueya nel formatu antiguu de ODF 1.0/1.1 si les nueves funciones de DIRECCION col so cuartu parámetru usar con un valor 0 .


note

La función INDIRECTU guardar ensin conversión al formatu ODF 1.0/1.1 Si ta presente'l segundu parámetru, una versión antigua de Calc va retornar un fallu pa esa función .


Sintaxis

ADDRESS(Row; Column [; Abs [; A1 [; "Sheet"]]])

Filera representa'l númberu de filera de la referencia de caxella.

Columna representa'l númberu de columna de la referencia de la caxella (el númberu, non la lletra).

Abs determina'l tipu de referencia:

1: absolutu ($A$1)

2: Filera absoluta; Columna relativa (A$1)

3: Filera relativa; Columna absoluta ($A1)

4: Relativa (A1)

A1 (opcional): si definir en 0, utilízase la notación R1C1. Si falta esti parámetru o se define n'otru valor distintu a 0, utilízase la notación A1.

Fueya representa'l nome de la fueya. Tien De dir ente comines dobles.

Exemplu:

=DIRECCIÓN(1;1;2;;"Fueya2") devuelvi lo siguiente: Fueya2.A$1

If the formula above is in cell B2 of current sheet, and the cell A1 in sheet 2 contains the value -6, you can refer indirectly to the referenced cell using a function in B2 by entering =ABS(INDIRECT(B2)). The result is the absolute value of the cell reference specified in B2, which in this case is 6.

SHEET

Returns the sheet number of either a reference or a string representing a sheet name. If you do not enter any parameters, the result is the sheet number of the spreadsheet containing the formula.

Sintaxis

SHEET([Reference])

Referencia ye opcional; ye la referencia a una caxella, una área o una cadena de nome de fueya.

Exemplu

=SHEET(Sheet2.A1) returns 2 if Sheet2 is the second sheet in the spreadsheet document.

=SHEET("Sheet3") returns 3 if Sheet3 is the third sheet in the spreadsheet document.

TIPU.DE.ERRU

Devuelve'l númberu correspondiente a un valor de fallu que se produz nuna caxella distinta. Cola ayuda d'esti númberu, pue xenerar un testu de mensaxe de fallu.

If an error occurs, the function returns a logical or numerical value.

note

La barra d'estáu amuesa'l códigu de fallu predetermináu de LibreOffice al calcar na caxella que contién l'erru.


Sintaxis

TIPU.DE.ERRU(referencia)

Referencia contién la direición de la caxella na que se produz l'erru.

Exemplu

Si la caxella A1 amuesa l'Fallu:518, la función =TIPU.DE.ERRU(A1) devuelve'l númberu 518.

Información téunica

This function is not part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

ORG.OPENOFFICE.ERRORTYPE

ÁREES

Devuelve'l númberu d'árees individuales que pertenecen a unel área múltiple. Una área pue componese de caxelles axacentes o d'una única caxella.

La función espera un argumentu simple. Si define delles árees, tien d'incluyiles ente paréntesis adicionales. Puen especificase delles árees por aciu el símbolu de puntu y coma (;) como divisor, pero ésti conviértese automáticamente al operador llome (). La tilde úsase pa xunir árees.

Sintaxis

ÁREES(referencia)

La referencia ye la referencia a una caxella o a una área de caxelles.

Exemplu

=ÁREES((A1:B3;F2;G1)) devuelve 3, yá que ye una referencia a tres caxelles y/o árees. Tres la entrada, convertir a =ÁREES((A1:B3~F2~G1)).

=ÁREES(Toos) devuelve 1 si definióse una área que se llama Toos en Datos - Definir área.

ÍNDIZ

INDEX returns a reference, a value or an array of values from a reference range, specified by row and column index number or array of row and array of columns index numbers, and an optional range index.

INDEX() returns a reference if the argument is one or more references. When used in a cell in the form =INDEX(), the reference is resolved and the values displayed. When INDEX() is used in arguments of other functions, =FUNCTION(INDEX()...), the function gets the reference passed that was returned by INDEX(). Returning a reference is different from returning an array of values for functions that handles them differently.

Sintaxis

INDEX(Reference [; [Row] [; [Column] [; Range]]])

Reference is a reference, entered either directly or by specifying a range name. If the reference consists of multiple ranges, you must enclose the list of references or range names in parentheses, or either use the tilde (~) range concatenation operator or define a named range with multiple areas.

Row (optional) represents the row or the array of row indexes of the reference range, for which to return a value. In case of zero or omitted (no specific row) all referenced rows are returned.

Column (optional) represents the column or array of column indexes of the reference range, for which to return a value. In case of zero or omitted (no specific column) all referenced columns are returned.

note

If Row, Column or both are omitted or defined as arrays of indexes, the INDEX function must be entered as an array function.


Range (optional) represents the index of the subrange if referring to a multiple range, default is 1.

Exemplu

{=INDEX({1,3,5;7,9,10},{2;1},1)} return a 2 row array containing 7 and 1. The row index {2;1} pick row 2 then row 1. The columns index 1 picks the first column.

{=INDEX(D3:G12,{1;2;3;4},{3,1})} return a 4 rows by 2 columns array. The row index array {1;2;3;4} picks rows 3 to 6 and {3;1} picks the third (F) and first column (D). Columns 1 and 3 of the source reference are swapped in the resulting array.

=ÍNDIZ(Precios;4;1) devuelve'l valor de la filera 4 y la columna 1 l'área de base de datos definíu en Datos - Definir como Precios.

=INDEX(SumX;4;1) returns the value from the range SumX in row 4 and column 1 as defined in Sheet - Named Ranges and Expressions - Define.

{=INDEX(A1:B6;1)} returns the values of the first row of A1:B6. Enter the formula as an array formula.

{=INDEX(A1:B6;0;1)} returns the values of the first column of A1:B6. Enter the formula as an array formula.

=ÍNDIZ(A1:B6;1;1) indica'l valor na parte cimera esquierda del área A1:B6.

{=INDEX((A1:B6;C1:D6);0;0;2)} returns the values of the second range C1:D6 of the multiple range. Enter the formula as an array formula.

Please support us!