使用 importrange 从不同的 sheet 中提取文本和特定文本的数量
Pulling text and count of specific text from a different sheet using importrange
我有一个 Google sheet 包含一个 'Notes' 列,我想将这些单元格中的注释导入另一个 sheet 并计算一次某个单词或短语出现。我希望 words/phrases 出现在用逗号分隔的同一个单元格中。因此,例如导入 sheet 中的单元格看起来像“1 已启动,3 已完成,2 需要更多信息,1 待定”。有一组words/phrases可以在注释栏中。
尝试:
=ARRAYFORMULA(IFNA(VLOOKUP(INDIRECT("A3:A"&COUNTA(A3:A)+2),
SPLIT(REGEXREPLACE(REGEXREPLACE(TRIM(TRANSPOSE(QUERY(IF(""<>
QUERY(IMPORTRANGE("1dnpQQX0YA-_BCxmcfpWYhkLupLPVarP_-C7RSKdpvJ0", "Sheet1!A2:B"),
"select count(Col2) where Col2 is not null group by Col2 pivot Col1"),
QUERY(IMPORTRANGE("1dnpQQX0YA-_BCxmcfpWYhkLupLPVarP_-C7RSKdpvJ0", "Sheet1!A2:B"),
"select count(Col2) where Col2 is not null group by Col2 pivot Col1")&" "&INDEX(
QUERY(IMPORTRANGE("1dnpQQX0YA-_BCxmcfpWYhkLupLPVarP_-C7RSKdpvJ0", "Sheet1!A2:B"),
"select Col2,count(Col2) where Col2 is not null group by Col2 pivot Col1"),,1)&",", )
,,99^99))), " , ", "♦"), ",$", ), "♦"), 2, 0), "Not Data"))
我有一个 Google sheet 包含一个 'Notes' 列,我想将这些单元格中的注释导入另一个 sheet 并计算一次某个单词或短语出现。我希望 words/phrases 出现在用逗号分隔的同一个单元格中。因此,例如导入 sheet 中的单元格看起来像“1 已启动,3 已完成,2 需要更多信息,1 待定”。有一组words/phrases可以在注释栏中。
尝试:
=ARRAYFORMULA(IFNA(VLOOKUP(INDIRECT("A3:A"&COUNTA(A3:A)+2),
SPLIT(REGEXREPLACE(REGEXREPLACE(TRIM(TRANSPOSE(QUERY(IF(""<>
QUERY(IMPORTRANGE("1dnpQQX0YA-_BCxmcfpWYhkLupLPVarP_-C7RSKdpvJ0", "Sheet1!A2:B"),
"select count(Col2) where Col2 is not null group by Col2 pivot Col1"),
QUERY(IMPORTRANGE("1dnpQQX0YA-_BCxmcfpWYhkLupLPVarP_-C7RSKdpvJ0", "Sheet1!A2:B"),
"select count(Col2) where Col2 is not null group by Col2 pivot Col1")&" "&INDEX(
QUERY(IMPORTRANGE("1dnpQQX0YA-_BCxmcfpWYhkLupLPVarP_-C7RSKdpvJ0", "Sheet1!A2:B"),
"select Col2,count(Col2) where Col2 is not null group by Col2 pivot Col1"),,1)&",", )
,,99^99))), " , ", "♦"), ",$", ), "♦"), 2, 0), "Not Data"))