Time in 100ths of a minute

zaxsan

New Member
Joined
Sep 7, 2005
Messages
10
I would like to have a clock with the current time in 100ths of a minute.

The cell should look like this:

HH:MM.XX
3:15.87

No seconds in there, just the fraction of the minute. It will keep 'ticking' real time.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hi,

this works for me
=TEXT(FLOOR(A1,1/1440),"UU:MM") &"," & ROUND(SECOND(A1)/0.6,0)
perhaps wait for a formulaguru :)

kind regards,
Erik

EDIT: no need for FLOOR, which was left over from previous experiment
=TEXT(A1,"UU:MM") &"," & ROUND(SECOND(A1)/0.6,0)
 
Upvote 0
Hi
Paste the following codes in the macro window ( Alt F8)

Code:
Sub clock()
For a = 1 To 5
a = Time()
Cells(1, 1).Font.Size = 16
Cells(1, 1).Font.ColorIndex = 3
Cells(1, 1).Font.Bold = True
Cells(1, 1).Interior.ColorIndex = 6
Cells(1, 1) = Hour(a) & ":" & Minute(a) & "." & Round(Second(a) / 60, 2)
PauseTime = 1
    Start = Timer
    Do While Timer < Start + PauseTime
        DoEvents
    Loop
    Next a
End Sub
run the macro.
It displays clock in Cell A1 with seconds as a decimal. I could not eliminate 0 behind the dot. secondly it does not seem to stop ticking though it is supposed to cycle for 5 rounds only. each cycle should last one second. (pause time = 1)
Ravi
 
Upvote 0
Ravishankar.....the Macro works great. I was not sure what you were talking about regarding the 5 rounds. I would like it to continue forever until I disable the macro.

It seams to jump numbers every now and then. It wil go 1,2,4,6,7,8,10,12,...... The time is correct though. I guess my computer is not fast enough to handle the changes that quickly? (P4 1.8)


erik.van.geit

I could not get your formula to work......any sugestions?
 
Upvote 0
sorry,

I missed the automatic part
it asumes you have the "regular" time in cell A1

I've not much time at this moment: having time running in a cell is not the best thing to do. Your UNDO will be disabled. You would better use a textbox. I'm sure there is some code on the board to do that (posted some myself)

best regards,
Erik

(I'll get back here if you want: just add a reply: have to run know)
 
Upvote 0

Forum statistics

Threads
1,215,564
Messages
6,125,581
Members
449,237
Latest member
Chase S

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