No votes yet

Days count between dates

The days count between dates is later minus earlier: a whole number of midnights crossed. That count of days between dates is not a month count and not a work-day count unless you say so.

Time By Online Alarm Clock

how many days in between two dates

A count of days between dates is a number you can report, check, and put in a cell. It is not a feeling that “it has been about three months.” From the 10th to the 20th the ordinary count is 10. Inclusive dates in that same window number 11. Pick one convention and keep it next to the number, because a bare “10” does not say which convention produced it.

Count days between dates the same way for a long span as for a short one. Crossing a year boundary does not change the method. Crossing a leap day does change the total by one compared with a year that has no February 29 in the window. The count still comes from the two dates, not from multiplying months by thirty.

When someone asks for the count of days between dates, ask whether nights, weekdays, or elapsed 24-hour periods are what they meant. Those are neighboring numbers. They are not the same number. A date has no clock time. Two consecutive dates are one day apart on the calendar even if a clock change made the local night shorter or longer.

Ordinary count: subtract dates. Start is out, end is the day you land on. Inclusive count: subtract, then add one, so both printed dates belong to the range. Weekday count: drop Saturday and Sunday after you have the date list or an equivalent week method.

Business-day count: drop the weekend and then drop the holidays that apply to that workplace or country.

Count days between dates in Excel

Excel stores a date as a serial number, so a cell that looks like a date is already something you can subtract. To count days between dates in Excel, put the start in one cell and the end in another, then subtract the start from the end. If A2 holds the earlier date and B2 the later date, B2-A2 is the ordinary days count. Format the result as a number, not as a date, or Excel may display a date that is not what you meant.

The DAYS function does the same job with named arguments: DAYS of the later date minus the earlier date. DATEDIF with the unit "d" also returns a whole-day count from start to end. Those three routes — subtraction, DAYS, and DATEDIF with "d" — are three spellings of the same calendar difference. They do not include both endpoints unless you add one yourself.

An Excel count days between dates that uses NETWORKDAYS is no longer a calendar count. NETWORKDAYS counts work days. Use it only when the question is work days. A holidays list, if you pass one, must be the list that actually applies. Excel will not invent your public holidays.

A spreadsheet will count what you typed. It will not notice that you meant “through Friday” while the formula meant “until Friday.”

What the count refuses to mean

The days count is not age in years. Age in completed years waits for a birthday, and a year is 365 or 366 days. The count is not “how many months” either. Months differ in length, so 90 days is not three months on a calendar, and three calendar months is not always 90 days.

If you need weeks, divide the day count by seven and keep the remainder as days. If you need a signed result, do not take the absolute value until you know direction does not matter. A count of minus three days is a real answer when the end date is earlier than the start.

Questions and answers

How do I count days between dates in Excel?
Subtract the start cell from the end cell, or use DAYS, or DATEDIF with "d". Format the result as a number.
Is the Excel count inclusive?
Subtraction, DAYS, and DATEDIF with "d" omit the start date. Add one if both dates should count.
Can I count work days with the same formula?
Use NETWORKDAYS or a weekday method. Weekend and holiday rules are extra steps, not a different format of the same cell.

Related guides

Calendar

10 year anniversary

A 10 year anniversary is the same month and day ten civil years after the original date. If that day does not exist in the later year, pick 28 February or 1 March and say which.

Calendar

10000 days

10,000 days is a little more than 27 years: 27 × 365 = 9,855 days, so 145 days remain if you ignore leap days.

Calendar

107 days

107 days is a span of 107 midnights on the civil calendar: 15 weeks and 2 days. From Thursday 3 September 2026 that span ends on Saturday 19 December 2026.

All guides

All pages