SOLVED
Home

Consolidating data from multiple worksheets

%3CLINGO-SUB%20id%3D%22lingo-sub-223584%22%20slang%3D%22en-US%22%3EConsolidating%20data%20from%20multiple%20worksheets%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-223584%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20currently%20have%20a%20spreadsheet%20where%20each%20employee%20has%20a%20separate%20worksheet%2C%20I%20then%20have%20a%20master%20sheet%20showing%20the%20overall%20totals%20for%20each%20project.%26nbsp%3B%20What%20I%20would%20like%20to%20know%20is%20if%20it's%20possible%20to%20look%20up%20the%20data%20from%20the%20employee%20tabs%20and%20enter%20it%20into%20the%20master%20as%20a%20total.%26nbsp%3B%20i.e.%20to%20show%20the%20total%20number%20of%20hours%20for%20each%20project%20in%20one%20formula%20and%20the%20member%20of%20staff%20that%20is%20allocated%20with%20another%20formula.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks%20in%20advance%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-223584%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ehelp%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-304226%22%20slang%3D%22en-US%22%3ERe%3A%20Consolidating%20data%20from%20multiple%20worksheets%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-304226%22%20slang%3D%22en-US%22%3ECould%20you%20sum%20each%20employee's%20hours%20in%20each%20project%20they%20worked%20on%2C%20keeping%20those%20project%20totals%20in%20the%20employees'%20sheets%20keeping%20each%20project%20employee%20total%20cell%20consistent%20on%20all%20employee%20shees%20then%20just%20sum%20those%20totals%20vertically%20onto%20the%20master%20by%20electing%20all%20employee%20tabs%20and%20auto%20summing%20the%20employee%20totals%20onto%20the%20master%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-223612%22%20slang%3D%22en-US%22%3ERe%3A%20Consolidating%20data%20from%20multiple%20worksheets%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-223612%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Philip%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20so%20much%2C%20this%20is%20exactly%20what%20I%20needed.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMachala%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-223606%22%20slang%3D%22en-US%22%3ERe%3A%20Consolidating%20data%20from%20multiple%20worksheets%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-223606%22%20slang%3D%22en-US%22%3E%3CP%3EI%20think%20I%20can%20do%20it%20with%20a%20couple%20of%20'helper'%20tables.%3C%2FP%3E%3CP%3EFirst%20table%20is%20a%20list%20of%20worksheet%20names%20to%20be%20used%20in%20the%20following%20formula%3A%3C%2FP%3E%3CP%3E%3DSUMPRODUCT(SUMIF(INDIRECT(%22'%22%26amp%3Bworksheets%5BColumn1%5D%26amp%3B%22'!%22%26amp%3B%22B3%3AB9%22)%2CProject!B2%2CINDIRECT(%22'%22%26amp%3Bworksheets%5BColumn1%5D%26amp%3B%22'!%22%26amp%3B%22C3%3AC9%22)))%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eand%20the%20second%20table%20builds%20a%20matrix%20of%20who's%20working%20on%20what%2C%20and%20then%20combines%20it%20into%20one%20string%20that%20your%20table%20can%20then%20reference.%20I've%20attached%20a%20copy%2C%20you%20can%20move%20the%20extra%20tables%20I've%20created%20to%20another%20worksheet%20to%20make%20it%20tidy%20if%20you%20need.%20Just%20put%20that%20worksheet%20at%20the%20very%20right%20(end)%20of%20your%20worksheets.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHopefully%20that%20does%20what%20you%20need%2C%20or%20at%20least%20gets%20you%20closer..%3C%2FP%3E%3C%2FLINGO-BODY%3E
Machala Sentance
Occasional Contributor

Hi,

 

I currently have a spreadsheet where each employee has a separate worksheet, I then have a master sheet showing the overall totals for each project.  What I would like to know is if it's possible to look up the data from the employee tabs and enter it into the master as a total.  i.e. to show the total number of hours for each project in one formula and the member of staff that is allocated with another formula.

 

thanks in advance

3 Replies
Solution

I think I can do it with a couple of 'helper' tables.

First table is a list of worksheet names to be used in the following formula:

=SUMPRODUCT(SUMIF(INDIRECT("'"&worksheets[Column1]&"'!"&"B3:B9"),Project!B2,INDIRECT("'"&worksheets[Column1]&"'!"&"C3:C9")))

 

and the second table builds a matrix of who's working on what, and then combines it into one string that your table can then reference. I've attached a copy, you can move the extra tables I've created to another worksheet to make it tidy if you need. Just put that worksheet at the very right (end) of your worksheets.

 

Hopefully that does what you need, or at least gets you closer..

Hi Philip,

 

Thank you so much, this is exactly what I needed.

 

Machala

Could you sum each employee's hours in each project they worked on, keeping those project totals in the employees' sheets keeping each project employee total cell consistent on all employee shees then just sum those totals vertically onto the master by electing all employee tabs and auto summing the employee totals onto the master?