Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Convert no. to time


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

--
Bhuktar
-----------------------------------------------------------------------
Bhuktar S's Profile: http://www.excelforum.com/member.php...nfo&userid=234
View this thread: http://www.excelforum.com/showthread.php?threadid=26454

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Convert no. to time

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.

--

HTH

RP

"Bhuktar S" wrote in message
...

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?


--
Bhuktar S
------------------------------------------------------------------------
Bhuktar S's Profile:

http://www.excelforum.com/member.php...fo&userid=2343
View this thread: http://www.excelforum.com/showthread...hreadid=264544



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert time stored as decimalised number to time format Emma New Users to Excel 1 April 29th 08 03:06 PM
convert from percentage of time to time using complex formula in . Nush Excel Worksheet Functions 2 October 4th 07 05:20 PM
In Excel, I want to convert Eastern time to pacific time dmunhall Excel Discussion (Misc queries) 4 April 1st 06 01:03 AM
convert time imported as text to time format for calculations batfish Excel Worksheet Functions 3 October 27th 05 11:24 PM
convert decimal number to time : convert 1,59 (minutes, dec) to m agenda9533 Excel Discussion (Misc queries) 8 January 20th 05 10:24 PM


All times are GMT +1. The time now is 10:50 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"