Home

Access data on different sheets based on data in table

%3CLINGO-SUB%20id%3D%22lingo-sub-564970%22%20slang%3D%22en-US%22%3EAccess%20data%20on%20different%20sheets%20based%20on%20data%20in%20table%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-564970%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20table%20on%20one%20sheet%20and%20then%20a%20number%20of%20other%20sheet%20named%201%2C2%2C3%2C4%2C5%2C..%20etc.%20the%20number%20of%20sheets%20can%20increase%20based%20on%20my%20needs%2C%20these%20sheets%20cannot%20be%20converted%20to%20tables.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ein%20the%20Table%20I%20have%20a%20%22sheet%22%20column%20where%20the%20sheet%20number%20are%20entered%20by%20the%20user%2C%20as%20well%20as%20other%20data%20that%20are%20then%20used%20by%20that%20specific%20sheet%20to%20generate%20some%20outputs.%20The%20table%20must%20then%20retrieve%20some%20information%20from%20these%20sheets%20from%20specific%20cells.%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20example%20if%20the%20sheet%20number%20entered%20in%20a%20line%20in%20the%20table%20is%2012%20then%20I%20want%20to%20access%20say%20cell%20B17%20on%20sheet%2012%20and%20enter%20that%20into%20a%20column%20in%20the%20table.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20suggestions%20on%20how%20to%20do%20this%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-564970%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-565186%22%20slang%3D%22en-US%22%3ERe%3A%20Access%20data%20on%20different%20sheets%20based%20on%20data%20in%20table%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-565186%22%20slang%3D%22en-US%22%3EI%20suggest%20that%20instead%20of%20the%20table%20retrieving%20data%20from%20the%20sheets%2C%20it%20should%20be%20the%20sheets%20that%20retrieve%20data%20from%20the%20table.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-570104%22%20slang%3D%22en-US%22%3ERe%3A%20Access%20data%20on%20different%20sheets%20based%20on%20data%20in%20table%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-570104%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F280482%22%20target%3D%22_blank%22%3E%40Twifoo%3C%2FA%3EThanks%20the%20sheets%20however%20does%20retrieve%20data%20from%20the%20table.%20This%20is%20then%20used%20to%20do%20some%20calculations%20and%20then%20the%20results%20need%20to%20be%20added%20to%20the%20table.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-570166%22%20slang%3D%22en-US%22%3ERe%3A%20Access%20data%20on%20different%20sheets%20based%20on%20data%20in%20table%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-570166%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F341687%22%20target%3D%22_blank%22%3E%40Louis_Serfontein%3C%2FA%3E%26nbsp%3B%2C%20as%20initial%20point%3C%2FP%3E%0A%3CPRE%3E%3DINDIRECT(%22'%22%20%26amp%3B%20Table1%5B%5B%23Headers%5D%2C%5B12%5D%5D%20%26amp%3B%20%22'!B17%22)%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Louis_Serfontein
New Contributor

I have a table on one sheet and then a number of other sheet named 1,2,3,4,5,.. etc. the number of sheets can increase based on my needs, these sheets cannot be converted to tables.

 

in the Table I have a "sheet" column where the sheet number are entered by the user, as well as other data that are then used by that specific sheet to generate some outputs. The table must then retrieve some information from these sheets from specific cells. 

For example if the sheet number entered in a line in the table is 12 then I want to access say cell B17 on sheet 12 and enter that into a column in the table.

 

Any suggestions on how to do this?

3 Replies
I suggest that instead of the table retrieving data from the sheets, it should be the sheets that retrieve data from the table.

@TwifooThanks the sheets however does retrieve data from the table. This is then used to do some calculations and then the results need to be added to the table. 

Highlighted

@Louis_Serfontein , as initial point

=INDIRECT("'" & Table1[[#Headers],[12]] & "'!B17")

 

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
30 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
9 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies