Forum Discussion
loganak
Mar 22, 2022Copper Contributor
Setting up a "smart" count for a column for overtime
I am trying to set up a totaling function for regular and overtime in a column. Here is the catch: Over time is met at 8 hours a day AND whenever the employee hits 40 hours in a week. I can run a for...
- Mar 22, 2022
Here is a solution that calculates overtime using a custom VBA function. Regular time is calculated as total time - overtime.
Riny_van_Eekelen
Mar 22, 2022Platinum Contributor
loganak Have a look at the attached file. It contains two possible ways to calculate this. Choose the one that works in your Excel version.
loganak
Mar 22, 2022Copper Contributor
Sometimes the best answer is a simple one. I think this will work for what i'm trying to achieve.. my first attempts were multiple nested =IF statements combined with MAX mixed in haha. Thank you for the insight!
- loganakMar 22, 2022Copper Contributormy only caveat; finding that regular time value from a formula. Hand calculating it adds a substantial amount of time to payroll by the number of employees in the company
- HansVogelaarMar 22, 2022MVP
Here is a solution that calculates overtime using a custom VBA function. Regular time is calculated as total time - overtime.
- loganakMar 22, 2022Copper ContributorThat is the one thing I haven't spent much time with. I used to be a matlab guy so I need to learn some more in the VBA side of excel. I really appreciate it!