Countdown to a Date & Time

Excel Formulas › Date & Time

All versionsNOW

How long until launch? Subtract NOW() from a target date-time and you get the gap as a fraction of days — then split it into days, hours, and minutes for a live countdown.


Quick formula: for a target date-time in B1:
=INT(B1-NOW()) & "d " & TEXT(B1-NOW(), "h\h m\m")
B1−NOW() is the gap in days; INT takes the whole days and TEXT formats the leftover as hours and minutes.

Functions used (tap for the full reference guide):

The example

Counting down to a target moment.

AB
1Target7/1/2026 9:00 AM
2Now6/17/2026 2:30 PM
3Remaining13d 18h 30m

The formula

Days, hours, and minutes remaining:

=INT(B1-NOW()) & "d " & TEXT(B1-NOW(), "h\h m\m") // → 13d 18h 30m

How it works

It’s all built on date arithmetic:

  1. Dates and times are numbers — whole part = days, fractional part = time of day. So B1−NOW() is the gap measured in days.
  2. INT(…) grabs the whole days.
  3. TEXT(gap, "h\h m\m") formats the leftover fraction as hours and minutes — the backslashes make the letters literal.
  4. Because it uses NOW(), the countdown updates whenever the sheet recalculates (press F9 or on any edit).

Whole days only? If you don’t need the clock, =INT(B1) - TODAY() gives a clean “days remaining” count that won’t shift through the day.

Try it: interactive demo

Live demo

Pick a target date and time.

Remaining:

Variations

Whole days only

Stable day count, ignores time:

=INT(B1) - TODAY()

Total hours remaining

Multiply the day-gap by 24:

=(B1-NOW())*24

Past-due check

Flag if the target has passed:

=IF(NOW()>B1, "Overdue", "Upcoming")

Pitfalls & errors

NOW() is volatile. It recalculates on every change and on F9, so the countdown shifts constantly — expected for a live timer, but it makes the workbook recalc more often.

Negative when past. Once the target passes, the gap goes negative and TEXT formatting looks wrong. Wrap with an IF to show “Overdue”.

Escape the letters. In the TEXT format, h and m are codes; use \h and \m (or quotes) to show literal “h” and “m” labels.

Practice workbook

📊
Download the free Countdown to a Date & Time practice workbook
A live countdown with the days-only, total-hours, and overdue variants, plus 4 challenges with answers. No sign-up required.

Frequently asked questions

How do I make a countdown timer in Excel?
Subtract NOW() from the target date-time: =INT(B1-NOW())&"d "&TEXT(B1-NOW(),"h\h m\m") shows days, hours, and minutes remaining and updates on recalc.
How do I count just the days until a date?
Use =INT(B1)-TODAY() for a stable whole-day count that ignores the time of day.
How do I flag when the target has passed?
Wrap it in IF: =IF(NOW()>B1,"Overdue","Upcoming").

Stop fighting formulas. Learn them in a day.

This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related formulas: Days until a date · Time difference · Exact age (y/m/d)

Function references: NOW · INT