Writing formulas for time sheets

Cristal

New Member
Joined
Mar 3, 2014
Messages
5
I am currently trying to adjust a formula for our time sheets. The current formula takes into account when a person works over 8 hours to consider that "banked" time (comp time). I now have an employee that will be working 8 hours one day a week and 6 hours the other 4 days. The current formula I am using to account for the days over 8 hours is as follows:

=SUM(IF(M6:M10>"08:00"+0,M6:M10-"08:00"))+SUM(IF(M16:M20>"08:00"+0,M16:M20-"08:00"))+M4+M5+M14+M15

I thought I could change the values for those already in use and make additional for the new as such:

=SUM(IF(M6>"08:00"+0,M6-"08:00"))+SUM(IF(M7:M10>"06:00"+0,M7:M10-"06:00"))+SUM(IF(M16>"08:00"+0,M16-08:00"))+SUM(IF(M17:M20>"06:00"+0,M17:M20-"06:00"))+M4+M5+M14+M15

However, this is not working. How would I write the correct formula for this person?


THANK YOU! Cristal
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,214,952
Messages
6,122,458
Members
449,085
Latest member
ExcelError

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