= XMATCH(A5:A979,Data!C7:C1120)
= {1,2,4,12,14}
= INDEX(Array, rowNumbers, columnNumbers)
= LET(
rowIndex, XMATCH(lookupValues,lookupRange),
columnIdx, {1,4,10,16,17},
result, INDEX(data, rowIndex, columnIdx),
IFNA(result,0))
= LET(
z, data,
ℓ, lookupValues,
FILTER(
FILTER(SORTBY(z,MATCH(INDEX(z,,2),ℓ,)),SEQUENCE(ROWS(z))<=ROWS(ℓ)),
{1,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,1}
)
)