Home

Using Tab Titles to Reference Data?

%3CLINGO-SUB%20id%3D%22lingo-sub-748618%22%20slang%3D%22en-US%22%3EUsing%20Tab%20Titles%20to%20Reference%20Data%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-748618%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20manufacturing%20data%20which%20is%20organized%20on%20separate%20sheets%20based%20on%20manufacturing%20lots.%20Each%20sheet%20contains%20information%20regarding%20the%20manufacturer%2C%20dates%20of%20manufacturing%2C%20parts%20and%20revisions%20of%20parts%20used%2C%20material%2C%20QC%20of%20the%20items%20produced%2C%20etc.%20It's%20a%20lot%20of%20data%20on%20each%20tab%20when%20you%20take%20into%20account%20QC%20of%20several%20hundred%20items%20per%20tab.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20want%20to%20have%20a%20master%20sheet%20that%20updates%20information%20automatically%20and%20summarizes%20some%20of%20the%20more%20important%20pieces%20of%20this%20information%20(such%20as%20manufacturer%2C%20material)%20so%20I%20can%20quickly%20narrow%20information%20down%20in%20the%20event%20that%20issues%20should%20arise.%20For%20instance%20if%201%2F5%20batches%20has%20problems%2C%20I'd%20like%20to%20be%20able%20to%20sort%20that%20information%20in%20such%20a%20way%20that%20I%20might%20pick%20out%20trends%3B%20non-conforming%20materials%2C%26nbsp%3B%20subs%20%2F%20vendors%20who%20may%20be%20providing%20inferior%20work%20%2F%20products%2C%20date%20of%20build%2C%20etc.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20alone%20is%20not%20hard%2C%20I%20can%20filter%20the%20data%20when%20it%20is%20in%20place.%20The%20trouble%20is%20getting%20this%20to%20fill%20automatically%20retroactively%20and%20moving%20forward.%20I%20would%20like%20to%20be%20able%20fill%20a%20column%20on%20the%20master%20sheet%20with%20my%20internal%20lot%20information%20and%20have%20the%20remaining%20details%20fill%20in.%20I%20would%20just%20take%20the%20extra%2020%20minutes%20to%20fill%20in%20the%20data%20for%20each%20lot%20produced%2C%20but%20since%20we%20now%20have%20hundreds%20if%20not%20thousands%20of%20lots%20(sheets)%20to%20do%20this%20for%2C%20it%20would%20be%20simpler%20to%20just%20call%20the%20data%20using%20my%20tab%20labels%20as%20a%20reference%20set.%20As%20an%20added%20bonus%20it%20would%20save%20some%20time%20in%20the%20future.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAll%20manufacturing%20lots%20are%20based%20on%20the%20same%20template.%20So%20Cell%20C4%20on%20every%20sheet%20is%20where%20a%20part%20number%20goes.%20What%20I'm%20trying%20to%20do%20is%20on%20the%20mastersheet%20put%20%22Lot%20234%22%20in%20cell%20A1.%20Cell%20A2%20would%20call%20data%20from%20C4%20on%20Sheet%20%22Lot%20234%22%2C%20using%20Cell%20A1%20as%20a%20reference.%20I've%20tried%20using%20indirect%20and%20vlookup%20with%20no%20luck.%20I%20don't%20really%20think%20they%20are%20applicable%20here.%20That%20it%20would%20autopopulate%20based%20on%20the%20my%20entry%20of%20the%20lot%20name.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20help%20would%20be%20appreciated!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-748618%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-749067%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Tab%20Titles%20to%20Reference%20Data%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-749067%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F374352%22%20target%3D%22_blank%22%3E%40ABosley315%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20you%20say%20%22organized%20on%20separate%20sheets%20based%20on%20manufacturing%20lots%2C%22%20an%20Excel%20expert%20says%20%22Great.%20We%20can%20use%20INDIRECT%20to%20retrieve%20data%20from%20that%20worksheet.%22%20The%20formula%20below%20does%20that%2C%20and%20may%20be%20copied%20down%20and%20across%20if%20you%20need%20to%20get%20data%20from%20successive%20cells.%3C%2FP%3E%3CP%3E%3DINDIRECT(%22'%22%20%26amp%3B%20%24A%241%20%26amp%3B%20%22'!%22%20%26amp%3B%20CELL(%22address%22%2C%20C4))%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20you%20say%20INDIRECT%20doesn't%20work%20for%20you%2C%20I%20wonder%20if%20you%20meant%20separate%20workbooks%20rather%20than%20separate%20worksheets.%20The%20distinction%20is%20important%20because%20INDIRECT%20returns%20%23VALUE!%20error%20when%20the%20target%20workbook%20is%20closed.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20I%20am%20correct%2C%20one%20workaround%20would%20be%20to%20use%20a%20macro%20to%20open%20the%20target%20workbook%20and%20import%20its%20data.%20Although%20VBA%20code%20can%20retrieve%20data%20from%20a%20closed%20workbook%2C%20it's%20a%20fairly%20slow%20process.%20Once%20you%20exceed%20say%2020%20items%2C%20it%20is%20faster%20to%20open%20the%20target%20workbook%2C%20capture%20its%20data%2C%20then%20close%20it.%20Since%20you%20need%20several%20hundred%20items%20per%20tab%2C%20that%20is%20definitely%20the%20way%20to%20go.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENext%2C%20I%20am%20going%20to%20assume%20that%20writing%20VBA%20code%20is%20not%20your%20strong%20suit.%20I'd%20be%20glad%20to%20write%20the%20code%20for%20you--but%20you%20need%20to%20post%20a%20workbook%20with%20your%20master%20sheet%20as%20well%20as%20one%20for%20a%20typical%20manufacturing%20lot.%20The%20code%20would%20live%20in%20your%20master%20workbook%2C%20and%20could%20be%20triggered%20either%20by%20a%20button%20or%20a%20user%20selection%20of%20a%20particular%20manufacturing%20lot.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20macro%20needs%20to%20know%20how%20the%20target%20workbook%20is%20named%2C%20and%20where%20it%20might%20be%20found.%20Although%20the%20macro%20could%20display%20a%20file%20browse%20dialog%2C%20it%20is%20nicer%20for%20the%20user%20if%20the%20process%20occurs%20automatically.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-750181%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Tab%20Titles%20to%20Reference%20Data%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-750181%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F23287%22%20target%3D%22_blank%22%3E%40Brad%20Yundt%3C%2FA%3E%26nbsp%3BIt%20is%20in%20the%20same%20workbook.%20Even%20in%20the%20same%20workbook%20I%20encounter%20value%20error.%20I%20do%20believe%20Indirect%20is%20what%20I%20want%20to%20use%2C%20I%20just%20can't%20seem%20to%20get%20it%20working%20correctly.%20In%20this%20instance%20I%20don't%20need%20successive%20cells.%20I%20only%20need%20single%20defined%20cells%20that%20have%20text%20or%20data%20that%20I%20would%20like%20to%20pull%20into%20my%20summary%2C%20master%20sheet.%20I%20was%20hoping%20do%20accomplish%20this%20by%20simply%20entering%20the%20tab%20name%20into%20a%20single%20cell%2C%20and%20that%20would%20trigger%20to%20pull%20data%20from%20the%20tabs%20into%20my%20master%20sheet.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20unfortunately%20cant%20share%20the%20template%20for%20working%20up%20a%20macro.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
ABosley315
New Contributor

