【发布时间】: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