Highlighted
New Contributor

# A question about dropdown lists

I have a question about dropdown lists. I want to make 3 dropdown lists (the last one dependent). Cell A12 and B12 are both drop down lists (not dependent). In the drop down list I have the options from A3:A5 and in B12 I have the options of B3:B5. If I choose Quadriceps in A12 and Balance in B12 I want all the exercises of the collum QuadricepsBalance. So that would be 5 exercises.

I hope there is a way tot do this. I'm not bound to the lay-out so I can change whatever I want to make it work.

8 Replies
Highlighted

# Re: A question about dropdown lists

If your version of Excel supports dynamic arrays, for such model

the function could be

``````=IFNA(FILTER(
INDEX(\$C\$3:\$K\$9,0,(MATCH(\$A\$12,\$A\$2:\$A\$4,0)-1)*3+MATCH(\$B\$12,\$B\$2:\$B\$4,0)),
INDEX(\$C\$3:\$K\$9,0,(MATCH(\$A\$12,\$A\$2:\$A\$4,0)-1)*3+MATCH(\$B\$12,\$B\$2:\$B\$4,0))<>0
),"")``````
Highlighted

# Re: A question about dropdown lists

@Sergei Baklan I already tried that. The problem is I can't use the filter command

Highlighted

# Re: A question about dropdown lists

If convert above formula to not-DA one, for this

in C12

``````=IFERROR(
INDEX(
INDEX(\$C\$3:\$K\$9,0,(MATCH(\$A\$12,\$A\$2:\$A\$4,0)-1)*3+MATCH(\$B\$12,\$B\$2:\$B\$4,0)),
AGGREGATE(15,6,1/(INDEX(INDEX(\$C\$3:\$K\$9,0,(MATCH(\$A\$12,\$A\$2:\$A\$4,0)-1)*3+MATCH(\$B\$12,\$B\$2:\$B\$4,0)),ROW()-ROW(\$C\$11))<>"")*ROW()-ROW(\$C\$11),1)
),"")``````

and drag it down. See in Sheet2 attached.

Highlighted

# Re: A question about dropdown lists

Hi,

In C12:

=T(HLOOKUP(B\$12,INDEX(\$3:\$3,MATCH(A\$12,\$2:\$2,0)):K\$100,ROWS(\$1:2),0))

and copied down until you start to get blanks for the results.

Regards

Highlighted

# Re: A question about dropdown lists

@Sergei Baklan Thank you for your respons. It works. I wonder if it is possible to make C12 a drop down list

Highlighted

# Re: A question about dropdown lists

formula for the list

is

``=OFFSET(\$C\$3,0,(MATCH(\$A\$12,\$A\$2:\$A\$4,0)-1)*3+MATCH(\$B\$12,\$B\$2:\$B\$4,0)-1,COUNTA(OFFSET(\$C\$3,0,(MATCH(\$A\$12,\$A\$2:\$A\$4,0)-1)*3+MATCH(\$B\$12,\$B\$2:\$B\$4,0)-1,maxExercises)))``

in third sheet attached

Highlighted

# Re: A question about dropdown lists

@Sergei Baklan Dear Sergei,

I'm so so so greatfull for your help. Thank you for putting the time into this and not only explain it, but also creating the formules and the table. I was struggling with it for quite some time now. Once again thanks.

Luc

Highlighted

# Re: A question about dropdown lists

Hi Luc

I attached an alternative solution.

This relies on setting up NAMES (see Formulas->Name Manager) for each group e.g. "HamstringBalance"  to cover those exercises; "HamstringStrength" for those exercises and so on.

The dependent drop down then using the Indirect function and the options you select in the first two column to point to the correct list of exercises.

Hope this helps.

Peter