I have manufacturing data which is organized on separate sheets based on manufacturing lots. Each sheet contains information regarding the manufacturer, dates of manufacturing, parts and revisions of parts used, material, QC of the items produced, etc. It's a lot of data on each tab when you take into account QC of several hundred items per tab.

 

I want to have a master sheet that updates information automatically and summarizes some of the more important pieces of this information (such as manufacturer, material) so I can quickly narrow information down in the event that issues should arise. For instance if 1/5 batches has problems, I'd like to be able to sort that information in such a way that I might pick out trends; non-conforming materials,  subs / vendors who may be providing inferior work / products, date of build, etc. 

 

This alone is not hard, I can filter the data when it is in place. The trouble is getting this to fill automatically retroactively and moving forward. I would like to be able fill a column on the master sheet with my internal lot information and have the remaining details fill in. I would just take the extra 20 minutes to fill in the data for each lot produced, but since we now have hundreds if not thousands of lots (sheets) to do this for, it would be simpler to just call the data using my tab labels as a reference set. As an added bonus it would save some time in the future. 

 

All manufacturing lots are based on the same template. So Cell C4 on every sheet is where a part number goes. What I'm trying to do is on the mastersheet put "Lot 234" in cell A1. Cell A2 would call data from C4 on Sheet "Lot 234", using Cell A1 as a reference. I've tried using indirect and vlookup with no luck. I don't really think they are applicable here. That it would autopopulate based on the my entry of the lot name.

 

Any help would be appreciated!

2 Replies

@ABosley315 

When you say "organized on separate sheets based on manufacturing lots," an Excel expert says "Great. We can use INDIRECT to retrieve data from that worksheet." The formula below does that, and may be copied down and across if you need to get data from successive cells.

=INDIRECT("'" & $A$1 & "'!" & CELL("address", C4))

 

When you say INDIRECT doesn't work for you, I wonder if you meant separate workbooks rather than separate worksheets. The distinction is important because INDIRECT returns #VALUE! error when the target workbook is closed.

 

If I am correct, one workaround would be to use a macro to open the target workbook and import its data. Although VBA code can retrieve data from a closed workbook, it's a fairly slow process. Once you exceed say 20 items, it is faster to open the target workbook, capture its data, then close it. Since you need several hundred items per tab, that is definitely the way to go.

 

Next, I am going to assume that writing VBA code is not your strong suit. I'd be glad to write the code for you--but you need to post a workbook with your master sheet as well as one for a typical manufacturing lot. The code would live in your master workbook, and could be triggered either by a button or a user selection of a particular manufacturing lot.

 

The macro needs to know how the target workbook is named, and where it might be found. Although the macro could display a file browse dialog, it is nicer for the user if the process occurs automatically.

@Brad Yundt It is in the same workbook. Even in the same workbook I encounter value error. I do believe Indirect is what I want to use, I just can't seem to get it working correctly. In this instance I don't need successive cells. I only need single defined cells that have text or data that I would like to pull into my summary, master sheet. I was hoping do accomplish this by simply entering the tab name into a single cell, and that would trigger to pull data from the tabs into my master sheet.

 

I unfortunately cant share the template for working up a macro. 

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
PacketMon Components are not loading in WAC 1909
HotCakeX in Windows Admin Center on
2 Replies