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.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
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?
 
Upvote 0
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"
 
Upvote 0
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?
 
Upvote 0

Forum statistics

Threads
1,214,845
Messages
6,121,902
Members
449,053
Latest member
Guy Boot

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