Convert no. to time

  • Thread starter Thread starter Bhuktar S
  • Start date Start date
B

Bhuktar S

I put a counter on excel VBA form.
The counter updates to new no. by adding 1 per second.
I want to convert this value & display as h:m:s.
How do I do it
 
Either

If the secs are in a1, create formula
=A1/(24*60*60)
in B1, and format it as time.

or

=CONVERT(A1,"sec","day")
in B1, and format it as time.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top