Cell value to reference tab name in formula

ICKIER

New Member
Joined
Mar 11, 2019
Messages
7
I hope I titled this correctly...
I have 10 tabs with data and 1 tab I want to print from that references data from the other tabs.
I would like to type the tab name to reference in cell A1 so that all the formulas "know" which tab to look at based on the value of A1.
I believe I use =INDIRECT but can't figure out the context.
Example: If I type RED in A1 then the formulas know to look at a particular cell in tab RED. And instead of manually changing all the formulas if I want to look up data from tab BLUE all I have to do is change cell A1 to BLUE.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
A1 is the tab name and A5 the target cell

=INDIRECT(A1&"!A5")
 
Upvote 0
Don't you like the EASY ones, AlanY?! Thanks!

How about if B2 is last name and A2 is first name, how can I merge the two in one cell using INDIRECT?
 
Upvote 0
just join them together

=INDIRECT(A2&DA1&"!A5")
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top