Having the table array in vlookup change to a different tab for each cell

cole416

New Member
Joined
Dec 12, 2022
Messages
5
Office Version
  1. 365
Platform
  1. Windows
I am currently making a table with numbers that I am pulling from different tabs in my workbook through VLOOKUP. Each row going down is getting data from a different tab, but the table values are all the same, and the text I am looking for is all the same.

Example:
6.1=VLOOKUP("Orange",'6.1'!$A$12:AL$180,23,FALSE)
6.2=VLOOKUP("Orange",'6.2'!$A$12:AL$180,23,FALSE)
6.3=VLOOKUP("Orange",'6.3'!$A$12:AL$180,23,FALSE)
6.4=VLOOKUP("Orange",'6.4'!$A$12:AL$180,23,FALSE)


I am trying to make it easier for me to do this over many different cells so that I don't have to manually type in 6.5, 6.6, 6.7, etc. because this will be for hundreds of rows.

I tried referencing the cell that has the text of "6.1" as part of the table array but it wasn't working for me. Is there any way I could easily make this smooth to do for many cells?

Please let me know if you guys need any clarification with what I am asking
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
I just want to note that the names of each tab they are pulling from are the exact same as what I put in column A.
 
Upvote 0
Try this (supposing your example starts in A1):

Excel Formula:
=VLOOKUP("Orange",INDIRECT("'"&A1&"'!$A$12:AL$180"),23,FALSE)
 
Upvote 0
Solution
Worked perfectly. Thank you so much!
INDIRECT is a weird and wonderful formula. By the way, since you have Office 365, you should consider using the new and improved XLOOKUP instead of VLOOKUP.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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