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.
Recommended Productivity Tools for Excel
Office Tab: Bring powerful tabs to Office (include Excel), just like Chrome, Safari, Firefox and Internet Explorer. Save you half the time, and reduce thousands of mouse clicks for you. 30-day Unlimited Free Trial
Kutools for Excel: Save 71% of your time and solve 82% Excel problems for you. 300+ advanced tools designed for 1500+ work scenario, make Excel much easy and increase productivity immediately.60-day Unlimited Free Trial
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:
2. Type the time you want to countdown into the formatting cell. See screenshot:
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.
6. And when the countdown is finished, a popped out dialog will remind you.
Tip: You cannot stop the countdown when it is running except closing the workbook.
Recommended Productivity Tools
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
To post as a guest, your comment is unpublished.· 7 months agoNo 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.· 1 years agohi 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.· 1 years agoi 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.· 1 years agoGOOD 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.· 1 years agoTo 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