Início › Funções › Data e hora › DATA.VALOR
fx
DATA.VALOR
Data e hora  ·  Desde: Excel 2003  ·  9 idiomas

A função DATA.VALOR converte uma data armazenada como texto em um número de série que o Excel reconhece como data. Por exemplo, a fórmula =DATA.VALOR("1/1/2008") retorna 39448, o número de série da data 1/1/2008. Lembre-se, no entanto,de que a configuração de sistema de data de seu computador pode fazer com que os resultados da função DATA.VALOR difiram deste exemplo.

🌐 Traduções

English DATEVALUE
Deutsch DATWERT
Français DATEVAL
Español FECHANUMERO
Italiano DATA.VALORE
Português DATA.VALOR
Nederlands DATUMWAARDE
Polski DATA.WARTOŚĆ
Русский ДАТАЗНАЧ

📦 Disponibilidade

Versão do ExcelDisponível
Excel 2007 ✓
Excel 2013 ✓
Excel 2019 ✓
Excel 2021 ✓
Microsoft 365 ✓
Traduzir uma fórmula com esta função
fx EN
fx PT

⌨ Sintaxe

DATEVALUE(date_text)

Argumentos

date_text (obrigatório) — Text that represents a date in an Excel date format, or a reference to a cell that contains text that represents a date in an Excel date format. For example, "1/30/2008" or "30-Jan-2008" are text strings within quotation marks that represent dates. Using the default date system in Microsoft Excel for Windows, the date_text argument must represent a date between January 1, 1900 and December 31, 9999. The DATEVALUE function returns the #VALUE! error value if the value of the date_text argument falls outside of this range. If the year portion of the date_text argument is omitted, the DATEVALUE function uses the current year from your computer's built-in clock. Time information in the date_text argument is ignored.

▶ Exemplos

=DATEVALUE(A2 & "/" & A3 & "/" & A4)
=DATEVALUE("5-JUL")
=DATEVALUE("1/1/2008")

Funções relacionadas

Copiado para a área de transferência