【问题标题】:How can I use ArrayFormula within a formula containing Vlookup, Filter and RegexMatch如何在包含 Vlookup、Filter 和 RegexMatch 的公式中使用 ArrayFormula
【发布时间】:2019-07-30 15:11:39
【问题描述】:

我正在制作一个 Google 电子表格,用于检查 A 列中的值是否包含 F 列列表中的关键字。问题是我想检查 A 中的值是否完全相同或部分相同。

在我在这里找到的大量帮助下,我创建了这个工作公式:

=VLOOKUP(FILTER(ArrayFormula((LOWER(F:F)));REGEXMATCH(LOWER(A2);ArrayFormula((LOWER(F:F)))));ArrayFormula((LOWER(F:G)));1;FALSE)

因为我想使用 ARRAYFORMULA 自动导入新的数据行。不幸的是,我无法完成它。

这是我的工作公式:

=VLOOKUP(FILTER(ArrayFormula((LOWER(F:F)));REGEXMATCH(LOWER(A2);ArrayFormula((LOWER(F:F)))));ArrayFormula((LOWER(F:F)));1;FALSE)

=VLOOKUP(FILTER(ArrayFormula((LOWER(F:F)));REGEXMATCH(LOWER(A3);ArrayFormula((LOWER(F:F)))));ArrayFormula((LOWER(F:F)));1;FALSE)

您可以在此处找到我的电子表格: https://docs.google.com/spreadsheets/d/1aIdQ65SdeXW-4cTr8azQIiLNGcRCvTexGS_lFu8mECs/edit#gid=1308644379

【问题讨论】:

    标签: regex google-sheets google-sheets-formula array-formulas textjoin


    【解决方案1】:
    =ARRAYFORMULA(PROPER(IFERROR(REGEXEXTRACT(LOWER(A2:A); LOWER(TEXTJOIN("|"; 1; F2:F))))))
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-04-10
      • 2021-09-26
      • 2023-03-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-10-16
      • 1970-01-01
      相关资源
      最近更新 更多