VLOOKUP by Combining 2 Columns to Form a Unique Key

前端 未结 3 1034
故里飘歌
故里飘歌 2020-12-18 01:52

For the following table,

\"excel

I want to look up the value in col C. Since the values in col A an

3条回答
  •  别那么骄傲
    2020-12-18 02:34

    The way I usually do it is by concatenating the values separated by a pipe character (|). See the formula in the screenshot below.

    =A1&

    Then you can vlookup using the concatenated key.

    =VLOOKUP("1|foo",$C$1:$D$7,2,FALSE)
    

提交回复
热议问题