Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Bob is offline
external usenet poster
 
Posts: 972
Default excel 2003 (11.8307.8221) SP3 - custom cell formatting question

Can someone point me in the right direction? I have an excel formatting
problem. The contents of the cells involved are calculated as follows:
cellA contents: "1/15/2010 4:00:00 PM" --- date format "3/14/2001"
cellB contents: "1/13/2010 7:00:00 PM" --- date format "3/14/2001"
cellC contents: "=sum(a1-a2)" --- time format "37:30:55"
--- result displays "45:00:00" which is what I'd expect:
exactly 45 hrs

But I can't figure out how to convert the cellC contents to display the
result in a "#days" format that shows elapsed time as "#days.tenths-of-days".
If I do the calculations manually, it should result in something like "45.0
hours = 1.875 days." I tried changing the cellC formula as follows, thinking
that would get me what I needed:
new cellC contents: "=sum((a1-a2)/24)"

if I use a time format for the cell - "37:30:55" - I get a display of
"1:52:30" ?????

if I use a custom format - "[h].0" - I get a display of "1.00" ?????

Can anyone advise how I can get display of "1.875" or "1.88"?

thanks!!!!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default excel 2003 (11.8307.8221) SP3 - custom cell formatting question

Simply format as GENERAL
--
Mike

When competing hypotheses are equal, adopt the hypothesis that introduces
the fewest assumptions while still sufficiently answering the question.
Occam''s razor (Abbrev)


"Bob" wrote:

Can someone point me in the right direction? I have an excel formatting
problem. The contents of the cells involved are calculated as follows:
cellA contents: "1/15/2010 4:00:00 PM" --- date format "3/14/2001"
cellB contents: "1/13/2010 7:00:00 PM" --- date format "3/14/2001"
cellC contents: "=sum(a1-a2)" --- time format "37:30:55"
--- result displays "45:00:00" which is what I'd expect:
exactly 45 hrs

But I can't figure out how to convert the cellC contents to display the
result in a "#days" format that shows elapsed time as "#days.tenths-of-days".
If I do the calculations manually, it should result in something like "45.0
hours = 1.875 days." I tried changing the cellC formula as follows, thinking
that would get me what I needed:
new cellC contents: "=sum((a1-a2)/24)"

if I use a time format for the cell - "37:30:55" - I get a display of
"1:52:30" ?????

if I use a custom format - "[h].0" - I get a display of "1.00" ?????

Can anyone advise how I can get display of "1.875" or "1.88"?

thanks!!!!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Bob is offline
external usenet poster
 
Posts: 972
Default excel 2003 (11.8307.8221) SP3 - custom cell formatting questio

That did it - THANKS!!!!!!!

"Mike H" wrote:

Simply format as GENERAL
--
Mike

When competing hypotheses are equal, adopt the hypothesis that introduces
the fewest assumptions while still sufficiently answering the question.
Occam''s razor (Abbrev)


"Bob" wrote:

Can someone point me in the right direction? I have an excel formatting
problem. The contents of the cells involved are calculated as follows:
cellA contents: "1/15/2010 4:00:00 PM" --- date format "3/14/2001"
cellB contents: "1/13/2010 7:00:00 PM" --- date format "3/14/2001"
cellC contents: "=sum(a1-a2)" --- time format "37:30:55"
--- result displays "45:00:00" which is what I'd expect:
exactly 45 hrs

But I can't figure out how to convert the cellC contents to display the
result in a "#days" format that shows elapsed time as "#days.tenths-of-days".
If I do the calculations manually, it should result in something like "45.0
hours = 1.875 days." I tried changing the cellC formula as follows, thinking
that would get me what I needed:
new cellC contents: "=sum((a1-a2)/24)"

if I use a time format for the cell - "37:30:55" - I get a display of
"1:52:30" ?????

if I use a custom format - "[h].0" - I get a display of "1.00" ?????

Can anyone advise how I can get display of "1.875" or "1.88"?

thanks!!!!

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
Excel 2003 Conditional formatting challenge question John C. Excel Discussion (Misc queries) 11 November 9th 09 05:11 PM
How do I set a custom header to a cell value in Excel 2003? Siggy Excel Discussion (Misc queries) 3 September 2nd 09 09:01 PM
Conditional Formatting in Excel 2003 question y2a_1984 Excel Discussion (Misc queries) 2 July 17th 09 04:53 AM
Excel 2003 column formatting question FrankSpokane Excel Discussion (Misc queries) 1 May 29th 08 10:38 PM
Why won't excel apply my custom cell formatting? Scott Setting up and Configuration of Excel 1 May 30th 06 07:44 PM


All times are GMT +1. The time now is 05:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"