ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Statutory Hrs Calculation (https://www.excelbanter.com/excel-worksheet-functions/246787-statutory-hrs-calculation.html)

Accounting Student in BC, Canada

Statutory Hrs Calculation
 

I have a payroll timesheet tracking hours worked, with rows corresponding to
the names of employees and columns corresponding to dates of the pay period
(14 days in each pay period). Each pay period is currently stored as a
separate worksheet, e.g. Oct1 for the first pay period of October, then Oct2,
Nov1, etc.

What I'm trying to do is create a function that would check if there is a
"STAT" word above each date. If yes, then count the nonzero cells in 30 days
preceding the STAT date, and if count is = 15, sum all values in those 30
cells. What is the best way to do it? I thought of combining the worksheets
into one containing 44 days and carrying forward the 44-day cut off as the
first step. Do I need to do that?

Thank you.


All times are GMT +1. The time now is 03:30 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com