代码之家  ›  专栏  ›  技术社区  ›  TheGoat

Excel 2010-使用数据验证和逻辑的多个下拉列表

  •  0
  • TheGoat  · 技术社区  · 6 年前

    我有一个表,其中包含一个我希望与动态下拉列表一起使用的数据列表。我的数据如下:

    Group   Strength    RX  QTY QTY/RX
    Class1  Strength1   1   5.4     5.4
    Class2  Strength1   2   10.8    5.4
    Class4  Strength1   3   16.2    5.4
    Class1  Strength1   3   16.2    5.4
    Class1  Strength2   4   42      10.5
    Class2  Strength2   2   16.8    8.4
    Class4  Strength2   3   25.2    8.4
    Class2  Strength4   2   38.4    19.2
    Class1  Strength4   8   163.2   20.4
    Class2  Strength4   12  182.4   15.2
    Class3  Strength4   2   38.4    19.2
    Class1  Strength4   8   124.8   15.6
    Class1  Strength3   1   24      24
    Class2  Strength3   6   72      12
    Class1  Strength3   5   60      12
    

    Group   Class1  <drop down  
    Metric  Qty/Rx  <drop down  
    
    Strength1   10.8        
    Strength2   10.5        
    Strength3   36      
    Strength4   36.1
    

    我相信sumifs是一条路要走,但我不知道如何整合第二个下拉选择栏3-5,任何想法都会受到热烈欢迎。

    1 回复  |  直到 6 年前
        1
  •  1
  •   Gary's Student    6 年前

    把数据放在cols里 电子 以及 G2级 . 列出你的优点 H3级 H6型 十三 输入:

    =SUMPRODUCT(--(A$2:A$16=G$1)*(B$2:B$16=H3)*(OFFSET(A$2:A$16,0,MATCH(G$2,$1:$1,0)-1)))
    

    enter image description here

    这是一个使用 SUMPRODUCT() 基于列标题的变量列。