EXCEL 2007 - A função DATADIF (DATEDIF function)

Para calcular a diferença entre duas datas, o Excel disponibiliza as funções ANO (para se apurar o número de anos), MÊS (para meses), ou simplesmente uma operação aritmética simples (A2-A1, por exemplo) se quisermos o resultado em dias.
Porém, existe uma outra função que simplifica este tipo de operações, sobretudo quando se trata de calcular o número de meses entre anos diferentes. Designa-se por DATADIF e não se encontra listada nos manuais ou na ajuda do Excel. Na figura abaixo podemos verificar como se torna mais simples o cálculo da diferença entre duas datas.  


To calculate the difference between two dates, Excel provides functions YEAR (to determine the number of years), MONTH (for months), or just a simple arithmetic operation (A2-A1, for example) if we want the result in days .
But there is another function that simplifies this type of operation, especially when it comes to calculating the number of months from different years. That function is called DATEDIF and is not listed in Excel help. In the pictures below we can see how it makes it easier to calculate the difference between two dates.


Comentários

Mensagens populares deste blogue

EXCEL 2007 - FUNÇÕES PARA CALCULAR HORAS (Functions to Calculate Hours)

CONVERTER HORAS EM DIAS DE TRABALHO (Convert Hours to Workdays)

VBA EXCEL - OCULTAR LINHAS EM BRANCO (Hide Blank Rows)