Jmoz092
Board Regular
- Joined
- Sep 8, 2017
- Messages
- 184
- Office Version
- 365
- 2011
- Platform
- Windows
- MacOS
I've been asked to provide a summary of payroll by department. I have timesheets (workbooks) for each employee, and a summary workbook that looks up data in each of those workbooks. Each worksheet in the Summary workbook is titled as the date of the pay period, and each employee's name is listed in rows. Column K has each employee's gross pay.
I've listed our departments on Sheet12 (named "Departments") as such:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Department
[/TD]
[TD]12-1-17[/TD]
[TD]12-15-17[/TD]
[TD]12-29-17[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]F[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Each Department has a an array of employees listed on Sheet11 (named "Reference") as such:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Dept A[/TD]
[TD]Dept B[/TD]
[TD]Dept C[/TD]
[TD]Dept D[/TD]
[TD]Dept E[/TD]
[TD]Dept F[/TD]
[/TR]
[TR]
[TD]employee1[/TD]
[TD]employee3[/TD]
[TD]employee5[/TD]
[TD]employee7[/TD]
[TD]employee9[/TD]
[TD]employee11[/TD]
[/TR]
[TR]
[TD]employee2[/TD]
[TD]employee4[/TD]
[TD]employee6[/TD]
[TD]employee8[/TD]
[TD]employee10[/TD]
[TD]employee12[/TD]
[/TR]
</tbody>[/TABLE]
Each Department is a named array of rows 2:101 (department name in row 1).
How can I have each department's gross pay displayed in the table on Sheet12 by pay period? Worksheet formulas or VBA solution is ok. I just need to future-proof it so that it can accommodate new employees.
I've listed our departments on Sheet12 (named "Departments") as such:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Department
[/TD]
[TD]12-1-17[/TD]
[TD]12-15-17[/TD]
[TD]12-29-17[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]F[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Each Department has a an array of employees listed on Sheet11 (named "Reference") as such:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Dept A[/TD]
[TD]Dept B[/TD]
[TD]Dept C[/TD]
[TD]Dept D[/TD]
[TD]Dept E[/TD]
[TD]Dept F[/TD]
[/TR]
[TR]
[TD]employee1[/TD]
[TD]employee3[/TD]
[TD]employee5[/TD]
[TD]employee7[/TD]
[TD]employee9[/TD]
[TD]employee11[/TD]
[/TR]
[TR]
[TD]employee2[/TD]
[TD]employee4[/TD]
[TD]employee6[/TD]
[TD]employee8[/TD]
[TD]employee10[/TD]
[TD]employee12[/TD]
[/TR]
</tbody>[/TABLE]
Each Department is a named array of rows 2:101 (department name in row 1).
How can I have each department's gross pay displayed in the table on Sheet12 by pay period? Worksheet formulas or VBA solution is ok. I just need to future-proof it so that it can accommodate new employees.