View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.newusers
daddylonglegs daddylonglegs is offline
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