- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Jan 21, 2025 08:18 AM
Hi there,
I am trying to calculate employee hours worked over 40 within the span of a worked week (Sunday - Saturday) for overtime calculations, and can't figure out what the formula would be for this. I have start dates and times on my sheet already.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Jan 21, 2025 09:31 AM
Conceptualizing this, you need at least two tables, one for shifts and one for employees. In your shifts table you have your shift start/shift end fields and then you add a formula field using DATETIME_DIFF() to calculate the difference between the two (probably in minutes as it only returns whole integers). You could add another formula or write on top to format the minutes into partial hours.
Then you add a rollup field in your employee table summing the hours value, and you can add a date filter inside that field. This format gives you at a glance views of hours totals. If you're desiring longer term record keeping, a third table for pay period may be necessary.
