Can you put a running clock into excel?

nightracer

Board Regular
Joined
May 17, 2004
Messages
147
Office Version
  1. 365
Hi all

I have a process that is due to start at say 3.00pm and I need to be able to show the elapsed time that the process has been running.

I've used the formula =NOW()-"15:00:00" which gives me the answer but it only updates when you hit return or enter text.

Is there a way to display a running clock/stopwatch?
 
Better way to do clock is:
Sub cloc()
While True
DoEvents
Sheet1.Range("A1") = Now()
Wend
End Sub
 
Upvote 0

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
=now() gives you,say, 15:21:39.59 (hh:mm:ss.00 ) so put this in a macro and paste special values to cells(1,1)

repeat with second macro using cells(1,2)

macro 1 is your start macro 2 your stop so attach them to 2 buttons labelled start and stop
 
Upvote 0
Hi everybody. I just joined your forum and I am excited now that I can add this running clock in Excel. For some reason of a system I am using allocating info to a call centre, I need to add 15 minutes to my clock for data entering before the password expires. What I need to do is to add 15 minutes to this running clock discussed above. Can you please help to add that to you macro above? Much appreciated!
 
Upvote 0
Please help. This works perfect except I need to change this line:
ws.Range("C4").Value = Format(Time, "hh:mm:ss AM/PM")
to 24 hour format. "HH:mm:ss ????" what do I insert after the hour format?

 
Upvote 0

Forum statistics

Threads
1,214,584
Messages
6,120,385
Members
448,956
Latest member
JPav

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top