Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default 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
|


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
Converting text format of time/date into Excel time/date for subtr YY san.[_2_] Excel Worksheet Functions 6 February 25th 10 08:27 AM
Length of time from date/time custom format Andrew Excel Discussion (Misc queries) 2 September 21st 09 04:20 PM
Extracting time (hr:min) from date/time format lawandgrace Excel Discussion (Misc queries) 4 August 18th 09 05:21 PM
Calculating days & time left from start date/time to end date/time marie Excel Worksheet Functions 7 December 7th 05 02:36 PM
Remove time from a date and time field? Format removes the displa. oaoboc Excel Worksheet Functions 1 February 16th 05 07:20 PM


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