I have several worksheets that list the following data on each sheet but different project number:
A B C D E F G
Date Hours Project Description Task/Account Comments Employee Hours Total
Aug-19 4.00 P09998 BID&PROPOSAL PRE-PREPOS P09998 Mexico iDirect; James 34.00
Aug-20 4.00 P09998 BID&PROPOSAL PRE-PREPOS P09998 Staff Meeting, James
Aug-21 8.00 P09998 BID&PROPOSAL PRE-PREPOS P09998 MTTS & TCT Drawings James
Aug-22 8.00 P09998 BID&PROPOSAL PRE-PREPOS P09998 MTTS/TCT Drawings James
Aug-23 8.00 P09998 BID&PROPOSAL PRE-PREPOS P09998 MTTS/TCT Drawing James
Aug-19 2.00 P09998 BID&PROPOSAL PRE-PREPOS P09998 Research and John
Aug-21 2.00 P13017-TELESAT RFI/ROM CISCEA P13017 Richard 13.00
Aug-22 3.00 P13017-TELESAT RFI/ROM CISCEA P13017 Richard
Aug-19 4.00 P13017-TELESAT RFI/ROM CISCEA P13017 James
Aug-20 4.00 P13017-TELESAT RFI/ROM CISCEA P13017 James
All the sheets within the workbook has the same layout as above.
What I want to do is gather information from each sheet in the following format into one worksheet
Task/Account Total Hours
P09998 34
P13017 13
etc...
I need the code to go through each sheet and if that Task/Account already exist within the main sheet (calculating sheet) then just add the hours to what is already there.
Such as:
Date Hours Project Description Task/Account Employee Hours Total
Aug-14 4.00 P09998 BID&PROPOSAL PRE-PREPOS P09998 Richard 4.00
Aug-12 8.00 P13017-TELESAT RFI/ROM CISCEA P13017 Richard 45.00
Aug-13 8.00 P13017-TELESAT RFI/ROM CISCEA P13017 Richard
Aug-14 4.00 P13017-TELESAT RFI/ROM CISCEA P13017 Richard
Aug-15 8.00 P13017-TELESAT RFI/ROM CISCEA P13017 Richard
Aug-16 8.00 P13017-TELESAT RFI/ROM CISCEA P13017 Richard
Aug-14 5.00 P13017-TELESAT RFI/ROM CISCEA P13017 James
Aug-15 4.00 P13017-TELESAT RFI/ROM CISCEA P13017 James
Task/Account Total Hours
P09998 38
P13017 58
etc...
So it would calculate all the Task/Account number individually per worksheet into the calculating sheet.. Each task/account is calculated under HOURS TOTAL in each worksheet.
Thank you and let me know if there is anything else I can add to make it understable.