我有以下的Excel表格:動態最大/基於比例列表中的分矩陣
A B C
1 Product Discount Proportion of Discount
2 Product A 85%
3 Product B 85% 33% --> 33% of the products have discount of 85%
4 Product C 75% 17% --> 17% of the products have discount of 75%
5 Product D 70% 17% --> 17% of the products have discount of 70%
6 Product E 50%
7 Product F 50% 33% --> 33% of the products have discount of 50%
8
在列A你可以找到不同的產品,並在B欄他們的折扣,在列C列表中折扣的比例。
現在我想有一個公式,執行以下操作:
的公式應該通過C列和總結比例比例 - 根據B列開始用最高優惠產品 - 直到它達到總比例的至少60%。 在上述例子中,這將意味着:
Product A&B (33%) + Product C (17%) + Product D (17%) = 67%
一旦式已達到60%的該最小比例它定義了矩陣,以獲得最大或最小值(折扣)出來。 在上面的例子中,這將意味着:
MATRIX = B2:B5 (Product A&B, Product C, Product D)
這個矩陣到底是用於MAX或MIN公式:
=MAX/MIN(B2:B5)
你有任何想法,我可以使用哪種公式來解決這個問題問題?
是這樣的:
= Once SUM(C2:C7) reaches at least 60% then use the matrix resulting from the values in the 60% sum (B2:B5)
請編寫以上示例的預期結果 – OES
獲取應用於max/min公式的矩陣。在上面的示例中,它將是B2:B5,因爲它僅包含最高值(折扣),其合併比例至少爲60%。 – Michi