Note: The other languages of the website are Google-translated. Back to English
Iniciar  \/ 
x
or
x
Registrarse  \/ 
x

or

¿Cómo contar el número de días, días laborables, fines de semana entre dos fechas en Excel?

¿Alguna vez ha necesitado contar el número de días entre dos fechas en Excel? Es posible que, a veces, solo desee calcular los días hábiles entre dos fechas y, en algún momento, solo necesite contar los días de fin de semana entre las dos fechas. ¿Cómo podría contar el número de días entre dos fechas en una determinada condición?


Cuente o calcule el número de días entre dos fechas con fórmulas

Para contar cuántos días hay entre dos fechas determinadas, aplique cualquiera de las siguientes fórmulas:

=DATEDIF(A2,B2,"D")
= B2-A2

Entonces presione Entrar clave, y obtendrá el número de días entre las dos fechas. Ver captura de pantalla:

Nota:: En la fórmula anterior, A2 indica la fecha de inicio, y B2 indica la fecha de finalización. Puede reemplazarlos según sus necesidades.


Cuente o calcule el número de días laborables entre dos fechas con fórmulas

Pero a veces, solo desea saber la cantidad de días hábiles (de lunes a viernes), la fórmula anterior no funcionará para usted. En este caso, aquí hay dos funciones que pueden ayudarlo a lidiar con este problema.


1. Uso de la función NETWORKDAYS para contar el número de días laborables

En una celda en blanco, ingrese la siguiente fórmula:

=NETWORKDAYS(A2,B2)

Luego escribe Entrar y contará el número de días laborables, excepto domingos y sábados, entre las dos fechas. Ver captura de pantalla:

Nota:: En la fórmula anterior, A2 indica la fecha de inicio, y B2 indica la fecha de finalización.


2. Uso de la función NETWORKDAYS para contar el número de días laborables pero excluir los festivos

A veces, puede haber algunos días feriados durante las dos fechas, si desea calcular los días hábiles entre estas dos fechas, debe excluir los sábados, domingos y feriados. Esta NETWORKDAYS La función también puede ayudarte.

La sintaxis para el NETWORKDAYS la función es: = DÍAS DE RED (Fecha_inicio, Fecha_Finalización, Vacaciones)

Escriba las fechas de las vacaciones en las celdas que desea restar de las fechas, luego ingrese esta fórmula en una celda en blanco donde desea obtener el resultado:

=NETWORKDAYS(A2,B2,$C$2:$C$6)

Entonces presione Entrar clave, se ha calculado el número de días laborables que no incluyen domingos, sábados y festivos. Ver captura de pantalla:

Nota:: En la fórmula anterior, A2 indica la fecha de inicio, B2 representa la fecha de finalización y C2: C6 es la lista de vacaciones.


3. Uso de la función SUM e INT para contar el número de días laborables

Excepto la función NETWORKDAYS, hay otra fórmula que podría ayudarlo a calcular cuántos días hábiles hay entre dos fechas.

En una celda en blanco, ingrese o copie la siguiente fórmula:

=SUM(INT((WEEKDAY(A2-{2,3,4,5,6})+B2-A2)/7))

Y luego toque Entrar clave, y se calcularán todos los días laborables. Ver captura de pantalla:

Notas

1. A veces, dispone de 6 días laborables por semana (de lunes a sábado), por lo que debe calcular el número de días laborables incluidos los sábados pero excluidos los domingos. En este caso, puede aplicar esta fórmula:

=SUM(INT((WEEKDAY(A2-{2,3,4,5,6,7})+B2-A2)/7))

2. En las fórmulas anteriores, A2 representa la fecha de inicio y B2 indica la fecha de finalización.


Cuente o calcule el número de días de fin de semana entre dos fechas con fórmulas

Aquí también tienes algunas fórmulas para contar solo el número de días de fin de semana (sábados y domingos) en un período determinado para ti. Ingrese o copie cualquiera de las dos fórmulas:

=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A2&":"&B2)),2)>5))
=SUM(INT((WEEKDAY(A2-{1,7})+B2-A2)/7))

Entonces presione Entrar clave, y ahora obtendrá cuántos fines de semana entre estas dos fechas. Ver captura de pantalla:

Nota:: En la fórmula anterior, A2 indica la fecha de inicio, B2 significa fecha de finalización.


Cuente o calcule el número de días laborables, fines de semana entre dos fechas con una función útil

