Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Sam Sam is offline
external usenet poster
 
Posts: 3
Default How do I change an integer into hh:mm:ss

Hi,

I have a bunch of number -- integers -- that represent time in seconds. I
need to do some calculations then display results in hh:mm:ss format. How do
I convert integers (seconds) into time values?

For example I have 3600 as a value in cell A1. This is 3600 seconds. The
time value of this would be 1:00:00. I'd appreciate help on this. Thanks.

Sam


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How do I change an integer into hh:mm:ss

put

=24*60*60 (or just enter 86400 in the cell)

in a cell to calculate the number of seconds. Then copy the cell and select
your integers. Do Edit=Paste =special and select Divide

format the "integers" as Time.

Time is stored as a fraction of a 24 hour day. This should convert to a
time value (1/24th of a day)

--
Regards,
Tom Ogilvy



"Sam" wrote in message
...
Hi,

I have a bunch of number -- integers -- that represent time in seconds. I
need to do some calculations then display results in hh:mm:ss format. How

do
I convert integers (seconds) into time values?

For example I have 3600 as a value in cell A1. This is 3600 seconds. The
time value of this would be 1:00:00. I'd appreciate help on this. Thanks.

Sam




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
How do I add an integer to an existing integer? Aaron Excel Worksheet Functions 3 December 17th 09 09:46 PM
integer integer format Excel Worksheet Functions 1 May 3rd 07 06:45 PM
Excel ActiveX Scrollbar - change from integer to decimal Tonette Excel Discussion (Misc queries) 2 October 15th 05 03:41 PM
integer value won't change Steve[_75_] Excel Programming 2 February 16th 05 03:15 AM
Not seeing integer Martin Wheeler Excel Programming 1 September 4th 03 03:29 AM


All times are GMT +1. The time now is 12:19 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"