Forum Discussion

Luc_de_Jong's avatar
Luc_de_Jong
Copper Contributor
May 25, 2020

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

  • peteryac60's avatar
    peteryac60
    Iron Contributor

    Luc_de_Jong 

     

    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

     

     

  • Jos_Woolley's avatar
    Jos_Woolley
    Iron Contributor

    Luc_de_Jong 

     

    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

      • SergeiBaklan's avatar
        SergeiBaklan
        Diamond Contributor

        Luc_de_Jong 

        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.

Resources