JOIN
is not supported under ARRAYFORMULA
use in row 2:
=ARRAYFORMULA(IFNA(REGEXREPLACE(VLOOKUP(A2:A,
SPLIT(TRIM(FLATTEN(QUERY(TRANSPOSE(QUERY(FILTER(
{A2:A&"×", TEXT(B2:B, "dd.mm.yyyy hh:mm:ss")&" ;", B2:B}, J2:J<>""),
"select Col1,max(Col2) group by Col1 pivot Col3")),,
9^9))), "×"), 2, 0), "^ |;$", )))
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…