May 25 2020 12:24 PM
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.
May 25 2020 12:58 PM
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
),"")
May 25 2020 01:18 PM
@Sergei Baklan I already tried that. The problem is I can't use the filter command
May 25 2020 01:45 PM
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.
May 25 2020 01:47 PM
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
May 25 2020 02:14 PM
@Sergei Baklan Thank you for your respons. It works. I wonder if it is possible to make C12 a drop down list
May 26 2020 12:42 AM
I added maxExercises parameter
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
May 26 2020 02:46 AM
@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
May 26 2020 03:01 AM
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