Abilitare JavaScript nel browser per visualizzare le pagine della Guida di LibreOfficeDev.
Categoria Testo
In questa sezione sono descritte le funzioni della categoria Testo.
Inserisci - Funzione - Categoria Testo
Uso delle virgolette doppie nelle formule
Per includere una stringa di testo in una formula inseritela tra virgolette doppie ("), in tal modo i caratteri della stringa verranno acquisiti senza essere interpretati. Per esempio, la formula ="Ciao mondo!" visualizza la stringa di testo Ciao mondo! nella cella, senza virgolette doppie.
La formula più complessa =CONCATENA("La vita è davvero semplice, "; "ma ci ostiniamo a renderla complicata "; "(Confucio).") concatena tre stringhe distinte tra virgolette doppie, generando La vita è davvero semplice, ma ci ostiniamo a renderla complicata (Confucio).
Per inserire una virgoletta doppia letterale in una stringa all'interno di una formula, è possibile utilizzare due metodi:
-
È possibile eseguire l'escape delle doppie virgolette con un'ulteriore doppia virgoletta, nel qual caso Calc considera le doppie virgolette precedute da escape come un valore letterale. Ad esempio, la formula ="Il mio nome è ""Mario Rossi""." restituisce la stringa Il mio nome è "Mario Rossi". Un altro semplice esempio è la formula =UNICODE("""") che restituisce 34, il valore decimale del carattere Unicode delle virgolette (U+0022) — qui la prima e la quarta doppia virgoletta indicano l'inizio e la fine della stringa, mentre la seconda doppia virgoletta è un escape della terza.
-
È possibile usare la funzione CODICE.CARATT o la funzione CARATT.UNI per inserire una virgoletta doppia. Ad esempio, la formula =CARATT.UNI(34) & "Il giovane Holden" & CARATT.UNI(34) & " è un celebre romanzo di J.D. Salinger." visualizza la stringa "Il giovane Holden" è un celebre romanzo di J.D. Salinger.
È bene tenere presente che la funzione Correzione automatica di Calc può modificare le virgolette doppie. La correzione automatica non deve modificare le virgolette doppie all'interno delle celle delle formule, ma può modificare quelle utilizzate nelle celle non contenenti formule, ma testo. Ad esempio, se si copia una stringa racchiusa tra virgolette doppie di altro tipo, come le virgolette doppie di sinistra (U+201C) e le virgolette doppie di destra (U+201D), e la si incolla in una cella formula, potrebbe verificarsi un errore. Accedere quindi all'area Virgolette doppie della finestra di dialogo per impostare i caratteri utilizzati per la correzione automatica delle virgolette doppie tipografiche iniziali e finali. Deselezionare l'opzione per disattivare la funzione.
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.
Restituisce il valore numerico corrispondente a un numero romano espresso come testo.
Converte i caratteri a byte doppio (larghezza intera) in caratteri ASCII e katakana a byte singolo (metà larghezza).
Converts a number to Thai text, including the Thai currency names.
Converts a positive integer to a specified base into a text from the numbering system. The digits 0-9 and the letters A-Z are used.
Converts a number into a character according to the current code table. The number can be a two-digit or three-digit integer number.
All non-printing characters are removed from the string.
Returns a numeric code for the first character in a text string.
Combines several text strings into one string.
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.
Compares two text strings and returns TRUE if they are identical. This function is case-sensitive.
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.
Returns a number as text with a specified number of decimal places and optional thousands separators.
Converte i caratteri ASCII o katakana a byte singolo (mezza larghezza) in caratteri a byte doppio (larghezza intera).
Returns the first character or characters of a text.
Returns the first characters of a DBCS text.
Returns the length of a string including spaces.
For double-byte character set (DBCS) languages, returns the number of bytes used to represent the characters in a text string.
Converts all uppercase letters in a text string to lowercase.
Returns a text string of a text. The parameters specify the starting position and the number of characters.
Returns a text string of a DBCS text. The parameters specify the starting position and the number of characters.
Capitalizes the first letter in all words of a text string.
Trova le corrispondenze ed estrae il testo o, eventualmente, lo sostituisce utilizzando le espressioni regolari.
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.
Repeats a character string by the given number of copies.
Returns the last character or characters of a text.
Returns the last character or characters of a text with double bytes characters sets (DBCS).
Converte un numero in un numero romano. L'intervallo di valori deve essere compreso tra 0 e 3999. Una modalità di semplificazione può essere specificata nell'intervallo da 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).
Substitutes new text for old text in a string.
This function returns the target text, or a blank text string if the target is not text.
Converts a value into text according to a given format.
Removes spaces from a string, leaving only a single space character between words.
Converts a code number into a Unicode character or letter.
Returns the numeric code for the first Unicode character in a text string.
Converts the string specified in the text field to uppercase.
Converte la rappresentazione stringa di un numero in formato numerico. Se la stringa fornita è una data, un'ora o una data-ora valida, viene restituito il numero seriale data-ora corrispondente.
Ottiene del contenuto web da un URI.
Applica un'espressione XPath a un documento XML.
Restituisce una stringa codificata come URL.