Cell value as named ranged reference

sdrubezki

New Member
Joined
Aug 5, 2010
Messages
16
Hello, I'm trying to use a cell value as reference for a dynamic range in a vlookup formula. I tried indirect, concatenate, etc and it's not working. I know the def of the dynamic range is ok since when I use the offset formula in the vlookup it works. Any ideas? Thanks.
 

Some videos you may like

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

sdrubezki

New Member
Joined
Aug 5, 2010
Messages
16
This is the idea:
In Sheet1 I have a reservation form. User enters city in cell B11 and list of sites appear in cell B12 (dependent list, data in sheet2).
What I'm tryingh to do is to retrieve contact details for that specific site. For each I created a dynamic ranged named "CityNameDynamic". Since this is not the what appears in the drop down, I used "substitute(B11, " ","")&Dynamic"".
This didn't work, I thought since it's a formula, so I added a macro to copy/paste special only text. Teh vlookup should take this name as the range name but it doesn't!
Any ideas?
 

konew1

Well-known Member
Joined
Oct 17, 2007
Messages
2,287
If B11 has a city, what is the space character you refer to in
substitute(B11, " ","")&Dynamic"".
If B11 has the city isn't the requirement to be B11&"dynamic"
 

sdrubezki

New Member
Joined
Aug 5, 2010
Messages
16
Since there're some cities with 2 names (e.g. New York and I named the range NewYorkDynamic).
 

sdrubezki

New Member
Joined
Aug 5, 2010
Messages
16
I've been reading a bit and I apparently indirect "doesn't like" dynamic ranges. Is that so? If yes, any idea how to overcome this?
 

Watch MrExcel Video

Forum statistics

Threads
1,123,514
Messages
5,602,093
Members
414,501
Latest member
mdhaumyu

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
Top