Google 工作表公式更新
Google Sheets Formula Update
我这里有一个电子表格:https://docs.google.com/spreadsheets/d/1zh1EvjMqOnQVx4KAfHUEWT8_kCst1MOu0cJpUHb39q4/edit?usp=sharing
我正在尝试用我在 C 列的第二行(每场比赛)中选择的年龄来填充我的列。我现在拥有的公式适用于每个年龄段,但无法适用于第 68 行(第 5 场比赛)中称为 "LIT" 的组。
注意 - 它也适用于 "All star" 比赛的特殊情况。参见第 243 行
=ARRAYFORMULA(IF(LEN(D3:D866),vlookup(row(A3:866)+REGEXMATCH(C3:C866&E3:E866,"^RACE.+\d$"),SORT({row(H3:H866)*(REGEXMATCH(C3:C866&E3:E866,"\d+s")),iferror(REGEXEXTRACT(C3:C866&E3:E866,"\d+s"))}),2,2)&" "&D3:D866&"s",))
尝试:
=ARRAYFORMULA(IF(D3:D="",,IF(IF(ROW(A3:A) <= MAX(IF(D3:D<>"", ROW(A3:A))),
VLOOKUP(ROW(A3:A), FILTER({ROW(A3:A),
{QUERY(IFNA(REGEXEXTRACT(C3:C, "LIT|\d+s|All Star")), "offset 1", 0); ""}}, LEN(
{QUERY(IFNA(REGEXEXTRACT(C3:C, "LIT|\d+s|All Star")), "offset 1", 0); ""})), 2), )=
"All Star", E3:E&" "&D3:D, IF(ROW(A3:A) <= MAX(IF(D3:D<>"", ROW(A3:A))),
VLOOKUP(ROW(A3:A), FILTER({ROW(A3:A),
{QUERY(IFNA(REGEXEXTRACT(C3:C, "LIT|\d+s|All Star")), "offset 1", 0); ""}}, LEN(
{QUERY(IFNA(REGEXEXTRACT(C3:C, "LIT|\d+s|All Star")), "offset 1", 0); ""})), 2), )&" "&D3:D)))
我这里有一个电子表格:https://docs.google.com/spreadsheets/d/1zh1EvjMqOnQVx4KAfHUEWT8_kCst1MOu0cJpUHb39q4/edit?usp=sharing
我正在尝试用我在 C 列的第二行(每场比赛)中选择的年龄来填充我的列。我现在拥有的公式适用于每个年龄段,但无法适用于第 68 行(第 5 场比赛)中称为 "LIT" 的组。
注意 - 它也适用于 "All star" 比赛的特殊情况。参见第 243 行
=ARRAYFORMULA(IF(LEN(D3:D866),vlookup(row(A3:866)+REGEXMATCH(C3:C866&E3:E866,"^RACE.+\d$"),SORT({row(H3:H866)*(REGEXMATCH(C3:C866&E3:E866,"\d+s")),iferror(REGEXEXTRACT(C3:C866&E3:E866,"\d+s"))}),2,2)&" "&D3:D866&"s",))
尝试:
=ARRAYFORMULA(IF(D3:D="",,IF(IF(ROW(A3:A) <= MAX(IF(D3:D<>"", ROW(A3:A))),
VLOOKUP(ROW(A3:A), FILTER({ROW(A3:A),
{QUERY(IFNA(REGEXEXTRACT(C3:C, "LIT|\d+s|All Star")), "offset 1", 0); ""}}, LEN(
{QUERY(IFNA(REGEXEXTRACT(C3:C, "LIT|\d+s|All Star")), "offset 1", 0); ""})), 2), )=
"All Star", E3:E&" "&D3:D, IF(ROW(A3:A) <= MAX(IF(D3:D<>"", ROW(A3:A))),
VLOOKUP(ROW(A3:A), FILTER({ROW(A3:A),
{QUERY(IFNA(REGEXEXTRACT(C3:C, "LIT|\d+s|All Star")), "offset 1", 0); ""}}, LEN(
{QUERY(IFNA(REGEXEXTRACT(C3:C, "LIT|\d+s|All Star")), "offset 1", 0); ""})), 2), )&" "&D3:D)))