Formulyo

Excel + Google Sheets · DAYS

Days between two dates

Returns the number of days between two dates. End date first.

The formula

=DAYS(B2, A2)

What each part means

Example

Before
ABC
1StartEndDays
22026-11-022026-12-01
32026-11-102026-11-30
42027-01-012027-03-01
After
ABC
1StartEndDays
22026-11-022026-12-0129
32026-11-102026-11-3020
42027-01-012027-03-0159

Step by step

  1. Click cell C2.
  2. Type the formula: =DAYS(B2, A2)
  3. Press Enter.
  4. Drag the small square in the bottom-right corner of the cell down to copy it to the other rows.

Where it works

The same formula in other languages

Get 1 formula a day, free

Plus a free weekly planner template for Excel and Google Sheets. Unsubscribe in 1 click.

✓ Done! Check your inbox to confirm.

Want ready-made templates? See the Formulyo pack →

Keep learning