Vlookup when table_array is value in cell

mattyblueice

Board Regular
Joined
Jul 24, 2014
Messages
85
Office Version
  1. 365
Platform
  1. MacOS
Hi there!

I am working on a project summary dashboard and I am having an issue with the vlookup reference. In the workbook, there are multiple sheets: Proj A, Proj B, Proj C, Proj D, etc. The cell references are all the same in each of the sheets for the vlookup to reference and I wanted the first part of the table array to be based on the value from a drop down.

The dashboard page has a cell dropdown list for the user to select from Proj A, Proj B, etc. That value would be in Cell B1. Can I somehow concatenate the reference the value in cell B1 with the rest of the table array?

My formula: =Vlookup(A11,**value in Cell B1**A3:F182,2,false)

I tried using the INDIRECT feature with no luck.

Thank you for your time!
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Good Morning, I put that formula in and I got a reference error and when I evaluated it the #REF ! is related to table_array, Has this worked before for you?
 
Upvote 0
UREKA! I got it to work I forgot to include the " ' "before and after the sheet name so Excel knows its a sheet reference. My formula looks like this:
=VLOOKUP(A11,INDIRECT("'"&B1&"'"&"!A3:F182"),2,FALSE)

Thanks for your help!
 
Upvote 0
Ah yes, sorry, I tested this on a version where my sheet name was a single word, and I think you don't need the " ' " characters, but if your sheet name has multiple words with one or more space between, you will need them.
 
Upvote 0

Forum statistics

Threads
1,214,905
Messages
6,122,175
Members
449,071
Latest member
cdnMech

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