ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Issues with Time being converted to Date/Time format (https://www.excelbanter.com/excel-programming/384194-issues-time-being-converted-date-time-format.html)

D[_10_]

Issues with Time being converted to Date/Time format
 
Hello all -
I'm hoping someone can help with this. It appears to be a
common problem but I can't seem to find an answer in any of the posts
I've seen. Here is my problem....I'm trying to maintain a spreadsheet
with time values in this format hhhh:mm:ss however, excel
automatically converts this to mm/dd/yyyy hh:mm:ss AM/PM. How can I
simply keep the hhhh:mm:ss format? Here is an example of what I am
trying to accomplish.

I'm looking to keep this format in the cell (and be able to do
calculations) 2455:25:48


The cell shows this format but when I look in the top detail bar it
shows 4/11/1900 7:25:48 AM


Niek Otten

Issues with Time being converted to Date/Time format
 
Don't bother; the value is right. The representation in the formula bar is the number of hours since Jan 1, 1900, but the
underlying value is correct.
If you want to calculate with the number of hours as a number (for example to multiply with an hourly rate); keep in mind that
time in Excel is stored as a fraction of a day, so to get a decimal number of hours multiply by 24.

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"D" wrote in message oups.com...
| Hello all -
| I'm hoping someone can help with this. It appears to be a
| common problem but I can't seem to find an answer in any of the posts
| I've seen. Here is my problem....I'm trying to maintain a spreadsheet
| with time values in this format hhhh:mm:ss however, excel
| automatically converts this to mm/dd/yyyy hh:mm:ss AM/PM. How can I
| simply keep the hhhh:mm:ss format? Here is an example of what I am
| trying to accomplish.
|
| I'm looking to keep this format in the cell (and be able to do
| calculations) 2455:25:48
|
|
| The cell shows this format but when I look in the top detail bar it
| shows 4/11/1900 7:25:48 AM
|




All times are GMT +1. The time now is 02:58 PM.

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