EXCEL查找具有多个条件的最小值 [英] EXCEL lookup minimum value with multiple criteria

查看:2241
本文介绍了EXCEL查找具有多个条件的最小值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有问题要提出一个公式来查找特定日期的特定产品的最小值(表2列C),并在(表2列D)中返回商店的名称。

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

Sheet2

样本数据集如下所示:
Sheet1

The sample data set is shown below: Sheet1

我需要一个公式(对于列C和D中的每一个),这将允许我将该行复制下来,并给我最低的值某一产品在某一日期。

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.

我对Column D的初步想法是一个具有INDEX,MATCH和MINIFS的数组公式。
但是,我不确定C列的公式。我在考虑VLOOKUP,但不知道我应该如何选择一个给定产品的适当的价格阵列。

My initial thought for Column D is an array formula with INDEX, MATCH and 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.

提前谢谢

推荐答案

最低价值应该这样工作:

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

这里是在D列中返回商店的解决方案:

Here is solution to return shop in D column:

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

这篇关于EXCEL查找具有多个条件的最小值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