[英]EXCEL lookup minimum value with multiple criteria
I am having problem with coming up a formula to lookup the minimum value of a particular product at a particular date (Sheet 2, Column C), and returning the name of the shop in (Sheet 2, Column D). 我想出一个公式来在特定日期(表2,C列)查找特定产品的最小值,并在(表2,D列)返回商店名称时遇到问题。
Sheet2 工作表2
The sample data set is shown below: Sheet1 示例数据集如下所示: Sheet1
I need a formula (for each of column C and D) that would allow me to copy down the row, and gives me the lowest value of a certain product at certain date. 我需要一个公式(用于C和D列中的每一个),该公式将允许我向下复制该行,并在特定日期为我提供特定产品的最低价值。
My initial thought for Column D is an array formula with INDEX, MATCH and MINIFS. 我对D列的最初想法是使用INDEX,MATCH和MINIFS的数组公式。 However, I am not sure the formula for Column C. I was thinking about VLOOKUP but not sure how I should go with selecting the appropriate array of price of a given product. 但是,我不确定C列的公式。我在考虑VLOOKUP,但不确定如何为给定产品选择适当的价格数组。
Thank you in advance 先感谢您
Lowest value should work this way: 最低值应以这种方式工作:
=MIN(IF(($I$1:$L$1=$B2)*($H$3:$H$13=$A2),$I$3:$L$13))
Where: Check picture for data references 其中: 检查图片以获取数据参考
Here is solution to return shop in D column: 这是D列中退货的解决方案:
=INDEX($I$1:$L$26,2,MATCH(B2&C2,INDEX($I$1:$L$1&OFFSET($I$1:$L$1,MATCH($A2,$H$1:$H$26,0)-1,),,),0))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.