I have 2 spreadsheets where one provides me with total hours for each member of staff while the other gives me the split of the same hours i.e. Ash worked 15 hours while the other confirms 6 hrs regular, 2 hours standard, 4 hours overtime, 2.5 hours travel, 0.5 hours unpaid. The first sheet provides a monthly total and the 2nd sheet gives a daily breakup (example attached - Sheet A).
I want to be able to SUM all the daily hours for each person using multiple criteria - year, month, employee number to bring back each of the types of hours (Regular, Standard, Overtime, Travel, and Unpaid). I cannot use the persons name as we have multiple staff who have the same name so I have been using their unique employee number instead.
I have put the sample data through a pivot table to get the monthly totals in the test sheet but need to pull this through to a new workbook (lets just call it Sheet B).
What is the best solution? Should I use the pivot table data and then pull the date over to a new spreadsheet using GETPIVOTDATA? If so what is the best way to do so as it needs to be handle a large number of staff members and multiple criteria so needs to be dynamic? People I have spoken to have suggested using SUMIF and reference the original data and not use the PIVOT at all but I am planning on doing dynamic pivot charting and the pivot table option does a lot of the calculations better and leave less room for errors.
I have attached the sample sheet.
Thanks you in advance.
Bookmarks