Timesheet Calculation

patski107

New Member
Joined
Oct 6, 2016
Messages
8
I have inserted a formula and I'm not getting the right answer.

Cell D, F and H have the time I clock-in and E, G, and I when I clock-out. This is the formula I used =((E19-D19)+(G19-F19)+(I19-H19)) so it would be ((8:45-8:00)+(13:00-12:00) +(19:00-17:00)) to equal the hours worked. It should be 3.75 hours but the formula returns .16. I tried removing the outside paren =(E19-D19)+(G19-F19)+(I19-H19) and it didn't make a difference. I thought perhaps I had the order of the cells reversed but that isn't it either.

Pat
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
I have inserted a formula and I'm not getting the right answer.

Cell D, F and H have the time I clock-in and E, G, and I when I clock-out. This is the formula I used =((E19-D19)+(G19-F19)+(I19-H19)) so it would be ((8:45-8:00)+(13:00-12:00) +(19:00-17:00)) to equal the hours worked. It should be 3.75 hours but the formula returns .16. I tried removing the outside paren =(E19-D19)+(G19-F19)+(I19-H19) and it didn't make a difference. I thought perhaps I had the order of the cells reversed but that isn't it either.

Pat


.16 is the numerical equivalent to 3:45. To get 3.75, multiply by 24
 
Upvote 0
Yes. 3.75 is ~16% of one day. That's what the .16 means. Anything after the decimal is a part of a day.
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top