The Opposite to Vlookup

SimonG

New Member
Joined
Jun 28, 2006
Messages
45
Does anyone know how I can bring a cell value into a single sheet based on the name of a number of other sheets. For example, if I have a Base sheet with the names of five sheets in the Book, say 1, 2, 3, 4, 5, in a column, is there a function that would bring cell B2, say, from each sheet of the five sheets, 1,2,3,4,5 into the base sheet next to the named reference 1,2,3,4,5. Apologies for the poor description!
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Actually a pretty good description! Yes, it's the INDIRECT function. Let's say your base sheet has the other sheet names in column A. The formula for row 2 to show the content of B2 in the corresponding sheet:

Excel Formula:
=INDIRECT("'" & A2 & "'!B2")

INDIRECT lets you build a string that looks like a cell/range address and then returns that cell/range. You can look it up in Excel help.

I have not tested it but if you have any trouble I'll set up an example.
 
Upvote 0

Forum statistics

Threads
1,215,438
Messages
6,124,873
Members
449,192
Latest member
MoonDancer

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