Maplebrief Breaking Wire English (Canada)
Maplebrief.org Maplebrief Breaking Wire
Blog Business Local Politics Tech World

Nombre de Jours Entre Deux Dates – Excel and Google Sheets Guide

Ethan Benjamin Campbell • 2026-04-08 • Reviewed by Maya Thompson

Calculating the exact number of days between two dates represents a fundamental requirement across financial modeling, project management, and human resources operations. Whether determining contract durations, employee tenure, or project timelines, precision matters significantly when leap years and calendar variations enter the equation.

Multiple methods exist to compute date differences, ranging from simple spreadsheet subtraction to specialized functions like DATEDIF. While basic arithmetic works for quick estimates, professional applications demand tools that automatically account for leap years and exclude non-working periods when necessary.

This guide examines the precise calculation methods available in Excel and Google Sheets, evaluates reliable online calculators, and clarifies the distinction between calendar days and business days. Understanding these approaches ensures accurate results whether tracking a 366-day leap year or calculating working days for payroll processing.

How to Calculate the Number of Days Between Two Dates

Manual Method

Direct subtraction of date serial numbers

Excel Formula

=DATEDIF(start_date, end_date, “D”)

Google Sheets

=DATEDIF(A1; B1; “D”) with semicolons in some locales

Key Considerations

Leap years and chronological order

  • DATEDIF precision: Use unit “D” for total days, “Y” for complete years, or “M” for months
  • Leap year handling: DATEDIF automatically includes February 29 when calculating across leap years like 2024
  • Excel undocumented status: While fully supported, DATEDIF does not appear in Excel’s function autocomplete
  • Google Sheets documentation: Unlike Excel, Google Sheets officially lists DATEDIF in its function library
  • Simple subtraction alternative: Basic formulas like =B2-A2 yield identical day counts for calendar calculations
  • Working day exclusion: DATEDIF counts all calendar days; NETWORKDAYS handles business days separately
  • Chronological requirement: Start dates must precede end dates to avoid #NUM! errors
Aspect Detail Example/Note
Non-leap year 365 days 2023 calendar year
Leap year 366 days 2024 includes Feb 29
Basic Excel formula =B2-A2 Direct date subtraction
DATEDIF syntax =DATEDIF(start,end,”D”) Returns total days
Average working days/month ~22 days Excluding weekends
Google Sheets separator Semicolon (;) Some locales require ; instead of ,
Error for reverse dates #NUM! Start date must precede end date
Unit options “D”, “Y”, “M”, “YD”, “YM”, “MD” Various exclusion patterns

Which Online Tool Should You Use to Calculate Days Between Dates

Digital calculators offer immediate results without spreadsheet setup. Several platforms provide specialized interfaces for date difference calculations, automatically handling leap year adjustments and offering business day exclusions.

Precise Date Difference Calculators

timeanddate.com provides a comprehensive duration calculator that processes dates from 1 January 2024 to 31 December 2024 to yield 366 days, correctly identifying leap years. The tool optionally excludes weekends and specific holidays, making it suitable for both calendar and business day calculations.

Quick Reference

Online calculators automatically account for leap years like 2024, eliminating manual verification of February 29. Enter dates in your preferred format (day/month/year or month/day/year) and select whether to include or exclude the end date from the total count.

Spreadsheet-Based Solutions

For users requiring integrated calculations, Google Sheets offers the DATEDIF function with official documentation, while Excel provides the same capability though without autocomplete support. Both platforms handle serial date calculations from the 1900 epoch.

Additional calculation methods are available at Nombre de Jours Entre Deux Dates.

How Many Days Between Specific Dates Like 2024

Specific date ranges reveal how calendar mechanics affect day counts. The year 2024 serves as a prime example, spanning 366 days rather than the standard 365.

Leap Year Calculations

Using DATEDIF with the formula =DATEDIF("1/1/2024", "31/12/2024", "D") returns exactly 366 days, accounting for the intercalary day on February 29. Manual verification confirms this: 365 base days plus one leap day equals 366 total days.

Historical Date Differences

Longer durations demonstrate the function’s reliability across extended periods. Calculating from 5 January 2009 to 20 September 2020 yields 4,276 days using DATEDIF, as documented in video demonstrations. Between 1 March 2024 and 15 June 2024, the function returns 106 days.

How to Calculate Working Days Between Two Dates

