Double data validation (dynamic ranges/lists)

jbj512

New Member
Joined
Mar 23, 2011
Messages
3
Hi all, brand new to the boards; relatively new to excel and can't seem to get the following to work.

In cell A1, I want to choose an industry from a list that is dynamic. In cell B1, I want to choose a client from a list that corresponds to the industry selected in A1 - this list is dynamic as well. I used offset to name all ranges (industries, and clients that correspond to each industry)

In A1, I have set the validation as follows...
Allow: List
Source: =Industry
(where Industry is a defined name based on an offset function)
This part works.

However, I get an error when putting the following in B1...
Allow: List
Source: =Indirect(A1)
(where obviously the text in A1 corresponds to another dynamically named range using offset)
I receive this message: "The Source currently evaluates to an error" even when there is an entry in A1

Any ideas? (for reference, everything works perfectly when ranges are not dynamic. also, i checked my offset formulas using f9 in edit mode and everything looks fine there)

Thanks!!
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Hi all, brand new to the boards; relatively new to excel and can't seem to get the following to work.

In cell A1, I want to choose an industry from a list that is dynamic. In cell B1, I want to choose a client from a list that corresponds to the industry selected in A1 - this list is dynamic as well. I used offset to name all ranges (industries, and clients that correspond to each industry)

In A1, I have set the validation as follows...
Allow: List
Source: =Industry
(where Industry is a defined name based on an offset function)
This part works.

However, I get an error when putting the following in B1...
Allow: List
Source: =Indirect(A1)
(where obviously the text in A1 corresponds to another dynamically named range using offset)
I receive this message: "The Source currently evaluates to an error" even when there is an entry in A1

Any ideas? (for reference, everything works perfectly when ranges are not dynamic. also, i checked my offset formulas using f9 in edit mode and everything looks fine there)

Thanks!!
INDIRECT cannot process a dynamic named range. If you really need ranges defined as such, you could do the following:

Create a range say in A2:A4 on a sheet called Admin, housing the names you used in the definitions like:

Commerce
Education
Industry
Tourism

Name A2:A4 as DynRangeList and invoke now in B1:

=CHOOSE(MATCH(A1,DynRangeList,0),Commerce,Education,Industry,Tourism)
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,292
Members
452,902
Latest member
Knuddeluff

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