Excel question

Copper Contributor

Currently using excel 2013 - my question (or what I want to do) is this:

 

I want to have a sheet (format that is printed out) but the information on that sheet is taken from a different tab - based on a value. For example:

I have a workbook with Tabs Labeled DataSheet1 to DataSheet20 - I want to be able to have one format or form that automatically pulls the data from DataSheet5 if "X" value is 5, and from DataSheet11 if "X" value is 11.

 

How can this be done?

Thanks for your help.

1 Reply

you cna use INDIRECT to create a changing reference for example if your sheets are all starting with the same name and a changing number following it and put that number in another cell, lets say A1, you can create a formula like below to referecen B1 cell of different worksheets by changing the value in A1 cell:

 

=INDIRECT("DataSheet" &A1 &"!$B$1")

 

if the worksheet do not exists the formula will return #REF! error