Business operations frequently require exclusion of weekends and holidays. Standard day counting includes all seven days of the week, necessitating alternative functions for professional scheduling.

The NETWORKDAYS function specifically addresses this requirement. Using =NETWORKDAYS(start_date, end_date), Excel and Google Sheets calculate only Monday-through-Friday periods. An optional third parameter allows exclusion of specified holiday ranges.

Important Distinction

DATEDIF counts all calendar days indiscriminately. For payroll, project deadlines, or SLA calculations, always use NETWORKDAYS to obtain accurate business day counts.

Common Error

Applying DATEDIF to business day scenarios produces inflated results. A two-week span returns 14 days via DATEDIF but only 10 working days via NETWORKDAYS.

Financial markets and other time-sensitive operations often require precise timing knowledge. For market hours information, consult When Does the Stock Market Open.

Chronological Examples: Days Between Common Date Ranges

  1. 1 January 2024 → 31 December 2024: 366 days (leap year) – Sheets Pratique
  2. 10 June 2020 → 5 August 2020: 56 days – Sheets Pratique
  3. 1 March 2024 → 15 June 2024: 106 days – OuFormer
  4. 5 January 2009 → 20 September 2020: 4,276 days – Video Tutorial
  5. 15 March → 15 April (any year): 31 days
  6. 1 January → 1 January (following year): 365 days (non-leap) or 366 days (leap)

What Is Certain and What Remains Unclear

Established Facts

  • Standard calculation uses direct subtraction of date serial numbers
  • Excel and Google Sheets provide reliable DATEDIF and DAYS functions
  • Leap years add exactly one day (February 29) to affected periods
  • Reverse chronological order (end before start) triggers #NUM! errors

Unclear or Variable

  • Definition of “working days” varies by jurisdiction regarding national holidays
  • Time zone handling for precise timestamp calculations
  • Century leap year rules (divisible by 400) in legacy systems

Where Is Day Counting Used

Human resources departments rely on accurate day counting for tenure calculations, leave entitlement accrual, and contract duration monitoring. Finance teams use these calculations for interest accrual, bond duration measurement, and invoice aging reports. Project managers depend on precise day counts for critical path analysis and milestone scheduling.

Common errors frequently undermine these calculations. Users often forget to account for leap years when spanning February, producing one-day discrepancies in annual calculations. Date format mismatches—particularly between DD/MM/YYYY and MM/DD/YYYY conventions—create significant calculation errors in international contexts.

Power Query offers advanced alternatives for complex ETL processes, using Duration.Days([end] - [start]) to calculate differences during data transformation workflows.

Documentation and Expert Sources

Microsoft’s official support documentation confirms that DATEDIF remains fully supported despite its undocumented status in Excel’s function wizard. The function calculates differences in days, months, or years using various unit parameters.

DATEDIF is not auto-suggested in Excel but remains functional for backwards compatibility, calculating complete years, months, or days between dates.

Microsoft Support

Use semicolons as separators in Google Sheets when your locale settings require this format: =DATEDIF(“10/06/2020”; “05/08/2020”; “D”).

Sheets Pratique

Key Takeaways on Calculating Days Between Dates

Accurate calculation requires selecting the appropriate method for specific contexts. DATEDIF functions effectively for total calendar days including leap year adjustments, while NETWORKDAYS provides business day exclusions. Verified online calculators offer immediate results without spreadsheet setup. Date format verification and chronological order checking prevent calculation errors, particularly when working across international conventions.

Why does Excel show a #NUM! error when calculating days?

This error appears when the start date chronologically follows the end date. DATEDIF requires dates in ascending order.

Can I calculate days using semicolons in Google Sheets?

Yes, certain locales require semicolons as separators instead of commas. Use =DATEDIF(“10/06/2020”; “05/08/2020”; “D”) in these regions.

How do I combine years and remaining days in one formula?

Concatenate two DATEDIF functions: =DATEDIF(A2,B2,”Y”) & ” years and ” & DATEDIF(A2,B2,”YD”) & ” days”.

Does DATEDIF count the end date?

DATEDIF calculates complete periods. For inclusive counting (including both start and end dates), add 1 to the result.

How do I calculate days using Power Query?

Use Duration.Days([end] – [start]) within Power Query transformations for advanced ETL scenarios.

Ethan Benjamin Campbell

About the author

Ethan Benjamin Campbell

Coverage is updated through the day with transparent source checks.