Hi to all,
I have a formula that has an 1-dim array like this:
and if I want to search "1", the result is position is 7.
now, if I have a 2-dim array (4x4), is there a way to look the position of first "1"?
Is this case, the first "1" would be in position 3 of "second line". So, is the answer could be 2,3 or only 3 since I'm more interested in column position. Currently with MATCH I get #N/A
Thanks in advance.
I have a formula that has an 1-dim array like this:
VBA Code:
{0,0,0,0,0,0,1,1,0,1,0,0,0,1,1,1}
and if I want to search "1", the result is position is 7.
VBA Code:
=MATCH(1,{0,0,0,0,0,0,1,1,0,1,0,0,0,1,1,1},0) = 7
now, if I have a 2-dim array (4x4), is there a way to look the position of first "1"?
Code:
0,0,0,0
0,0,1,1 ---> 2nd row, position 3
0,1,0,0
0,1,1,1
Is this case, the first "1" would be in position 3 of "second line". So, is the answer could be 2,3 or only 3 since I'm more interested in column position. Currently with MATCH I get #N/A
Code:
=MATCH(1,{0,0,0,0;0,0,1,1;0,1,0,0;0,1,1,1},0) =#N/A
Thanks in advance.