Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jeff
 
Posts: n/a
Default How to compute duration in excel

Hi may I know why we could compute a duration in # of Day, Hours and Minutes.
For example, column 1 is Date 2005/09/22 and Column 2 is Time 10:20:15.
Assuming now is 2005/09/23 and Time 06:14:30. How do I make use of excel
function to get value 0 Days 19 Hrs 54 mins in column 3 ?
Thanks.
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Subtract the former from the later and format the result as date and time.

--
HTH

Bob Phillips

"Jeff" wrote in message
...
Hi may I know why we could compute a duration in # of Day, Hours and

Minutes.
For example, column 1 is Date 2005/09/22 and Column 2 is Time 10:20:15.
Assuming now is 2005/09/23 and Time 06:14:30. How do I make use of excel
function to get value 0 Days 19 Hrs 54 mins in column 3 ?
Thanks.



  #3   Report Post  
Myrna Larson
 
Posts: n/a
Default

Hi, Bob:

Just a caveat: I assume you mean a format like d hh:mm. This won't work if the
time span is greater than 31 days: in the custom format you can't specify [d]
for the days, so 31 would be followed by 1 rather than 32.

Myrna Larson



On Fri, 23 Sep 2005 09:11:44 +0100, "Bob Phillips"
wrote:

Subtract the former from the later and format the result as date and time.

  #4   Report Post  
Jeff
 
Posts: n/a
Default

Bob,

What if there is no current date/time column in excel. Is there a specially
formula such as '%DATE-A1' tabulate in column 3 ?

Rgds..Jeff

"Bob Phillips" wrote:

Subtract the former from the later and format the result as date and time.

--
HTH

Bob Phillips

"Jeff" wrote in message
...
Hi may I know why we could compute a duration in # of Day, Hours and

Minutes.
For example, column 1 is Date 2005/09/22 and Column 2 is Time 10:20:15.
Assuming now is 2005/09/23 and Time 06:14:30. How do I make use of excel
function to get value 0 Days 19 Hrs 54 mins in column 3 ?
Thanks.




  #5   Report Post  
Dave Peterson
 
Posts: n/a
Default

Excel has =today() for today's date and =now() for the current date/time.

So you could use:
=today()-a1
(formatted as general)

Remember that those functions get updated--they're not static.

Jeff wrote:

Bob,

What if there is no current date/time column in excel. Is there a specially
formula such as '%DATE-A1' tabulate in column 3 ?

Rgds..Jeff

"Bob Phillips" wrote:

Subtract the former from the later and format the result as date and time.

--
HTH

Bob Phillips

"Jeff" wrote in message
...
Hi may I know why we could compute a duration in # of Day, Hours and

Minutes.
For example, column 1 is Date 2005/09/22 and Column 2 is Time 10:20:15.
Assuming now is 2005/09/23 and Time 06:14:30. How do I make use of excel
function to get value 0 Days 19 Hrs 54 mins in column 3 ?
Thanks.





--

Dave Peterson


  #6   Report Post  
Jeff
 
Posts: n/a
Default

Thanks Dave. It's helpful.

"Dave Peterson" wrote:

Excel has =today() for today's date and =now() for the current date/time.

So you could use:
=today()-a1
(formatted as general)

Remember that those functions get updated--they're not static.

Jeff wrote:

Bob,

What if there is no current date/time column in excel. Is there a specially
formula such as '%DATE-A1' tabulate in column 3 ?

Rgds..Jeff

"Bob Phillips" wrote:

Subtract the former from the later and format the result as date and time.

--
HTH

Bob Phillips

"Jeff" wrote in message
...
Hi may I know why we could compute a duration in # of Day, Hours and
Minutes.
For example, column 1 is Date 2005/09/22 and Column 2 is Time 10:20:15.
Assuming now is 2005/09/23 and Time 06:14:30. How do I make use of excel
function to get value 0 Days 19 Hrs 54 mins in column 3 ?
Thanks.




--

Dave Peterson

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 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Excel Range Value issue (Excel 97 Vs Excel 2003) Keeno Excel Discussion (Misc queries) 2 June 13th 05 02:01 PM
Stop Excel Rounding Dates leinad512 Excel Discussion (Misc queries) 1 April 20th 05 04:19 PM
Hints And Tips For New Posters In The Excel Newsgroups Gary Brown Excel Worksheet Functions 0 April 15th 05 05:47 PM
Difference in number of Excel NewsGroups Hari Prasadh Excel Discussion (Misc queries) 1 January 25th 05 11:32 AM


All times are GMT +1. The time now is 05:07 AM.

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"