【问题标题】:append to existing values if condition is true如果条件为真,则附加到现有值
【发布时间】:2021-06-29 05:43:18
【问题描述】:

我想逐行比较 sheet1-colors 和 sheet2-darkcolors 中的值

如果它们都匹配,则将行值 d 和 e 附加到工作表 1 中的 fruits 列

基本上 sheet1 colors |blue |=== sheet2 darkcolors |blue| ----> fruits+yummy+yuicy

工作表1

colors fruits
blue bananay
red apple
green kiwi

工作表2

darkcolors d e
blue yummy juicy
black tummy fruicy
green tummy goosy

结果

colors fruits
blue banana+yummy+juicy
red apple
green kiwi+tummy+goosy

我尝试将 `IF` 与 `XLOOKUP` 结合使用,但无法一起运行

【问题讨论】:

    标签: excel


    【解决方案1】:

    试试-

    =IFERROR(TEXTJOIN("+",TRUE,B2,INDEX(TRANSPOSE(Sheet2!$B$2:$C$4),,MATCH(A2,Sheet2!A2:A4,0))),B2)
    

    【讨论】:

      猜你喜欢
      • 2012-06-28
      • 1970-01-01
      • 2011-03-28
      • 2020-06-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-02-15
      • 1970-01-01
      相关资源
      最近更新 更多