I have a small table in C3:D11. The formula in G3 is =UNIQUE(C3:C11), which is dynamic array. I manually list several numbers in H3:K3.
Then I would like to fill in the table H3:K8. Let's take H3 for example. If in the raw table, there exists a row whose first element is A and second element is 1, then H3 is TRUE. The formula =NOT(ISERROR(XMATCH(1,($G3=$C$3:$C$11)*(H$2=$D$3:$D$11),FALSE))) works fine (although i'm not sure if it is the best). Then we could copy paste the formula to the whole table.
However, the problem of the above table is that it is not dynamic; it does not spill. I'm thinking how to write a dynamic formula that could spill. I tried in H3 =NOT(ISERROR(XMATCH(1,($G3#=$C$3:$C$11)*(H$2=$D$3:$D$11),FALSE))). It did work for H3, but it did not spill to the rest of Column H.
Does anyone know how to write dynamic formulas to achieve this match with multiple criteria?


