Vlookup equation on multiple tabs

B

bongiman

How do I use a vlookup equation on sheet 1 which contains a column with all
the tab names, eg 60093, 60094,....etc, to pull required data from the
respective tabs.

The equation i'm currently using is as follows
=VLOOKUP($D30,'60093'!$F:$AS,25,FALSE)

Any help would be much appreciated.
Thanks
 
D

Dave Peterson

Maybe...

=VLOOKUP($D30,indirect("'"&b$1&"'!$F:$AS",25,FALSE)

where b1 contains one of those worksheet names.
 
B

bongiman

I was trying to get that indirect formula to work for ages before you posted
your reply. Apart from the missing closing bracket before ,25 it's
perfect.....you're a genius!

=VLOOKUP($D30,indirect("'"&b$1&"'!$F:$AS"),25,FALSE)
 
D

Dave Peterson

Oops. Glad you got it working.
I was trying to get that indirect formula to work for ages before you posted
your reply. Apart from the missing closing bracket before ,25 it's
perfect.....you're a genius!

=VLOOKUP($D30,indirect("'"&b$1&"'!$F:$AS"),25,FALSE)
 
D

Dee Mains

Is there a way to use this same function to select a certain cell? I'm
looking through multiple sheets for a sheet that has "test" in cell C3, and
 
D

Dave Peterson

Formulas don't select cells.

And I don't understand the rest of the question. You may want to rephrase and
try again.

Dee said:
Is there a way to use this same function to select a certain cell? I'm
looking through multiple sheets for a sheet that has "test" in cell C3, and
 
D

Dee Mains

Yes, So in "sheet 1" I am creating a summary of the rest of the sheets with
information on them. "Sheet 2" through "Sheet 18" have a cell that has the
name of each sheet in it, and then a quantity for that sheet along with other
information. On "sheet 1" I want to put in column A the title of each sheet,
and then in collumn B I want excel to read what is in Column A, go to the
corresponding sheet, and read out just that quantity.
 
D

Dave Peterson

I think...

If you have "Sheet 2" in A1 and want to retrieve the value of Z99 of "Sheet 2",
you can use a formula like:

=indirect("'" & A1 & "'!z99")
or
=if(indirect("'" & A1 & "'!z99")="","",indirect("'" & A1 & "'!z99"))



Dee said:
Yes, So in "sheet 1" I am creating a summary of the rest of the sheets with
information on them. "Sheet 2" through "Sheet 18" have a cell that has the
name of each sheet in it, and then a quantity for that sheet along with other
information. On "sheet 1" I want to put in column A the title of each sheet,
and then in collumn B I want excel to read what is in Column A, go to the
corresponding sheet, and read out just that quantity.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top