Forum Discussion

Rebecca6875's avatar
Rebecca6875
Copper Contributor
Oct 10, 2021
Solved

Hello

How can I get four different cells with drop down functions with each cell (eg: cells: A23 with drop down selections of red, orange and green, Cell A25 with drop down selection red , orange and green...
  • Willy Lau's avatar
    Oct 11, 2021

    Rebecca6875 

    If 4 different cells with 3 options (all cells have a value), there will be 15 outcome.

    GreenOrangeRed
    400
    310
    301
    220
    211
    202
    130
    121
    112
    103
    040
    031
    022
    013
    004

     

    If the number of green * 1 + the number of orange * 10 + the number of red * 100, you will have a sorted value list {4,13,22,31,40,103,112,121,130,202,211,220,301,310,400}.

     

    Assume the 4 different cells are A23:A26 and the result in A27.

    The formula in A27 is

     

     

     

    =INDEX(
    {"A","A-","A-","B","B","C","C","C","C","C","C","C","C","C","C"},
    1,
    MATCH(
       COUNTIF(A23:A26,"Green")+
       COUNTIF(A23:A26,"Orange")*10+
       COUNTIF(A23:A26,"Red")*100,
    
       {4,13,22,31,40,103,112,121,130,202,211,220,301,310,400},
    
       0
    ))

     

     

     

     

    This approach is not good.  I think there should be a better approach from other helpers.

Resources