使用INDEX和MATCH在表数组中进行两列查找 [英] Two column lookup in table array using INDEX and MATCH

查看:715
本文介绍了使用INDEX和MATCH在表数组中进行两列查找的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望excel从table数组显示两个匹配的单元格 com_cd div_cd code> INDEX 和 MATCH

I would like excel to display the value from table array which has two matching cells com_cd and div_cd using INDEX and MATCH.

我已尝试过以下公式但是它没有起作用。

I have tried the following formula but it did not work.

=INDEX(K9:K53,MATCH(K3,I9:I53,0),MATCH(K4,J9:J53,0)) 

以下是具有所需结果的Excel表格的截图根据 com_cd div_cd

Here is a screenshot of the excel sheet with the desired result given according to com_cd and div_cd

推荐答案

尝试数组公式(CTRL + SHIFT + ENTER) code>而不是输入

=INDEX(K9:K53,MATCH(K3&K4,I9:I53&J9:J53,0),1)

未测试,但应该工作。

稍后将编辑解释我们的公式和原因为什么你的公式不起作用。

Will edit later explaining our formula and reason why your formula doesn't work.

这篇关于使用INDEX和MATCH在表数组中进行两列查找的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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