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

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

问题描述

我想用 INDEXMATCH 显示表格数组中的值,该数组有两个匹配的单元格 com_cddiv_cd.

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

这里是根据com_cddiv_cd

推荐答案

尝试使用数组公式 (CTRL + SHIFT + ENTER) 而不是 Enter.

Try an array formula (CTRL + SHIFT + ENTER) instead of Enter.

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

未经测试但应该可以工作.

Not tested but should work.

稍后将编辑解释我们的公式以及您的公式不起作用的原因.

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

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

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