Excel formula help please

Associate
Joined
9 Jun 2005
Posts
2,207
Location
A Beer Garden in the Toon
Hey all,
I'm finally creating an Excel spreadsheet to keep track of my hours at work but I'm stuck with one of the formula's (formulae sp?)

I want to enter my start time in A1 and my end time in B1 and for C1 to figure out how many hours (in decimal) I have worked. I just cant seem to figure out a formula for it to do this?

If anyone could help I'd love you long time :)

Thanks
 
So long as you don't work night shift, this should give you what you want.

In C1:

=(B1-A1)*24

/edit - slightly more comprehensive, eg if you want to allow for overnight...

=IF((B1-A1)<0, (B1-A1+1)*24, (B1-A1)*24)
 
Last edited:
No probs, I added an edit a minute ago, just incase you need it to work for overnight shifts.

Glad to help :)
 
Back
Top Bottom