counting hours from cell with time-table.

  • Thread starter Thread starter Karl E Austvold
  • Start date Start date
K

Karl E Austvold

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 (answere: 6,5).
 
=--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)
 
Back
Top