Para contar el número de días laborables o fines de semana entre dos fechas determinadas, Kutools for Excel, Ayudante de fórmula utilidad que contiene algunas fórmulas de uso común, puede aplicarlas para calcular edades, aparecen palabras, etc.

Nota:Para aplicar esto Ayudante de fórmula, en primer lugar, debe descargar el Kutools for Excely, a continuación, aplique la función de forma rápida y sencilla.

Después de instalar Kutools for Excel, haz lo siguiente:

1. Haga clic en la celda donde desea ubicar el resultado y luego haga clic en KutoolsAyudante de fórmula > Ayudante de fórmula, ver captura de pantalla:

2. En la Ayudante de fórmulas cuadro de diálogo, realice las siguientes operaciones:

  • Seleccionar Estadístico Opción de la Fórmula Tipo desplegable;
  • En los Elige una fórmula cuadro de lista, seleccione Número de días no laborables entre dos fechas or Número de días laborables entre dos fechas quieres usar;
  • Luego, en la sección de entrada de Argumentos, seleccione las celdas que contienen la fecha de inicio y la fecha de finalización por separado.
  • Por último, haz clic Ok para obtener el resultado como se muestra a continuación:


Cuente o calcule el número de días, semanas, meses o años entre dos fechas

Con la Kutools for Excel's Asistente de fecha y hora función, puede obtener rápidamente los diversos resultados de diferencia entre dos fechas según sus necesidades sin recordar ninguna fórmula, como semanas + días, meses + semanas, etc. ¡Haga clic para descargar Kutools para Excel!

Kutools for Excel: con más de 300 prácticos complementos de Excel, prueba gratuita y sin límite en 30 días. ¡Descarga y prueba gratis ahora!


Artículos más relativos de fecha y hora:

  • Calcular horas entre horas después de la medianoche en Excel
  • Suponiendo que tiene una tabla de tiempo para registrar su tiempo de trabajo, la hora en la Columna A es la hora de inicio de hoy y la hora en la Columna B es la hora de finalización del día siguiente. Normalmente, si calcula la diferencia de tiempo entre los dos tiempos directamente menos "= B2-A2", no mostrará el resultado correcto como se muestra en la captura de pantalla de la izquierda. ¿Cómo podría calcular correctamente las horas entre dos horas después de la medianoche en Excel?

Las mejores herramientas de productividad de oficina

Kutools para Excel resuelve la mayoría de sus problemas y aumenta su productividad en un 80%

  • Reutilizar: Inserte rápidamente fórmulas complejas, gráficos y cualquier cosa que hayas usado antes; Cifrar celdas con contraseña; Crear lista de distribución y enviar correos electrónicos ...
  • Barra de súper fórmula (edite fácilmente varias líneas de texto y fórmulas); Diseño de lectura (leer y editar fácilmente un gran número de celdas); Pegar en rango filtrado...
  • Combinar celdas / filas / columnas sin perder datos; Contenido de celdas divididas; Combinar filas / columnas duplicadas... Prevenir celdas duplicadas; Comparar rangos...
  • Seleccione Duplicado o Único Filas; Seleccionar filas en blanco (todas las celdas están vacías); Super Find y Fuzzy Find en muchos libros de trabajo; Selección aleatoria ...
  • Copia exacta Varias celdas sin cambiar la referencia de la fórmula; Crear referencias automáticamente a varias hojas; Insertar viñetas, Casillas de verificación y más ...
  • Extraer texto, Agregar texto, Eliminar por posición, Quitar espacio; Crear e imprimir subtotales de paginación; Convertir entre contenido de celdas y comentarios...
  • Súper filtro (guardar y aplicar esquemas de filtros a otras hojas); Orden avanzado por mes / semana / día, frecuencia y más; Filtro especial en negrita, cursiva ...
  • Combinar libros y hojas de trabajo; Combinar tablas basadas en columnas clave; Dividir datos en varias hojas; Conversión por lotes de xls, xlsx y PDF...
  • Más de 300 potentes funciones. Compatible con Office / Excel 2007-2019 y 365. Compatible con todos los idiomas. Fácil implementación en su empresa u organización. Características completas Prueba gratuita de 30 días. Garantía de devolución de dinero de 60 días.
pestaña kte 201905

