Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to insert countdown timer in Excel?

If you want to handle with some data in a limited time, you can insert a countdown timer in your data worksheet, and when finish the time countdown, there will be a popped out dialog to remind you. Here I will tell you a VBA code to insert a countdown timer in Excel.

Insert countdown timer in Excel


arrow blue right bubble Insert countdown timer in Excel


In Excel, it cannot countdown time, but you can copy the follow VBA code to help counting down the time.

1. Select a cell and format it as time formatting by right clicking at the cell and selecting Format Cells, then in the dialog, clicking Time and selecting 13:30:55 in the Type list, at last clicking OK to exit this dialog. See screenshot:

doc-countdown-timer-1
doc-arrow
doc-countdown-timer-2

2. Type the time you want to countdown into the formatting cell. See screenshot:

doc-countdown-timer-5

3. Press Alt + F11 keys to open Microsoft Visual Basic for Applications window.

4. Click Insert > Module and then copy following VBA into the new window.

VBA: Countdown timer.

Dim gCount As Date
'Updateby20140925
Sub Timer()
    gCount = Now + TimeValue("00:00:01")
    Application.OnTime gCount, "ResetTime"
End Sub
Sub ResetTime()
Dim xRng As Range
Set xRng = Application.ActiveSheet.Range("E1")
xRng.Value = xRng.Value - TimeSerial(0, 0, 1)
If xRng.Value <= 0 Then
    MsgBox "Countdown complete."
    Exit Sub
End If
Call Timer
End Sub

Tip: E1 in the above code indicates the time cell you type in the step 2.

5. Click Run button or press F5 to run the countdown timer. Now the time is counted down.

doc-countdown-timer-3

6. And when the countdown is finished, a popped out dialog will remind you.

doc-countdown-timer-4

Tip: You cannot stop the countdown when it is running except closing the workbook.


Recommended Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 71%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 82% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Monika · 7 months ago
    No entiendo cómo tengo que solucionar para que el cronómetro mno se pare cuando introduzco un valor. Si se para al trabajar en el excel, para que quiero un cronómetro y paraquesirve el boton parar? Gracias
  • To post as a guest, your comment is unpublished.
    thea · 1 years ago
    hi the timer is running now. the problem is it stops automatically when using other workbooks. how can i keep it running?
  • To post as a guest, your comment is unpublished.
    viraj · 1 years ago
    i want to get about 100 down time readings to my excel sheet.please help me. impossible to write the codes for i2c circuit. i don't want led display. plz help me
  • To post as a guest, your comment is unpublished.
    melvin · 1 years ago
    GOOD DAY GUYS
    Please a i need to create a timer on my Excel sheet in form that it will be a count down to a particular for example 45 days every 5 days it give a reminder on the sheet with a specific color for each countdown. i need it asap.

  • To post as a guest, your comment is unpublished.
    Martin S · 1 years ago
    To stop the timer when you enter values into certain cells, you would use "Worksheet_Change", just include the range you want to listen to, you'll also need to create a global boolean so when you change anything within a cell range, it would set this boolean to false, so the next time it jumps into the "Time" sub procedure, it would instead check to see if the boolean is false, if you add "If TimerActive = False Then Exit Sub", at the beginning of the "Timer" sub, it will exit if that boolean returns false.




    Then inside "Worksheet_Change" you will want to add "TimerActive = True" at the beginning of the code, and something like the following code anywhere.

    If Not Intersect(Target, Range("B2:C57")) Is Nothing Then
    TimerActive = False
    End If