从图表中提取一个值,并按照excel中的条件进行过滤

我在Excel中有两张这样的表单:

价格图表:

**Post AB** **Post Tenn** **Post DN** Price 10.1-10.20 Price 10.1-10.20 Price 10.1-20.1 CityOrigin Destination 20 kg 40 kg 20 kg 40 kg 20 kg 40 kg New York Madrid 45 40 40 50 45 40 Los Angeles Madrid 65 70 70 70 56 60 Oregon Paris 89 100 110 105 74 98 Washington Paris 34 80 45 65 45 69 

和工作图:

  Price Rate Post Career CityOrigin Date 20KG 40KG Post AB New Tork =Today() ? ? Post Tenn Los Angles " ? ? Post DN Oregon " ? ? 

我想知道,是否有可能使用邮政职业和城市来源今天的date提取实际有效的价格20公斤和40公斤包裹从价格图表单?

我的理想结果应该是这样的:

  Price Rate Post Career CityOrigin Date 20KG 40KG Post AB New York 10/20 40 45 Post Tenn Los Angles 10/20 70 70 Post DN Oregon 10/20 74 98 

我的问题是我应该使用哪个函数来根据价格表中的date和职位来调用价格? 多重查询?

所以这里是我迄今为止不知道其他date范围将如何在你的数据结构,但这应该给你一些工作。

我在cell D13input的公式是:

 =INDEX($C$4:$H$7,MATCH($B13,$A$4:$A$7,0),MATCH($A13,$C$1:$H$1,0)+IF(D$12="20 kg",0,1)) 

基本上我只是使用INDEX/MATCH来查找行号和列号。 一旦你有其他的数据来玩,我可以再看看,如果你找不到解决的办法。

请注意,我已经删除了第一行的*符号,所以在MATCH函数中做起来更容易,否则,你将需要使用数组公式来做到这一点,这可能不是你想要的方式。