Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Lynda S
 
Posts: n/a
Default formula to calulate length of time

I need to create a formula that displays the length of stay between to dates
in a cell. For example the length of time between date 1 = 2006/01/06 12:30
pm and date 2 = 2006/01/13 10:30 am. What is the time frame here in hours.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Niek Otten
 
Posts: n/a
Default formula to calulate length of time

=A2-A1
FormatCells, Number tab, Custom. In the Type box, enter [h]
in your case the result is 166 hours

--
Kind regards,

Niek Otten

"Lynda S" <Lynda wrote in message
...
I need to create a formula that displays the length of stay between to
dates
in a cell. For example the length of time between date 1 = 2006/01/06
12:30
pm and date 2 = 2006/01/13 10:30 am. What is the time frame here in
hours.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sloth
 
Posts: n/a
Default formula to calulate length of time

=24(A2-A1)

format as a number.

"Lynda S" wrote:

I need to create a formula that displays the length of stay between to dates
in a cell. For example the length of time between date 1 = 2006/01/06 12:30
pm and date 2 = 2006/01/13 10:30 am. What is the time frame here in hours.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Lynda S
 
Posts: n/a
Default formula to calulate length of time

Thank you very much. This is exactly what l was looking for

Lynda S

"Lynda S" wrote:

I need to create a formula that displays the length of stay between to dates
in a cell. For example the length of time between date 1 = 2006/01/06 12:30
pm and date 2 = 2006/01/13 10:30 am. What is the time frame here in hours.

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
Formula is entering a default time when it comes across an empty cell.. Howie Excel Worksheet Functions 10 November 16th 05 11:34 AM
How can I correct this Time formula John Excel Worksheet Functions 11 November 4th 05 03:57 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
time formula question... Greg Excel Discussion (Misc queries) 5 February 25th 05 10:11 AM
Time / Formula to look at time difference carl Excel Worksheet Functions 5 November 8th 04 06:59 PM


All times are GMT +1. The time now is 02:49 AM.

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"