ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Time Format (https://www.excelbanter.com/excel-discussion-misc-queries/153941-time-format.html)

Alectrical

Time Format
 
Hi

Can anyone tell me how to change the time format of hh:mm:ss to an integer
number.

Thanks
Alec

David Biddulph[_2_]

Time Format
 
What integer number would you like?

If you want hhmmss, format it as that, or use =TEXT(A1,"hhmmss") if you want
text formatted that way.
If you want a number of seconds, use =A1*24*60*60 (or =A1*86400), and format
the cell as number or general.
--
David Biddulph

"Alectrical" wrote in message
...
Hi

Can anyone tell me how to change the time format of hh:mm:ss to an integer
number.

Thanks
Alec




Alectrical

Time Format
 
Thanks David, that works a treat



"David Biddulph" wrote:

What integer number would you like?

If you want hhmmss, format it as that, or use =TEXT(A1,"hhmmss") if you want
text formatted that way.
If you want a number of seconds, use =A1*24*60*60 (or =A1*86400), and format
the cell as number or general.
--
David Biddulph

"Alectrical" wrote in message
...
Hi

Can anyone tell me how to change the time format of hh:mm:ss to an integer
number.

Thanks
Alec






All times are GMT +1. The time now is 06:51 AM.

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