counting hours from cell with time-table.

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).
 
B

Bob Phillips

=--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)
 
T

Teethless mama

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top