Documentazione/Funzioni di Calc/VALORE
TDF LibreOffice Document Liberation Project Blog comunitari Weblate Nextcloud Redmine Ask LibreOffice Donazione
Nome funzione:
VALORE
Categoria:
Testo
Riepilogo:
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.
Sintassi:
VALORE(Testo)
Restituisce:
Restituisce un numero che corrisponde alla stringa fornita.
Argomenti:
Testo è una stringa (tra virgolette) o un numero, o un riferimento a una cella contenente uno di questi tipi, che contiene il valore da convertire.
- Se Testo è una stringa vuota, VALORE segnala un errore di argomento non valido (Err:502).
- Se Testo non contiene un numero, una data, un'ora o una data-ora in un formato riconosciuto (che potrebbe dipendere dalle impostazioni locali), VALORE segnala un errore di argomento non valido (Err:502).
Dettagli aggiuntivi:
Il comportamento dettagliato della funzione VALORE dipende dalle impostazioni locali selezionate e le seguenti linee guida forniscono maggiori informazioni.
Comportamenti indipendenti dalla localizzazione
Le seguenti linee guida si applicano a qualsiasi localizzazione:
- VALORE accetta una gamma di formati numerici che non includono separatori decimali o separatori di gruppi di cifre. Alcuni esempi sono: "+1234" (il carattere "+" può essere omesso), "-345", "2e+3" (il carattere "+" può essere omesso), "-2E-1", "50%" (i valori che terminano con il carattere "%" vengono divisi per 100).
- VALORE accetta valori frazionari, specificati come un numero intero seguito da uno spazio e dalla frazione. Alcuni esempi includono "-1 2/5", "+7 15/16" (il carattere "+" può essere omesso), "0 1/2" (i valori compresi tra 0 e 1 sono specificati in questo formato includendo una parte intera pari a 0).
- VALORE accetta orari nel formato "hh:mm:ss" o "hh:mm".
- VALORE accetta date nel formato ISO 8601 "AAAA-MM-GG".
- VALORE accetta date e ore nel formato ISO 8601 "AAAA-MM-GGThh:mm:ss" e nel formato correlato "AAAA-MM-GG hh:mm:ss".
Comportamenti dipendenti dalla localizzazione
In una pagina come questa, non è pratico considerare ogni possibilità che si presenti per ogni potenziale impostazione locale. Pertanto, le seguenti linee guida aggiuntive si riferiscono al comportamento della funzione VALORE con l'impostazione locale Inglese(USA) selezionata. Queste linee guida dovrebbero consentirti di sperimentare per stabilire comportamenti aggiuntivi per la tua localizzazione.
- VALORE accetta una gamma di formati numerici che includono separatori decimali (punto, Unicode U+002E) o separatori di gruppi di cifre (virgola, Unicode U+002C). Alcuni esempi: "+1,234.567" (il carattere "+" può essere omesso), "-12,345.678", "+2.345e+3" (entrambi i caratteri "+" possono essere omessi), "-2.345E-1", "50.55%" (i valori che terminano con il carattere "%" vengono divisi per 100), "$45.67" (il carattere "$", che rappresenta l'unità di valuta statunitense, viene ignorato).
- VALORE accepts dates that include month names. Examples include "Jul 30, 2021" (using 3-character abbreviated month names) and "July 30, 2021" (using full month names).
- VALORE accepts dates in the "MM/DD/YYYY" and "MM/DD/YY" formats.
- VALORE accepts times that include fractional seconds in "hh:mm:ss.ss" format.
Esempi:
The following examples all refer to the English(USA) locale.
| Formula | Descrizione | Restituisce |
|---|---|---|
| =VALORE("1234") | - | 1234 |
| =VALORE(1 234) | Here VALORE accepts a numeric argument with no quotation marks. | 1234 |
| =VALORE(D1) where cell D1 contains 1234 (formatted as either a number or a string). | Here the argument is passed as a cell reference. | 1234 |
| =VALORE("+1,234.567") | Here the argument contains both a decimal point and a digit group separator, with the latter being removed. | 1 234,567 |
| =VALORE("-12,345.678") | Here the argument contains both a decimal point and a digit group separator, with the latter being removed. | −12 345,678 |
| =VALORE("+2.345e+3") | Here the argument uses scientific notation, with a lowercase "e". | 2345 |
| =VALORE("-2.345E-1") | Here the argument uses scientific notation, with an uppercase "E". | −0,2345 |
| =VALORE("50.55%") | Here the argument contains a trailing percent (%) character, so that the supplied number is divided by 100. | 0,5055 |
| =VALORE("$45.67") | Here the leading dollar ($) character is removed. | 45,67 |
| =VALORE("-1 2/5") | Here the argument is a negative fractional value. | −1,4 |
| =VALORE("+7 15/16") | Here the argument is a positive fractional value – the plus (+) character is removed. | 7,9375 |
| =VALORE("0 1/2") | Here the argument is a fractional value. | 0,5 |
| =VALORE("09:20:25") | Here a time in hh:mm:ss format is converted to a date-time sequence number. | 0,389178240740741 |
| =VALORE("09:20") | Here a time in hh:mm format is converted to a date-time sequence number. | 0,388888888888889 |
| =VALORE("09:20:25.765") | Here a time that includes fractional seconds is converted to a date-time sequence number. | 0,389187094907407 |
| =VALORE("2021-07-30") | Here a date in YYYY-MM-DD format is converted to a date-time sequence number. | 44407 |
| =VALORE("July 30, 2021") | Here a date with month text is converted to a date-time sequence number. | 44407 |
| =VALORE("Jul 30, 2021") | Here a date with abbreviated month text is converted to a date-time sequence number. | 44407 |
| =VALORE("07/30/2021") | Here a date in MM/DD/YYYY format is converted to a date-time sequence number. | 44407 |
| =VALORE("07/30/21") | Here a date in MM/DD/YY format is converted to a date-time sequence number. | 44407 |
| =VALORE("2021-07-30T09:20:25") | Here a date and time in ISO8601 format is converted to a date-time sequence number. | 44 407,3891782407 |
| =VALORE("2021-07-30 09:20:25") | Here a date and time in a format similar to ISO 8601 (without the interior "T" character) is converted to a date-time sequence number. | 44 407,3891782407 |
Funzioni di LibreOffice correlate:
Standard ODF:
Funzioni equivalenti (o simili) di Excel:
VALUE