Can you be more specific what you want? Do you wanna calculate the difference between 13:30 til 17:00 so that the answer will be 3 hours or 3:30? Or am I thinking all wrong?
Use one of
=B2-A2 [1]
=MOD(B2-A2,1) [2]
The first will suffice if start and end times fall in the same day. If these "work" times spans midnight.
Custom format the cell where you compute elapsed time as [h]:mm.
Aladin
=========
Hello Johnny, I want the number of hours to result in 3,5 and then I want to multiply it in another formula with another number.Thanks for your reply.
If you put 13:30 in cell A1 and 17:00 in B1 and the number you wanna multiply it with in C1 then put in the cell you want the answer to this formula for example cell D1 the following formula:
=B1-A1*C1