Confused on how to do a formula for my payroll workbook

cricket1001

New Member
Joined
Dec 5, 2011
Messages
12
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I have a payroll workbook that has 26 payroll worksheets and an OT Totals worksheet at the end. I'm trying to figure out a formula in the OT Totals worksheet that will find an employee's last name in each worksheet and total their Reg OT. Last year I just made a formula by going to each worksheet finding the person's name and clicking on the cell for Reg OT. But that was a pain because we have new hires and some employees leave. Which made it difficult to update the formulas each payroll period. I have about 17, and I might need to add more, columns I need to have totals for.

Is there a formula I could use that would find a certain name, like Pat Smith, and find the cell for his Reg Ot in each payroll period's worksheet?

The employees names are in the 1st column. When I add or remove an employee it messes up the cell reference that was in the Reg OT Totals formula.

I hope I am making myself clear.

Thanks for any help!
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Some VBA function can be written to achieve this.
But it is wrong data structure design and bad practice to split data in different sheets for different periods. Best way is to keep all raw data together in one long table with a couple of extra columns (e.g. date/month/year)
Then it becomes simple to make sense of the data for each period and find an easier way to present it - formulas, charts, pivot tables, etc...
 
Last edited:
Upvote 0
Solution

Forum statistics

Threads
1,223,885
Messages
6,175,179
Members
452,615
Latest member
bogeys2birdies

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