【问题标题】:Maximum with a proportion criteria具有比例标准的最大值
【发布时间】:2017-03-27 12:55:39
【问题描述】:

我有以下 Excel 电子表格,它在 A 列 中显示产品,在 B 列 中显示它们的折扣:

        A                 B
1   Product A           40%
2   Product B           55%
3   Product C           30%
4   Product D           30%
5   Product E           40%
6   Product F           40%
7   Product G           60%
8   Product H           60%
9   Product I           45%
10  Product J           40%
11  Product K           60%
12  Product L           40%
13  Product M           50%
14 
15 Number of Products:   13 (=Count2(B2:B14)
16   
17 Maximum Discount      ??

单元格 B17 中,我想显示 最大折扣,它指的是列表中至少 10% 的产品。 p>

因此,我创建了以下“计算表”,显示产品列表中每个折扣的比例:

        B            C                          D               
    Discount    Number of products     Proportion in
                with discount          product list
22    40%           5                        38% (= 5/13)
23    45%           1                         8% (= 1/13)
24    50%           1                         8% (= 1/13)
25    55%           1                         8% (= 1/13)
26    60%           3                        23% (= 3/13)

根据这个计算表,我用下面的公式来表示最大折扣,比例至少10%

={MAX(If(D22:D26>=0,1,B22:B26,0))}

到目前为止,这非常有效。但是,我想要实现的是不再需要“计算表”,并且比例和最大折扣的计算在一个公式中完成。

你知道我该如何解决这个问题吗?

【问题讨论】:

    标签: excel


    【解决方案1】:

    使用聚合()

    =AGGREGATE(14,6,B1:B13/(COUNTIF(B1:B13,B1:B13)/B15>0.1),1)
    

    【讨论】:

      【解决方案2】:

      使用 =MODE.SNGL(B:B) 公式。它将给出列中出现次数最多的折扣

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2013-08-23
        • 1970-01-01
        • 2018-11-10
        • 2014-08-07
        • 2013-02-02
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多