DAYS Function

DAYS Function

DAYS Function

Calculate the number of calendar days between two dates. DAYS is useful when you need a straight day count without removing weekends or holidays.

ExcelClash Team
PUBLISHED

Summary

The DAYS function returns the number of calendar days between two dates. It gives you a straight day difference, so weekends and holidays still count like any other day.

This makes DAYS useful when you want elapsed time in the simplest sense. Shipping time, storage fees, countdowns, and calendar-based thresholds are all common examples.

Purpose

Count calendar days between two dates

Use DAYS when you need the raw day gap and do not want business-day rules.

Return Value

A whole-number day difference

Positive results usually mean the end date is later. Negative results mean the order is reversed.

Syntax

=DAYS(end_date, start_date)

DAYS takes the end date first and the start date second. That order is easy to mix up, especially if you are used to subtracting cells directly.

If both values are valid Excel dates, DAYS returns the difference in whole calendar days. It does not remove Saturdays, Sundays, or holidays.

Arguments

  • end_date - The date you want to count up to.
  • start_date - The date you want to count from.

If either input is not recognized as a real date, Excel can return an error.

DAYS vs Other Date Differences

DAYS is only one way to measure time between dates. The right choice depends on what kind of day count you need.

Function What It Counts Best For Example
DAYS Calendar days Simple elapsed time between two dates =DAYS(B2,B1)
NETWORKDAYS Working days Schedules and lead times that exclude weekends =NETWORKDAYS(B1,B2)
DATEDIF Completed units Ages, tenures, and full months or years =DATEDIF(B1,B2,"d")
B2-B1 Raw serial difference Quick date math when both cells already contain real dates =B2-B1

A simple way to think about it is this: use DAYS when you want the calendar gap and want the formula to say that intention clearly.

Using DAYS

One common use for DAYS is any report where every day matters equally. If an item sat in storage for 12 days, or a deadline is 5 days away, DAYS gives you that number directly.

It also helps when you want a clearer formula than plain subtraction. A formula like =DAYS(B2,B1) is a little easier to read later because it immediately tells you that the calculation is about dates.

  • Use DAYS for countdowns and elapsed calendar time.
  • Use it when weekends should still be included in the result.
  • Reverse the arguments on purpose only if you want to allow negative results.

That negative result can actually be useful. It tells you a target date has already passed instead of hiding that situation behind a positive number.

Example 1 - Count the Days Between Two Dates

This is the basic use of DAYS: count the calendar gap between a start date and an end date.

=DAYS(B2, B1)

If B1 is January 1 and B2 is January 15, the result is 14.

Check Answer
Challenge #1
Target: Sheet1!F1
Count Calendar Days

Calculate the number of days between Jan 1 in B1 and Jan 15 in B2. Remember that DAYS uses end date first. Formula: =DAYS(B2,B1).

Example 2 - Count Down from Today

DAYS also works well with TODAY() when you want a live countdown.

=DAYS(B2, TODAY())

This updates automatically whenever the workbook recalculates.

Check Answer
Challenge #2
Target: Sheet1!F2
Countdown from Today

Calculate how many calendar days remain until Jan 15 in B2. Formula: =DAYS(B2,TODAY()).

Example 3 - Reverse the Order on Purpose

If you flip the arguments, the result changes sign. That is useful when overdue items should show as negative numbers.

=DAYS(B1, B2)

A negative result means the first date is earlier than the second date.

Check Answer
Challenge #3
Target: Sheet1!F3
Check a Threshold

Test whether the gap between B1 and B2 is more than 30 days. Formula: =DAYS(B2,B1)>30.

Example 4 - Use the Result in Another Calculation

Because the result is numeric, you can plug it straight into rate-based formulas.

=DAYS(B2, B1) * 150

This is a simple pattern for storage fees, penalties, or daily charges.

Check Answer
Challenge #4
Target: Sheet1!F4
Multiply by a Daily Rate

Multiply the day count between B1 and B2 by 150. Formula: =DAYS(B2,B1)*150.

Conclusion Recap

DAYS is a good fit when you need the plain calendar difference between two dates and nothing more. It stays simple, readable, and easy to reuse in larger formulas.

  • Core job: DAYS returns the number of calendar days between two dates.
  • Main rule: The function uses end date first, then start date.
  • Key difference: It does not remove weekends or holidays.
  • Useful signal: Negative results can show that a deadline has already passed.
  • Practical use: It works well in countdowns, storage math, and elapsed-time checks.
Tactical Arena
Select Scenario:
Share DAYS Function!

Tell your friends about this post

Discussion

ExcelClash is an interactive platform designed to level up your Excel skills through real-world exercises and challenges. Sharpen your logic, solve real spreadsheet problems, and learn faster.

© 2026 ExcelClash, Inc. All rights reserved.