I NEED TO CALCULATE NUMBER OF DAYS BETWEEN TODAY FROM A STARTING DATE .
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. 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.
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:
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:
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.
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:
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:
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. 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.
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!