Tip: Other languages are Google-Translated. You can visit the English version of this link.
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?



Recommended Productivity Tools for Excel

Kutools for Excel Helps You Always Finish Work Ahead of Time, and Stand Out From Crowd

  • More than 300 powerful advanced features, designed for 1500 work scenarios, increasing productivity by 70%, give you more time to take care of family and enjoy life.
  • No longer need memorizing formulas and VBA codes, give your brain a rest from now on.
  • Become an Excel expert in 3 minutes, Complicated and repeated operations can be done in seconds, 
  • Reduce thousands of keyboard & mouse operations every day, say goodbye to occupational diseases now.
  • 110,000 highly effective people and 300+ world-renowned companies' choice.
  • 60-day full features free trial. 60-day money back guarantees. 2 years of free upgrade and support.

Brings Tabbed Browsing and Editing to Microsoft Office, Far More Powerful Than The Browser's Tabs

  • Office Tab is designed for Word, Excel, PowerPoint and Other Office Applications: 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!
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.
    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 · 1 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 · 1 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 · 1 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 · 1 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