Referencing the text within a cell as the name of an array

pct5003

New Member
Joined
Nov 6, 2013
Messages
4
Hello All,

I am using Excel 2010. I named a data set System and on another spread sheet I have a column for the name of the data sets. I want to write a vlookup and use the column with the names of the data set, lets use B2, as the array. For example:

=vlookup($A2,B2,18,false)

I also tried:

=vlookup($A2,"{"&B2&"}",18,false)


B2 is the data set name, in this example System

I want the array to be dynamic so that I do not have to change it for every single data source I have. Any help would be greatly appreciated.
 
Last edited:

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
I'm not sure exactly what you are trying to achieve.

Are you trying to refer to a named range and the named range is in B2?

If so try this

=vlookup($A2,indirect(b2),18,false)
 
Upvote 0

Forum statistics

Threads
1,223,632
Messages
6,173,472
Members
452,516
Latest member
archcalx

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