最大比例标准

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

AB 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中,我想要显示列表中产品的至less10%最大折扣

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

  BCD 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) 

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

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

迄今为止,这是完美的。 但是,我想达到的目的是不再需要“计算表”,而且计算比例和最大折扣是在一个公式中完成的。

你有什么想法我可以解决这个问题吗?

使用Aggregate()

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

![在这里输入图片描述

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