Given this array
{0,1,0,0;0,1,0,0}
I would like to return the number 2 for the column number where both rows contain a 1.
I tried
XMATCH(1,{0,1,0,0;0,1,0,0},0)
and even
XMATCH({1;1},{0,1,0,0;0,1,0,0},0)
but none of them worked.
Any help would be appreciated