ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   converting number to time (https://www.excelbanter.com/excel-discussion-misc-queries/106277-converting-number-time.html)

bourbon84

converting number to time
 
I have a column of numbers, ranging from 0 to 4000 seconds; A1 is 0, A2 is 1,
A3 is 2, etc. How do I convert that column to represent time, where 0 seconds
is 00:00:00, 1 second is 00:00:01, 2 seconds is 00:00:02, and 60 seconds is
00:01:00, etc.? Thanks.

Harald Staff

converting number to time
 
In B1:
=TIME(0,0,A1)
fill down.

Or the brutal way if you can't spare the B column: Enter
86400
in an empty cell (=the amount of seconds in a day, if you include the
night). Copy that cell. Select your A cells. Go menu Edit Paste special,
check Divide, OK. Format the cells as time.

HTH. Best wishes Harald

"bourbon84" skrev i melding
...
I have a column of numbers, ranging from 0 to 4000 seconds; A1 is 0, A2 is

1,
A3 is 2, etc. How do I convert that column to represent time, where 0

seconds
is 00:00:00, 1 second is 00:00:01, 2 seconds is 00:00:02, and 60 seconds

is
00:01:00, etc.? Thanks.




scottfoxall

converting number to time
 
Format the column as TIME (00:00:00)
Do: Select Column header and right click, format cells,time, 00:00:00

Then in the time cells simply type =A#
Where # is your data range

Works in some of my spreadsheets

"bourbon84" wrote:

I have a column of numbers, ranging from 0 to 4000 seconds; A1 is 0, A2 is 1,
A3 is 2, etc. How do I convert that column to represent time, where 0 seconds
is 00:00:00, 1 second is 00:00:01, 2 seconds is 00:00:02, and 60 seconds is
00:01:00, etc.? Thanks.


scottfoxall

converting number to time
 
Sorry, on checking my sheets I see a constant of 86400

correction, Type =A#/86400


"bourbon84" wrote:

I have a column of numbers, ranging from 0 to 4000 seconds; A1 is 0, A2 is 1,
A3 is 2, etc. How do I convert that column to represent time, where 0 seconds
is 00:00:00, 1 second is 00:00:01, 2 seconds is 00:00:02, and 60 seconds is
00:01:00, etc.? Thanks.



All times are GMT +1. The time now is 01:28 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com