Ever found yourself manually counting the days between two dates in Excel, wishing there was an easier way? Well, there is! Excel's built-in functions allow you to calculate the number of days between two dates with just a simple formula. Let's dive into how you can do this.

"Days in a Month in Excel 📅 | Excel Formula Trick #shorts"
"Days in a Month in Excel 📅 | Excel Formula Trick #shorts"

Before we start, ensure your data is entered as dates. If not, you can convert text to dates using the TEXT function. Now, let's explore the different ways to calculate days in Excel.

How to Use 20+ Date Formulas in Excel
How to Use 20+ Date Formulas in Excel

Using DATEDIF Function

The DATEDIF function is specifically designed to calculate the difference between two dates. It's available in Excel 2007 and later versions.

Calculate Working Days between two Dates in Excel: Find Workdays Excluding Holidays & Weekends
Calculate Working Days between two Dates in Excel: Find Workdays Excluding Holidays & Weekends

Syntax: DATEDIF(start_date, end_date, [unit])

Days

the basic excel formats for each type of text, including numbers and letters in green
the basic excel formats for each type of text, including numbers and letters in green

To find the number of days between two dates, use the "d" unit. For example, if your start date is A1 and end date is B1, use:

DATEDIF(A1, B1, "d")

This will return the number of days between the two dates. If the end date is earlier than the start date, it will return a negative number.

Excel Formula to Find Date or Days in Next Month (6 Quick Ways)
Excel Formula to Find Date or Days in Next Month (6 Quick Ways)

Days with weekends excluded

If you want to exclude weekends (Saturday and Sunday) from your calculation, use the "yd" unit. Here's how:

DATEDIF(A1, B1, "yd")

Workday Formula in Excel | MyExcelOnline
Workday Formula in Excel | MyExcelOnline

This will return the number of working days between the two dates.

Using NETWORKDAYS Function

WEEKDAY formula in Excel to get day of week, weekends and workdays
WEEKDAY formula in Excel to get day of week, weekends and workdays
Top 21 Excel Formulas
Top 21 Excel Formulas
How to put dates in excel!
How to put dates in excel!
Excel Tip
Excel Tip
Calculate Number of Days Between Two Dates in Excel (8 Quick Tricks)
Calculate Number of Days Between Two Dates in Excel (8 Quick Tricks)
How to Extract Day, Month, Year from Date in Excel | Excel Formula | Excel Function | Excel World
How to Extract Day, Month, Year from Date in Excel | Excel Formula | Excel Function | Excel World
How to calculate time between two dates in Years, Months & Days [Excel Formula]
How to calculate time between two dates in Years, Months & Days [Excel Formula]
Turn Dates Into Day Names Fast in Excel
Turn Dates Into Day Names Fast in Excel
Calculate Number of Days Between Two Dates in Excel - TheAppTimes
Calculate Number of Days Between Two Dates in Excel - TheAppTimes
How to Use Workday Formula in Excel
How to Use Workday Formula in Excel
How to find Day of any Date in Excel | Imran Ansari
How to find Day of any Date in Excel | Imran Ansari
How to Calculate the Day of the Week in Excel: 3 Steps
How to Calculate the Day of the Week in Excel: 3 Steps
Highlight dates due in the next 30 days in Excel - Excel Tips and Tricks
Highlight dates due in the next 30 days in Excel - Excel Tips and Tricks
How to Add 7 Days to a Date in Excel (3 Methods)
How to Add 7 Days to a Date in Excel (3 Methods)
Calender in Excel ‼️ Amazing Excel trick using data validation and conditional formatting ✅ #Excel
Calender in Excel ‼️ Amazing Excel trick using data validation and conditional formatting ✅ #Excel
✅ 25 Excel Formulas Every Data Analyst Must Know
✅ 25 Excel Formulas Every Data Analyst Must Know
Highlighting dates over 60 days old in Excel
Highlighting dates over 60 days old in Excel
Excel Formulas Cheat Sheet: Essential Formulas for Data Analysis | Asim khan posted on the topic | LinkedIn
Excel Formulas Cheat Sheet: Essential Formulas for Data Analysis | Asim khan posted on the topic | LinkedIn
Work in Excel Faster Than Ever – Speed Up Your Workflow
Work in Excel Faster Than Ever – Speed Up Your Workflow
Microsoft Excel format text as date (dd mm yyyy format )
Microsoft Excel format text as date (dd mm yyyy format )

The NETWORKDAYS function is another way to calculate the number of working days between two dates. It's available in Excel 2007 and later versions.

Syntax: NETWORKDAYS(start_date, end_date, [holidays])

Working days

To find the number of working days between two dates, excluding weekends, use:

NETWORKDAYS(A1, B1)

This will return the number of working days between the two dates. If you want to exclude specific holidays, you can list them in the "holidays" argument.

Remember, consistency is key when working with dates in Excel. Ensure your dates are formatted correctly and use the same date system (MDY, DMY, or YMD) throughout your calculations.

Now that you know how to calculate days in Excel, you can streamline your work and save time. Happy calculating!