SOLVED

Pulling data to a summary sheet, from select cells in many different sheets

%3CLINGO-SUB%20id%3D%22lingo-sub-1767919%22%20slang%3D%22en-US%22%3EPulling%20data%20to%20a%20summary%20sheet%2C%20from%20select%20cells%20in%20many%20different%20sheets%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1767919%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20have%20an%20excel%20workbook%20where%20I%20keep%20track%20of%20production%2C%20each%20day%20we%20make%20one%20of%20several%20products%2C%20and%20the%20calculations%2C%20instructions%2C%20and%20notes%20of%20a%20given%20batch%20are%20all%20stored%20in%20a%20single%20sheet.%20All%20sheets%20are%20structured%20the%20same%20(e.g.%20batch%20room%20temperature%20is%20in%20always%20in%20cell%20B6%2C%20and%20Viscosity%20is%20always%20in%20cell%20B23).%26nbsp%3B%3C%2FP%3E%3CP%3EEvery%20day%20I%20start%20by%20duplicating%20a%20template%20sheet%20of%20a%20given%20product%2C%20change%20the%20name%20of%20the%20duplication%20to%20todays%20batch%20number%2C%20and%20fill%20in%20the%20sheet.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20I%20would%20like%20is%20a%20simple%20way%20to%20have%20a%20summary%20table%20(in%20a%20separate%20sheet)%2C%20where%20after%20each%20batch%20is%20added%2C%20it%20would%20be%20easy%20to%20update%20the%20table.%20I%20would%20like%20to%20enter%20the%20batch%20name%2C%20which%20is%20similar%20to%20the%20name%20of%20the%20sheet%2C%20and%20have%20excel%20automatically%20pull%20data%20from%20the%20relevant%20cells%20(eg%2C%20from%20B3%20for%20Colom%20B%2C%20from%20H12%20for%20Colom%20I).%26nbsp%3B%3C%2FP%3E%3CP%3EAttached%20is%20a%20demo%20workbook%20to%20show%20what%20I%20am%20trying%20to%20do.%26nbsp%3B%20It%20has%20templates%20for%20there%20different%20products%2C%20two%20sheets%20with%20data%20on%20two%20batches%2C%20and%20a%20summary%20sheet%20where%20I%20need%20help.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWould%20appreciate%20any%20help%20in%20how%20to%20make%20this%20work.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks%2C%3C%2FP%3E%3CP%3EIsaac%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1767919%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1767965%22%20slang%3D%22en-US%22%3ERe%3A%20Pulling%20data%20to%20a%20summary%20sheet%2C%20from%20select%20cells%20in%20many%20different%20sheets%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1767965%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F827364%22%20target%3D%22_blank%22%3E%40Isaaccc%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20INDIRECT%20function%20can%20do%20this%20IF%20you%20change%20your%20sheet%20naming%20convention%20to%20use%20underscore%20instead%20of%20hyphens.%20(i.e.%2C%20MB_1_9_20%20instead%20of%20MB-1-9-20)%26nbsp%3B%20For%20mysterious%20reasons%20(to%20me%20at%20any%20rate)%20the%20hyphens%20caused%20%23REF%20errors.%20As%20soon%20as%20I%20changed%20the%20sheet%20name%2C%20no%20problem.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20added%20a%20row%20across%20the%20top%20to%20give%20the%20cell%20references%20to%20the%20INDIRECT%20formula%2C%20which%20ends%20up%2C%20then%2C%20pulling%20the%20sheet%20from%20the%20name%20entered%20in%20column%20A%2C%20and%20the%20cell%20references%20from%20Row%201.%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3DINDIRECT(%24A3%26amp%3B%22!%22%26amp%3BB%241)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EThis%20is%20the%20formula%20in%20cell%20B3%20of%20your%20summary%20sheet.%20It%20can%20be%20copied%2C%20because%20of%20the%20relative%20and%20absolute%20references%2C%20to%20each%20other%20cell%20where%20you%20want%20things%20summarized.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1767984%22%20slang%3D%22en-US%22%3ERe%3A%20Pulling%20data%20to%20a%20summary%20sheet%2C%20from%20select%20cells%20in%20many%20different%20sheets%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1767984%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F827364%22%20target%3D%22_blank%22%3E%40Isaaccc%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20example%20in%20B2%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3DINDIRECT(%22'%22%26amp%3B%24A2%26amp%3B%22'!B3%22)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESee%20the%20attached%20version.%3C%2FP%3E%0A%3CP%3EWarning%3A%20the%20Notes%20cell%20is%20not%20consistent%20-%20it's%20H13%20on%20one%20sheet%20and%20H15%20on%20another.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1767985%22%20slang%3D%22en-US%22%3ERe%3A%20Pulling%20data%20to%20a%20summary%20sheet%2C%20from%20select%20cells%20in%20many%20different%20sheets%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1767985%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F425987%22%20target%3D%22_blank%22%3E%40mathetes%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20been%20racking%20my%20brain%20on%20this%20for%20a%20week%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hi,

I have an excel workbook where I keep track of production, each day we make one of several products, and the calculations, instructions, and notes of a given batch are all stored in a single sheet. All sheets are structured the same (e.g. batch room temperature is in always in cell B6, and Viscosity is always in cell B23). 

Every day I start by duplicating a template sheet of a given product, change the name of the duplication to todays batch number, and fill in the sheet.

 

What I would like is a simple way to have a summary table (in a separate sheet), where after each batch is added, it would be easy to update the table. I would like to enter the batch name, which is similar to the name of the sheet, and have excel automatically pull data from the relevant cells (eg, from B3 for Colom B, from H12 for Colom I). 

Attached is a demo workbook to show what I am trying to do.  It has templates for there different products, two sheets with data on two batches, and a summary sheet where I need help.

 

Would appreciate any help in how to make this work. 

 

thanks,

Isaac

5 Replies
Highlighted
Best Response confirmed by Isaaccc (New Contributor)
Solution

@Isaaccc 

 

The INDIRECT function can do this IF you change your sheet naming convention to use underscore instead of hyphens. (i.e., MB_1_9_20 instead of MB-1-9-20)  For mysterious reasons (to me at any rate) the hyphens caused #REF errors. As soon as I changed the sheet name, no problem.

 

I added a row across the top to give the cell references to the INDIRECT formula, which ends up, then, pulling the sheet from the name entered in column A, and the cell references from Row 1.

=INDIRECT($A3&"!"&B$1)

This is the formula in cell B3 of your summary sheet. It can be copied, because of the relative and absolute references, to each other cell where you want things summarized.

 

Highlighted

@Isaaccc 

For example in B2:

 

=INDIRECT("'"&$A2&"'!B3")

 

See the attached version.

Warning: the Notes cell is not consistent - it's H13 on one sheet and H15 on another.

Highlighted

@mathetes 

Thank you!

 

I have been racking my brain on this for a week

Highlighted
Thank you!
This is very helpful, with your suggestion I do not need to change the name of old batches.

Isaac
Highlighted

@Isaaccc 

 

Yes, the suggestion from Hans got around the problem of your use of hyphens in the tab names, by inserting the single quote mark at the start of the string containing the tab's name in the INDIRECT function. It still is worth realizing, that hyphens seem to create problems when used in some names.

 

I thought it would be easy to show how INDIRECT worked, because I have a similar summary page in a workbook of my own; in fact I make extensive use of INDIRECT for a variety of purposes. In your case, I was surprised that I repeatedly was failing, getting the #REF error, until I changed the name just as an experiment.