Office Tab lleva la interfaz con pestañas a Office y hace que su trabajo sea mucho más fácil

  • Habilite la edición y lectura con pestañas en Word, Excel, PowerPoint, Publisher, Access, Visio y Project.
  • Abra y cree varios documentos en nuevas pestañas de la misma ventana, en lugar de en nuevas ventanas.
  • ¡Aumenta su productividad en un 50% y reduce cientos de clics del mouse todos los días!
officetab parte inferior
Say something here...
symbols left.
You are guest
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Ramu · 1 years ago
    i have one date, lets say 6/18/2020, i need it has to be minus exact 1 month(5/18/2020), if the result date 5/18/2020 is belongs to saturday or sunday than it would be FRIDAY's date. could you please give the formula for it. - Ramu
  • To post as a guest, your comment is unpublished.
    MOHAMMED RAJIH · 1 years ago
    HI,
    I NEED TO CALCULATE NUMBER OF DAYS BETWEEN TODAY FROM A STARTING DATE .
    • To post as a guest, your comment is unpublished.
      skyyang · 1 years ago
      Hi, RAJIH,
      You can also use this formula: =DAYS(TODAY(), A2), A2 is the cell contains your starting date, please try, hope it can help you!
      Thank you!
    • To post as a guest, your comment is unpublished.
      Sumit · 1 years ago
      Type your starting date in any cell of excel.
      Type today date in another cell of excel.
      Now simply minus the starting date from today date.
      Example: Starting date is in cell A1, Today date is in cell A2. Simply type =A2-A1.
  • To post as a guest, your comment is unpublished.
    cb · 2 years ago
    What about about adding days from a date, for example: 3/4/19 then add 60 days to get a new date.
    • To post as a guest, your comment is unpublished.
      skyyang · 2 years ago
      Hello,

      To add some days to a date, you just need to add the days to the date directly as below formula:
      =A1+60
      Please try it, hope it can help you!
  • To post as a guest, your comment is unpublished.
    shah179 · 2 years ago
    HI,
    need formula for calculate the days for working days (monday,tuesday, wednesday, thursday and Saturday) - minus holidays. (weekends is friday and sunday)

    pls help.
  • To post as a guest, your comment is unpublished.
    Jamirulhairi · 2 years ago
    Offday Friday and Saturday
    Public Holiday 22/08/18, 23/08/2018
    Manual count for working day are 20 days.
    =SUM(INT((WEEKDAY(L3-{1,2,3,4,5})+L5-L3)/7)) --->Total working day 22
    =NETWORKDAYS(L14,L16,L18:BS19) -->Total working days 21

    Please help
    • To post as a guest, your comment is unpublished.
      John · 1 years ago
      I always have Start Date, with set number of working days to complete various activities.

      =WORKINGDAY.INTL(START,DAYS,WEEKEND,HOLIDAYS) also causes issues, we work Sun-Thu, so weekend option is 7, yet this formula isn't consistent either, May 2019 has 22 working days (DAYS), this makes the result 02-Jun-19, which is the 2nd working day of June!

      Yet same formula for June 2019 with 21 working days gives the expected answer of 30-June-19.
  • To post as a guest, your comment is unpublished.
    Luis · 2 years ago
    Hi i need an excel formula which calculates the number of days between two dates and will give me a warning if the count is past day 28. Also if day 28 falls on a weekend or public holiday then the formula needs to account for this so day 28 becomes the next business day.
  • To post as a guest, your comment is unpublished.
    Manoj · 2 years ago
    Hi,
    I need to compute the no. of days by month wise between the dates excluding weekends and holidays. Can you please help to derive that
    From 01-01-2018
    To 05-03-2018
    Holidays 15-01-2018 26-01-2018 10-02-2018 04-03-2018
    No. of days in JAN = ?
    No. of days in FEB = ?
    No. of days in MAR = ?
    • To post as a guest, your comment is unpublished.
      skyyang · 2 years ago
      Hello, Manoj
      May be there is not a direct formula for solving your problem, but, you can set the data as following screenshot shown, and then apply this formula:
      =NETWORKDAYS(A2,B2,$D$2:$D$5)
      Please try it, hope it can help you!
      • To post as a guest, your comment is unpublished.
        Manoj · 2 years ago
        Hi Skyyang,
        I have huge data to compute and between two long period dates. Can you please help to compute with the two different month range date.
        Thanks.
      • To post as a guest, your comment is unpublished.
        Manoj · 2 years ago
        Hi Skyyang,
        In your explanation, start date and end date are from same month. But I need to know how to compute, if start date and end date are different month. For Ex: START date: 1 Jan 2018 to END date: 31 Mar 2018. I want to find the days by month wise.
        • To post as a guest, your comment is unpublished.
          Nishant · 2 years ago
          Hi Majoj, did you get an answer to this? I have been trying to figure this out myself too!
  • To post as a guest, your comment is unpublished.
    Mahbub · 3 years ago
    Hello,


    If there are some many days and some days are double or triple then how we can count the number of days between bigger and smaller days (removing duplicate days)
  • To post as a guest, your comment is unpublished.
    sandip.dream@gmail.com · 3 years ago
    Hello, today is 17.06.2018 and past date is 05.04.2018 than how many days in beetwin both dates? How to calculate in excel by mentioning only dates.
    • To post as a guest, your comment is unpublished.
      skyyang · 3 years ago
      Hello, Trivedi,
      Your date is not real date format, you should convert them to normal date format, and then apply the above formula in this article.

      If you don't know how to convert them to date, you can apply a feature Convert to date of Kutools for Excel as following screenshot shown:
  • To post as a guest, your comment is unpublished.
    Ravi · 3 years ago
    Hi,

    How we find the ending date ,using the Stating Date and .duration is 10.06 i.e YY.MM

    For example:

    22.01.2018 is the starting date , what would be the ending date after 10.06(10Years . 6 month.).

    Can you suggest us the formula.
    • To post as a guest, your comment is unpublished.
      skyyang · 3 years ago
      Hello, Ravi, may be the following formula can help you:
      =DATE(YEAR(A2)+10,MONTH(A2)+6,DAY(A2))
      in this formula, 10 is the number of year, 6 is the number of month.
      Please try it, thank you!
  • To post as a guest, your comment is unpublished.
    Paata · 3 years ago
    hi, need to calculate number of days. given only one date. for exmp.: 02.02.2017 is a 32-nd day in 2017. what kind of formula can calculate this?
  • To post as a guest, your comment is unpublished.
    Ibrar · 3 years ago
    hi
    i have a checkin and check out dates, i want to calculate how many Thurs+Fridays are as they have different room rates to the rest of the nights , ie from Sat to Wednesday
  • To post as a guest, your comment is unpublished.
    Bittu Gogoi · 4 years ago
    Hi,
    I want to find no of days between 2 dates without sundays. Please help me out.
    Thanks,
    Bittu Gogoi
  • To post as a guest, your comment is unpublished.
    Rajesh Sinha · 4 years ago
    Alternative formula to avoid weekends is quite useful.
  • To post as a guest, your comment is unpublished.
    Hayim Y. Sheynin · 4 years ago
    I need to display the days of the week for 28 year cycle, let say from January 1, 1 CE to January 1, 2 CE in Julian calendar. Is it possible to make it automatically?

    Waiting for answer, sincerely, Hayim
  • To post as a guest, your comment is unpublished.
    Renjith · 4 years ago
    Hi,

    Please provide a simple formula, i want to add days in a particular date. for example 10.05.2017 and want to add 10 days so answer should come 20.05.2017
    • To post as a guest, your comment is unpublished.
      Joshua · 3 years ago
      A1= 10-05-2017
      B1= A1+10
      = 20-05-2017


      *note A1 need to be in date format and B1 in General format
  • To post as a guest, your comment is unpublished.
    Jignesh · 4 years ago
    Hi,

    Please provide the formula which include two conditions. If the deference between the two dates are "0 to 5" calendar days than the final result is "Y" and if the deference between the two dates are "greater than 5" or "less than 0" than final result is "N".
    15-Jan-2017, 17-Jan-2017 = Y
    15-Jan-2017, 21-Jan-2017 = N
    15-Jan-2017, 11-Jan-2017 = N
    15-Jan-2017, 15-Jan-2017 = Y
  • To post as a guest, your comment is unpublished.
    Krishna · 4 years ago
    Hi..

    I need your help to get Network days with 2 conditions.

    Start date ; 01/11/2016 and End date:13/11/2016

    Holidays (01/11/2016 and 02/11/2016).

    1.Excluded Sundays.
    2.Excluded given above Holidays.

    Thanks,
    Krishna M
    • To post as a guest, your comment is unpublished.
      Sony Kadanthodan Seb · 3 years ago
      A B C D E
      01-11-2016 13-11-2016 9 01-11-2016 02-11-2016

      (SUM(INT((WEEKDAY(A2-{2,3,4,5,6,7})+B2-A2)/7))-((NETWORKDAYS(A2,B2)-(NETWORKDAYS(A2,B2,D2:E2)))))
  • To post as a guest, your comment is unpublished.
    JACKSON · 4 years ago
    HI..

    How to count today date add to after 60days which date. Ex:27-10-2016 +60days = which Date?
  • To post as a guest, your comment is unpublished.
    Jun Hao · 5 years ago
    Hi,

    I need to calculate the downtime to uptime of a machine in minutes during working hours.

    My working hours are :
    Monday - Friday 6:00 AM - 7:00 PM
    Saturday 7:00 AM - 2:00 PM
    Sundays and Holidays not included

    For example it's from 10/05/16 (Tuesday) 6:00 PM to 11/05/16 (Wednesday) 8:00 AM, it should only be calculated at 180mins (3 hours) as the downtime will stop on Tuesday 7:00 PM and resume at Wednesday 6:00 AM.
  • To post as a guest, your comment is unpublished.
    Walid · 5 years ago
    Hello,
    I need to calculate the difference between two dates for example start on 04/05/2016, and it will end on 20/06/2016, but actually i need one formula calculate to display each month separate " days took in May 24 and on June 20.
  • To post as a guest, your comment is unpublished.
    Latheef · 5 years ago
    I need to calculate storage based on days (0-10); per day days 10 onwards?
    for exapmle: today's date (03/03/2016) + 10 days = date should come automatically????
  • To post as a guest, your comment is unpublished.
    Cindy Wyman · 5 years ago
    I am trying to calculate the number of days between dates but there are some cells where the 1st date may be blank. I want to return a "0" in that cell when that occurs. I've tried adding an IF formula, but can't get it right. Is there a way I can either ignore the blank cell and not return a value or just have a "0" in the cell?
  • To post as a guest, your comment is unpublished.
    Dhruv Patel · 6 years ago
    I Need to find days in M S excel? can't find by Me give me equation......
  • To post as a guest, your comment is unpublished.
    Mark Donelly · 6 years ago
    I need to calculate storage based on days (0-7); days (8-14) and per day days 15 onwards? What formulas do i use?
  • To post as a guest, your comment is unpublished.
    Philip Hudnott · 6 years ago
    I need to calculate the number of days between 2 dates including 1st and last day, and split it into the number of days in each month.
    E.g. start 28 Jan end 3 march would return Jan = 4, Feb = 28, Mar = 3
    how can I do this?
  • To post as a guest, your comment is unpublished.
    Eve · 6 years ago
    I would like to get formula which can count 6 work days excluding holidays & certain day is consider half days.

    Is there any formula that can help?

    thank you
  • To post as a guest, your comment is unpublished.
    Portia · 6 years ago
    I HAVE FOUR DIFFERENT DATES AND I NEED TO COUNT THE DIFFERENCE BETWEEN THEM WHICH FUNCTION SHOULD I USE AND HOW??
  • To post as a guest, your comment is unpublished.
    S. M. · 6 years ago
    Using a column list containing the date and time in this format DD/MM/YYYY HH:MM ; what formula(s) would be needed to count how many times each day, and each hour that a cell is entered into this list
  • To post as a guest, your comment is unpublished.
    Amby · 7 years ago
    Hello.
    I am using Method2, but I want to get the - Fridays, Saturdays, and Sundays. However, in the following case, start day: Saturday, end day: Sunday, I get only 1 day instread of 2.
    Would anyone be able to help in the same?

    Many thanks,
    • To post as a guest, your comment is unpublished.
      AJM · 6 years ago
      Works for me - did you remember to modify the array to refer to the required days? You would need to modify it to {1,6,7} rather than {2,3,4,5,6}
  • To post as a guest, your comment is unpublished.
    NAJWA · 7 years ago
    Good evening
    Kindly my inquiry if I have in one cell in excel date and need to extract the number of days, i.e., 13-31/07/2014 is it possible ?
    thank you
    Najwa
    • To post as a guest, your comment is unpublished.
      admin-jay · 7 years ago
      Hello, Please be more specific about your issue.

      To extract all days between 13/07/2014 and 31//07/2014?