Esta sección contiene descripciones de las funciones de Texto.
Para acceder a esta orden…
Insertar ▸ Función ▸ categoría Texto
Utilizar comillas dactilográficas dobles (") en fórmulas
Para incluir una cadena de texto en una fórmula, coloque la cadena de texto entre comillas dobles ("), Calc toma los caracteres de la cadena sin intentar interpretarlos. Por ejemplo, la fórmula ="¡Hola mundo!" muestra la cadena de texto ¡Hola mundo! en la celda, sin las comillas dobles envolventes.
La fórmula más compleja =CONCATENAR("La vida es realmente sencilla, "; "pero insistimos en complicarla "; "(Confucio).") concatena tres cadenas individuales entre comillas dobles, dando como resultado La vida es realmente sencilla, pero insistimos en complicarla (Confucio).
Para colocar una comilla doble literal dentro de una cadena en de una fórmula, se pueden usar dos métodos:
Puede codificar con «escape» las comillas dobles con una comilla doble adicional; Calc trata las comillas dobles escapadas como un valor literal. Por ejemplo, la fórmula ="Mi nombre es ""Juan Pérez""." genera la cadena Mi nombre es "Juan Pérez". Otro ejemplo simple es la fórmula =UNICODE("""") que devuelve 34, el valor decimal del carácter de comillas Unicode (U+0022); aquí las comillas dobles primera y cuarta indican el principio y el final de la cadena, mientras que la segunda comilla doble escapa a la tercera.
Puede usar la función CARACTER o la función UNICAR para insertar una comilla doble. Por ejemplo, la fórmula =UNICAR(34) & "El Guardián entre el centeno" & UNICAR(34) & " es un libro famoso de JD Salinger". muestra la cadena "El Guardián entre el centeno" es un famoso libro de JD Salinger.
Be aware that Calc's AutoCorrect function may modify double quotation marks. AutoCorrect should not change the double quotation marks within formula cells but may change those used in non-formula cells containing text. For example, if you copy a string that is surrounded by some other form of typographical double quotation marks, such as the left double quotation mark (U+201C) and the right double quotation mark (U+201D), and then paste into a formula cell, an error may result. Open the Double Quotes area of the Tools - AutoCorrect Options - Localized Options dialog to set the characters used to automatically correct the start and end typographical double quotation marks. Uncheck the Replace toggle button to disable the feature.
Empty string and blank cells
Cells with the empty string ("") are not equivalent to blank cells. When searching or calculating with text, the empty string "" is the text with length zero.
For example, when the formula in A1 returns the empty string "", the following applies:
=ISBLANK(A1) returns FALSE. The cell is not blank.
=ISFORMULA(A1) returns TRUE. The cell is a formula.
=ISLOGICAL(A1) returns FALSE. Not a logical value.
=ISNONTEXT(A1) returns FALSE. The cell has the empty string.
=ISNUMBER(A1) returns FALSE. Not a number.
=ISTEXT(A1) returns TRUE. The cell has the empty string, calculated by a formula.
=LEN(A1) returns 0. The length of the empty string is 0.
Converts text that represents a number in a numeral system with the given base radix to a positive integer. The radix must be in the range 2 to 36. Spaces and tabs are ignored. The Text field is not case-sensitive.
Converts a number to a string representing the amount in the currency format, rounded to a specified decimal places, using the decimal separator that corresponds to the current locale setting. In the Value field enter the number to be converted. Optionally, you may enter the number of decimal places in the Decimals field. If no value is specified, all numbers in currency format will be displayed with two decimal places.
Returns the position of a string of text within another string.You can also define where to begin the search. The search term can be a number or any string of characters. The search is case-sensitive.
Replaces part of a text string with a different text string. This function can be used to replace both characters and numbers (which are automatically converted to text). The result of the function is always displayed as text. If you intend to perform further calculations with a number which has been replaced by text, you will need to convert it back to a number using the VALUE function.
Convierte un número en un número romano. El intervalo de valores debe estar entre 0 y 3999. Se puede especificar un modo de simplificación en el intervalo de 0 a 4.
Returns the position of a text segment within a character string. You can set the start of the search as an option. The search text can be a number or any sequence of characters. The search is not case-sensitive. If the text is not found, returns error 519 (#VALUE).
Convierte la representación de cadena de un número en forma numérica. Si la cadena suministrada es una fecha, hora o fecha-hora válida, se devuelve el número de serie de fecha y hora correspondiente.