The DATE function

Share on facebook
Share on twitter
Share on linkedin
Share on telegram
Share on whatsapp

Contents

The DATE function <Article <Blog | SumProduct are Excel training experts: financial modeling, strategic data modeling, model audit, planning and strategy, training courses, tips and online knowledge base

keep in mind javascript is required for full website functionality.

Welcome back to our regular blog of Excel functions from A to Z. Today we look at the DATE function.

The DATE function

Esta función devuelve el número de serie secuencial que representa una fecha en particular. Basically, este era un método para evitar el “temido error del año 2000” que se refería a la división potencial por errores cero.

function_107_-_date_part_1-5044944

The DATE The function uses the following syntax to operate:

The DATE The function has the following arguments:

  • year: is se requiere. El valor del argumento del año puede incluir de uno a cuatro dígitos. Excel interpreta el argumento del año de acuerdo con el sistema de fechas que usa su computadora. By default, Microsoft Excel para Windows usa el sistema de fechas 1900, lo que significa que la primera fecha es el 1 of January of 1900. Es mejor usar cuatro dígitos para el argumento del año para evitar resultados no deseados. For instance, “18” podría significar “1918” O “2018”; los años de cuatro dígitos evitan esa confusión.
    • And year está entre 0 (zero) Y 1899 (inclusive), Excel agrega ese valor a 1900 para calcular el año. For instance, DATE (108,1,2) return the 2 of January of 2008 (1900 + 108)
    • And year está entre 1900 Y 9999 (inclusive), Excel usa ese valor como año. For instance, DATE (2008,1,2) regresa el 2 of January of 2008
    • And year is less than 0 o es 10000 o mayor, Excel devuelve el #ON ONE! error value
    • my: esto también es obligatorio y debe ser un número entero positivo o negativo que represente el mes del año del 1 al 12 (enero a diciembre)
    • And my is greater than 12, my agrega ese número de meses al primer mes del año especificado. For instance, DATE (2018,14,2) devuelve el número de serie que representa el 2 February 2019
    • And my is less than 1, my resta la magnitud de ese número de meses, plus 1, del primer mes del año especificado. For instance, DATE (2018, -3,2) devuelve el número de serie que representa el 2 September 2017
  • day: again, this is obligatory. Este es un número entero positivo o negativo que representa el día del mes del 1 al 31.
    • And day es mayor que el número de días del mes especificado, day agrega ese número de días al primer día del mes. For instance, DATE (2018,1,35) devuelve el número de serie que representa el 4 February 2018
    • And day is less than 1, day resta la magnitud de ese número de días, más uno, del primer día del mes especificado. For instance, DATE (2018,1, -15) devuelve el número de serie que representa el 16 from December to 2017.

It should also be noted that:

  • Excel almacena las fechas como números de serie secuenciales para que se puedan utilizar en los cálculos. The 1 of January of 1900 is the serial number 1 and the 6 July 2009 is the serial number 40000 because it is 39,999 days after 1 of January of 1900.
  • you will need to change the format of the number (CTRL + 1, 'Cell format') to display a suitable date
  • The 29 February 1900 recognized as day 60 in the date system 1900. This date does not exist (years ending in “00” must be divisible by 400 to be a leap year), but this bug has been perpetuated for consistency / compatible con Lotus 1-2-3.

Please, see my example below:

function_107_-_date_part_2-9880818

Soon we will continue with our functions from A to Z of Excel. Keep checking: there is a new blog post every business day.

You can find a full page of feature articles here.

Subscribe to our Newsletter

We will not send you SPAM mail. We hate it as much as you.