Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default How do I calculate duration entered in HH:MM-HH:MM format

In Excel 2003, is it possible to calculate time duration when a single cell
has a time range of HH:MM-HH:MM (ex. 10:30-14:30)? I know its possible to do
so when comparing data from different cells, but I'm having trouble doing so
when both times are in a single cell - trying to pull report data from a file
export, having the times in 2 cells isn't an option.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default How do I calculate duration entered in HH:MM-HH:MM format

hi
something like this might work
=RIGHT(E2,5)-LEFT(E2,5)
but each time would have to have 5 characters
9:30 - 9:45 would need to modify the formula to =RIGHT(E2,4)-LEFT(E2,4)
but 09:30 - 09:45 would work with the 5 character formula.

regards
FSt1

"JW73" wrote:

In Excel 2003, is it possible to calculate time duration when a single cell
has a time range of HH:MM-HH:MM (ex. 10:30-14:30)? I know its possible to do
so when comparing data from different cells, but I'm having trouble doing so
when both times are in a single cell - trying to pull report data from a file
export, having the times in 2 cells isn't an option.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default How do I calculate duration entered in HH:MM-HH:MM format

Thanks - that worked, together with reformatting the destination cell with a
special format to only show hour - standard format was converting it to 0.37
or so for an 8.5 hour period, hh:mm or hh.mm was showing 8:30 or 8.30 - looks
like I'd have to add in a formula conversion to change any .3 to a .5 to get
it into a real decimel format - working on converting time sheet data into a
reporting matrix, just about have the details worked out now.

"FSt1" wrote:

hi
something like this might work
=RIGHT(E2,5)-LEFT(E2,5)
but each time would have to have 5 characters
9:30 - 9:45 would need to modify the formula to =RIGHT(E2,4)-LEFT(E2,4)
but 09:30 - 09:45 would work with the 5 character formula.

regards
FSt1

"JW73" wrote:

In Excel 2003, is it possible to calculate time duration when a single cell
has a time range of HH:MM-HH:MM (ex. 10:30-14:30)? I know its possible to do
so when comparing data from different cells, but I'm having trouble doing so
when both times are in a single cell - trying to pull report data from a file
export, having the times in 2 cells isn't an option.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default How do I calculate duration entered in HH:MM-HH:MM format

If you want the answer in hours just multiply by 24, i.e.:

=(RIGHT(E2,5)-LEFT(E2,5))*24

Format the cell as number or general.

Hope this helps.

Pete

On Apr 30, 4:14*am, JW73 wrote:
Thanks - that worked, together with reformatting the destination cell with a
special format to only show hour - standard format was converting it to 0.37
or so for an 8.5 hour period, hh:mm or hh.mm was showing 8:30 or 8.30 - looks
like I'd have to add in a formula conversion to change any .3 to a .5 to get
it into a real decimel format - working on converting time sheet data into a
reporting matrix, just about have the details worked out now.



"FSt1" wrote:
hi
something like this might work
=RIGHT(E2,5)-LEFT(E2,5)
but each time would have to have 5 characters
9:30 - 9:45 would need to modify the formula to =RIGHT(E2,4)-LEFT(E2,4)
but 09:30 - 09:45 would work with the 5 character formula.


regards
FSt1


"JW73" wrote:


In Excel 2003, is it possible to calculate time duration when a single cell
has a time range of HH:MM-HH:MM (ex. 10:30-14:30)? I know its possible to do
so when comparing data from different cells, but I'm having trouble doing so
when both times are in a single cell - trying to pull report data from a file
export, having the times in 2 cells isn't an option.- Hide quoted text -


- Show quoted text -


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
Calculate duration day +1 vezerid Excel Worksheet Functions 1 May 23rd 07 07:29 PM
Calculate duration day +1 vezerid Excel Worksheet Functions 0 May 23rd 07 05:03 PM
Calculate duration day +1 Marc S. Excel Worksheet Functions 2 May 23rd 07 03:27 PM
Calculate duration in Excel 2000 Babette Excel Worksheet Functions 1 November 22nd 05 11:21 PM
Calculate Duration. Art Excel Discussion (Misc queries) 6 September 5th 05 01:03 AM


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