匹配返回同一行而不是为我而烦恼? (Google表格)

时间:2016-10-04 02:30:25

标签: google-sheets formulas

大家好我的名字是Ray

col A   col B       col c     col d (what i want to display)
Emoji | Sentiment | message | sentiment_message (goes in seperate sheets)
      POSITIVE            POSITIVE
      POSITIVE            POSITIVE
      POSITIVE            POSITIVE
      POSITIVE            POSITIVE
      NEGATIVE            POSITIVE
      NEGATIVE            NEGATIVE
      POSITIVE            NEGATIVE

我想检查col中是否存在表达式中的表情符号,我可以使用此代码执行此操作

=if(match(c2, a:a, 1), b:b, 1)

问题是b:b,我想从每场比赛中得到各自的情绪。

1 个答案:

答案 0 :(得分:1)

您可以使用VLOOKUP而不是匹配来执行此操作,因为如果您愿意,它将返回情绪而不是值。

=VLOOKUP(C2,A:B,2,false)

enter image description here