Esta sección contén descricións das funcións de Texto.
Para acceder a esta orde...
Inserir - Función, categoría Texto
Empregar aspas duplas nas fórmulas
Para incluír unha cadea de texto nunha fórmula coloque a cadea de texto entre dúas aspas duplas (") e o Calc toma os caracteres da cadea sen intentar interpretalos. Por exemplo, a fórmula ="Ola, mundo!" mostra a cadea de texto Ola, mundo! na cela sen aspas arredor.
A fórmula, algo máis complexa, =CONCATENAR("A vida é realmente sinxela, ";"mais insistimos en facela complicada";"(Confucio)." concatena tres cadeas individuais entre aspas duplas producindo A vida é realmente sinxela, mais insistimos en facela complicada (Confucio)."
Para colocar unhas aspas duplas literalmente dentro dunha cadea dunha fórmula pódense empregar dous métodos:
Pódense «escapar» as aspas duplas cunhas adicionais, co que o Calc trata as aspas duplas escapadas como un valor literal. Por exemplo, a fórmula ="Chámome ""Xan Ribeiro"". produce a saída Chámome "Xan Ribeiro". Outro exemplo sinxelo é a fórmula =UNICODE(""""), que devolve 34; o valor decimal do carácter de aspa dupla en Unicode (U+0022). Aquí, as aspas primeira e cuarta indican o comezo e o fin da cadea, mentres que a segunda escapa a terceira.
You can use the CHAR function or the UNICHAR function to insert a double quotation mark. For example, the formula =UNICHAR(34) & "The Catcher in the Rye" & UNICHAR(34) & " is a famous book by J. D. Salinger." displays the string "The Catcher in the Rye" is a famous book by J. D. 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.
Para a conxunto de caracteres de bytes dobres (DBCS) idiomas, devolve o número de bytes usados para representar os carácteres nunha secuencia de texto.
Substitúe parte dunha cadea de texto cunha secuencia de texto diferente. Esta función pode usarse para substituír caracteres e números (que automaticamente convertidas en texto). O resultado da función sempre aparece como texto. Se desexa realizar outros cálculos cun número que foi substituído polo texto, terá que convertelo-lo de volta para un número usando o VALOR función.
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).
Converts the string representation of a number to numeric form. If the supplied string is a valid date, time, or date-time, the corresponding date-time serial number is returned.