range name using offset formula vs data validation

rrporto5

New Member
Joined
Oct 30, 2012
Messages
4
hello all, my question is a little tricky ... let's go:

What I really want is to create a data validation (list) using a Dependent Drop Down Lists; which means that depending on which text is on cell A1, the drop down list would show a different set of options. For that on the data validation source I am using “indirect” in order to be able to the text on cell A1 be recognized as a range name.

So far so good …

THE PROBLEM IS when an area’s name is not a fixed reference (instead, I am creating a dynamic area using offset formula). The indirect simple does not work! If a literally type the area name into data validation source it works, but using indirect it doesn’t.
Here is the formula I am using =OFFSET('Org Exec'!$B$3;;;COUNTA('Org Exec'!$B:$B)-1).
Also I noticed that when you define a name using the above mentioned formula it desapears form the dropdown list just beside the formula bar.
thx,
Rafael
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Unfortunately, that's just the way it is.
Indirect can't use a 'dynamic' named range.

Here's an alternate method..

Say your possible Named Range Strings in A1 are
Name1 Name2 and Name3 (whatever)

=CHOOSE(MATCH(A1,{"Name1","Name2","Name3"},0),Name1,Name2,Name3)
 
Upvote 0
Thx Jonmo1
I am using a mix o CHOOSE in one cell; INDIRECT in another cell and another INDIRECT inside data validation.
than it works!!!!

thx a lot!
Rafael
 
Upvote 0

Forum statistics

Threads
1,224,899
Messages
6,181,627
Members
453,058
Latest member
rmd0725

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