Dependant drop down lists

jono19872002

New Member
Joined
Jul 16, 2009
Messages
4
Hi
I am trying to create dependant drop down lists but am currently having issues.
I understand the concept and can get it working when I hardcode the ranges as a named range, however when I use the offset function in the name range I cant get the dependant drop down list to work.

For example
I have a "Category" named range which is Income, Expenditure, Assets, Liabilities, which works fine and is input via a dynamic named range (similar to below)

I also have a named range called Expenditure with the names range as below:

=OFFSET(Categories!$D$1,1,0,COUNTA(Categories!$D:$D)-1,1)

This on its own works fine.

However when I try and use the =indirect() to pick up the expenditure named range based of the category named range
I get the error message "The source currently evaluates to an error" ?
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
height is counta ($d:$d) -1

so if cells d1 to d5 ONLY have non blank cells height is 4

put 4 in your formula instead of the counta.......... does it work then?
 
Upvote 0
Hi
There is data in column D.

So with the dynamic defined range, in a cell when I add in the data validation I can reference this in the drop down and it works ie =category.

However if I type the defined range name in a cell eg typing category in cell f2 , It wont let me reference that cell by the indirect function to access the defined range in the data validation eg =indirect(f2).

but when I save a normal defined range eg =Categories!$D2:$D5 then I can reference this by the indirect function in a different cell
 
Upvote 0

Forum statistics

Threads
1,214,613
Messages
6,120,515
Members
448,968
Latest member
Ajax40

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