I have an excel sheet that I would like to have totals for employee hours, sorted by the code that is entered.
Example: For employee 1 there are hours on Tuesday and Wednesday that are coded to 02003 - I would like to make a total sheet that has the employee and the number of hours totaled for each code entered on the first sheet.
I do not know why your spreadsheet layout is this, but probably another type of layout would greatly facilitate you working with payroll data.
I assembled the formulas taking into account exactly this layout.
A formula was made and duplicated for the other days of the week.
You may notice that each formula consists of 5 similar parts changing only the interval references.
Perhaps there is a more elegant way to do this formula.
That's the way I got it now.
Wow! That was exactly what I was looking for, thank you!!
My only problem now is trying to transfer this formula to another workbook - I have 3 of these sheets every week, in the same format that I am trying to get this to work in.
I tried to just copy and paste the formula but I cannot get it to work, any advice?
"...I tried to just copy and paste the formula but I cannot get it to work, any advice?..."
Yes!
Possibly when you copy the formula from my example worksheet and paste it into your actual worksheet, the copy is bearing the address of the original worksheet: [16_Fev_2017_Worksheet-OK.xls] This should be the cause of the error.
IF, the other worksheets really have the same layout as the one you sent me to solve, then the CODES tab formula, cell B2 is this:
This is the only original formula. All others will be derived from this.
Try to do:
Simply Copy the above formula;
Paste in ABA CODES cell B2;
Select Cell B2 and Copy;
Select cells B2:H33;
Special Paste --> Formulas.
The magic is done.
Please tell us if it worked for you.
I really hope I have helped you.
--
Belo Horizonte, Brasil.
Marcílio Lobão
My only problem now is trying to transfer this formula to another workbook - I have 3 of these sheets every week, in the same format that I am trying to get this to work in.
I tried to just copy and paste the formula but I cannot get it to work, any advice?
Thank you again! Great work!
Andrea