简化谷歌表格公式,这样我就不必逐列进行计算

问题描述 投票:0回答:1
=ARRAYFORMULA(
  IF(
ISNUMBER(SEARCH("LST", A2:A7)),
FILTER(REGEXEXTRACT(A2:A7, "[0-9]+"), ISNUMBER(SEARCH("LST", A2:A7))) & " " & A$1,
IF(
  ISNUMBER(SEARCH("LST", B2:B7)),
  FILTER(REGEXEXTRACT(B2:B7, "[0-9]+"), ISNUMBER(SEARCH("LST", B2:B7))) & " " & B$1,
  IF(
    ISNUMBER(SEARCH("LST", C2:C7)),
    FILTER(REGEXEXTRACT(C2:C7, "[0-9]+"), ISNUMBER(SEARCH("LST", C2:C7))) & " " & C$1,
    "" 
))))

我有这个公式并且需要制作它,这样我就不必逐列执行,只需执行 A2:7

google-sheets-formula
1个回答
0
投票

您可以直接写入 A2:C7,而无需后悔它会遍历每个单元格并检查“LST”文本

© www.soinside.com 2019 - 2024. All rights reserved.