Log in
x
or
x
x
Register
x

or

How to count the number of days / workdays / weekends between two dates in Excel?

Have you ever needed to count the number of days between two dates in Excel? May be, sometimes, you just only want to calculate the workdays between two dates, and sometime, you need to count the weekend days only between the two dates. How could you count the number of days between two dates in a certain condition?

Count / Calculate the number of days between two dates

Count / Calculate the number of workdays between two dates with formulas

Count / Calculate the number of weekend days between two dates with formulas

Count / Calculate the number of workdays / weekends between two dates with Kutools for Excel


Add number of years / months / days / weeks to date:

Kutools for Excel’s Formulas utility contains some commonly-used formulas, such as add years to date, calculate age based on birthday and so on. With these usual formulas, you can quickly get the result that you want without remembering any formulas.

doc add days months to date 1

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!


Count / Calculate the number of days between two dates


Supposing today is 3/18/2017, your vacation starts on 11/21/2016 as following screenshot shown, and you want to count how many days there are between these two dates.

doc count days 1

In a blank cell, please enter this formula =B2-B1, then press Enter key, and you will get the number of days between the two dates. See screenshot:

doc count days 2

Note: In the above formula, B2 indacates the end data, and B1 indacates the start date. You can replace them as your need.


Count / Calculate the number of workdays between two dates with formulas

But sometimes, you just want to find out the number of workdays (from Monday to Friday), the above formula will not work for you. In this case, here are two functions can help you to deal with this problem.

1. Using NETWORKDAYS function to count the number of workdays

In a blank cell, please enter this formula =NETWORKDAYS(B1,B2), (B1 stands for the start date and B2 indicates the end date) then type Enter key, and you will count the number of workdays excluding Sundays and Saturdays between the two dates. See screenshot:

doc count days 3

Note:

Sometimes, there may be some holidays during the two date, if you want to calculate the business days between these two dates, you should exclude Saturdays, Sundays, and holidays. This NETWORKDAYS function also can help you.

The syntax for the NETWORKDAYS function is: = NETWORKDAYS ( Start_date , End_date , Holidays )

Type the holiday dates into the cells that you want to subtract from the dates, Then enter this formula =NETWORKDAYS(B1,B2,B3:E3), (B1 indicates start date, B2 stands for end date and B3:E3 is the list of holidays) then press Enter key, the number of workdays which not include Sundays, Saturdays and holidays have been calculated.

doc count days 4

2. Using SUM and INT function to count the number of workdays

Except the NETWORKDAYS function, there is another formula could help you to get how many workdays between two dates.

In a blank cell, enter this formula =SUM(INT((WEEKDAY(B1-{2,3,4,5,6})+B2-B1)/7)), and then tap Enter key, and all the workdays will be calculated. See screenshot:

doc count days 5

Notes:

1. Sometimes, you have 6 workdays per week (from Monday to Saturday), so you need to calculate the number of workdays including Saturdays but excluding Sundays. In this case, you can apply this formula =SUM(INT((WEEKDAY(B1-{2,3,4,5,6,7})+B2-B1)/7)).

2. In the above formulas, B1 stands for the start date and B2 indicates the end date.


Count / Calculate the number of weekend days between two dates with formulas

Here also have some formulas to count only the number of weekend days (Saturdays and Sundays) in a given period for you.

Type this formula =SUM(INT((WEEKDAY(B1-{1,7})+B2-B1)/7)) (B1 indicates start date, B2 stands for end date) into a blank cell then press Enter key, and now you will get how many weekends between these two dates. See screenshot:

doc count days 6

Note: Another formula to introduce you to calculate the weekends in given two dates. Please apply this =SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(B1&":"&B2)),2)>5)) (B1 indicates start date and B2 stands for end date).


Count / Calculate the number of workdays / weekends between two dates with Kutools for Excel

Count / Calculate the number of workdays / weekends / specific day between two dates

To count the number of weekdays or weekends between two given dates, Kutools for Excel’s Formulas utility which contains some commonly used formulas, you can apply them to calculate ages, word appears and so on.

doc count days 7

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!


Demo: Count / Calculate the number of weekends / weekdays / specific weekdays between two dates with Kutools for Excel

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!


Related article:

How to count the number of specific weekdays between two dates in Excel?


The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest ( Sign Up? )
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.
    MOHAMMED RAJIH · 1 months ago
    HI,
    I NEED TO CALCULATE NUMBER OF DAYS BETWEEN TODAY FROM A STARTING DATE .
  • To post as a guest, your comment is unpublished.
    cb · 5 months 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 · 5 months 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 · 10 months 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 · 1 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 months 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 · 1 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 · 1 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 · 1 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 · 1 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 · 1 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 · 11 months 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 · 1 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 Trivedi · 1 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 · 1 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 · 2 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 · 2 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 · 2 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 · 2 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 · 2 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 · 2 years ago
    Alternative formula to avoid weekends is quite useful.
  • To post as a guest, your comment is unpublished.
    Hayim Y. Sheynin · 2 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 · 2 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 · 2 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 · 2 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 · 3 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 · 1 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 · 3 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 · 3 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 · 3 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 · 3 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 · 4 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 · 4 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 · 4 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 · 4 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 · 5 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 · 5 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. · 5 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 · 5 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 · 5 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 · 5 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 · 5 years ago
      Hello, Please be more specific about your issue.

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