Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default counting hours from cell with time-table.

Is there any function (formula) in excel who gives me opportunity to count
how many hours there is between two pointet hours.
An example: one cell indicate 09.30 - 16.00. In the oder cell I want to
know how many hours there is beetwen
the two hours (answe 6,5).

--
Karl E Austvold


  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3,101
Default counting hours from cell with time-table.

=((D10-INT(D10))*24)-((C10-INT(C10))*24)

Which assumes your 2 times are in cells C10 & D10

"Karl E Austvold" wrote:

Is there any function (formula) in excel who gives me opportunity to count
how many hours there is between two pointet hours.
An example: one cell indicate 09.30 - 16.00. In the oder cell I want to
know how many hours there is beetwen
the two hours (answe 6,5).

--
Karl E Austvold



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,726
Default counting hours from cell with time-table.

=--TEXT(TRIM(MID(A21,FIND("-",A21)+1,99))*100,"00\:00")-TEXT(TRIM(LEFT(A21,FIND("-",A21)-1))*100,"00\:00")

and format as time.

--
HTH

Bob

(change the xxxx to gmail if mailing direct)
"Karl E Austvold" wrote in message
...
Is there any function (formula) in excel who gives me opportunity to count
how many hours there is between two pointet hours.
An example: one cell indicate 09.30 - 16.00. In the oder cell I want to
know how many hours there is beetwen
the two hours (answe 6,5).

--
Karl E Austvold



  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 174
Default counting hours from cell with time-table.

Hell Karl,

Assuming you have 09.30 - 16.00 in cell A1 try this formula, format as number

=MOD(RIGHT(SUBSTITUTE(A1,".",":"),5)-LEFT(SUBSTITUTE(A1,".",":"),5),1)*24



"Bob Phillips" wrote:

=--TEXT(TRIM(MID(A21,FIND("-",A21)+1,99))*100,"00\:00")-TEXT(TRIM(LEFT(A21,FIND("-",A21)-1))*100,"00\:00")

and format as time.

--
HTH

Bob

(change the xxxx to gmail if mailing direct)
"Karl E Austvold" wrote in message
...
Is there any function (formula) in excel who gives me opportunity to count
how many hours there is between two pointet hours.
An example: one cell indicate 09.30 - 16.00. In the oder cell I want to
know how many hours there is beetwen
the two hours (answe 6,5).

--
Karl E Austvold




  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3,718
Default counting hours from cell with time-table.

=(TIME(MID(A1,FIND("-",A1)+2,2),RIGHT(A1,2),0)-TIME(LEFT(A1,2),MID(A1,4,2),))*24

"Karl E Austvold" wrote:

Is there any function (formula) in excel who gives me opportunity to count
how many hours there is between two pointet hours.
An example: one cell indicate 09.30 - 16.00. In the oder cell I want to
know how many hours there is beetwen
the two hours (answe 6,5).

--
Karl E Austvold



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
Lookup Hours from table based on date range... cuervo88 Excel Discussion (Misc queries) 0 November 30th 06 06:09 PM
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
Time sheets Driver Excel Worksheet Functions 5 November 7th 05 11:19 AM
calculate difference in time to hours Chris Excel Worksheet Functions 5 January 18th 05 06:07 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


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