=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
您可以直接写入 A2:C7,而无需后悔它会遍历每个单元格并检查“LST”文本