Excel中的多列查找 [英] Multiple-column based lookups in Excel

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

问题描述

  ABC 
1 PROD1 TYPE1 VAL1
2 PROD2 TYPE1 VAL2
3 PROD1 TYPE2 VAL3
4 PROD2 TYPE3 VAL2

在一个空单元格中,我想获取Prod Type = Prod2和type = type3的C列中的值。 p>

我会感谢任何一种帮助。

解决方案

看看使用 DGET Excel功能。



设置



< A1> ProdType
  • B1 =类型

  • C1 = Val



    • 然后你提供的数据在A2:C5



      然后




      • H1 = ProdType

      • I1 =类型

      • H2 = = PROD2 (条件1)

      • I2 = = TYPE3 (标准2)



      最后,在H3:

        = DGET(A1:C5,Val,H1:I2)

      你。


              A     B    C
          1 PROD1 TYPE1 VAL1
          2 PROD2 TYPE1 VAL2
          3 PROD1 TYPE2 VAL3
          4 PROD2 TYPE3 VAL2 
      

      In an empty cell I want to get the value in C column for the Prod Type= Prod2 and type = type3.

      I will appreciate any kind of help.

      解决方案

      Have a look at using the DGET Excel function.

      Set

      • A1 = ProdType
      • B1 = Type
      • C1 = Val

      Then your provided data in A2:C5

      Then

      • H1 = ProdType
      • I1 = Type
      • H2 = =PROD2 (Criteria 1)
      • I2 = =TYPE3 (Criteria 2)

      And lastly, in H3:

      =DGET(A1:C5,"Val",H1:I2)
      

      That should get the value for you.

      这篇关于Excel中的多列查找的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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