A
Alan
Hi All,
I need to create an array (matrix) that is N x N elements (square),
containing '1's from the top right hand corner to the bottom left hand
corner only. The rest of the array would be zeros.
I would like to find a way of doing this with a worksheet function (or
functions) only - no VBA to be involved.
Obviously I can manually create this for any given value of N (say, N =
4):
={0,0,0,1;0,0,1,0;0,1,0,0;1,0,0,0}
But how can I set this up so that I can enter N in a cell, and get that
array returned for use in another formula?
Thanks in advance for any help you can give.
If you need clarification, just ask.
Alan.
I need to create an array (matrix) that is N x N elements (square),
containing '1's from the top right hand corner to the bottom left hand
corner only. The rest of the array would be zeros.
I would like to find a way of doing this with a worksheet function (or
functions) only - no VBA to be involved.
Obviously I can manually create this for any given value of N (say, N =
4):
={0,0,0,1;0,0,1,0;0,1,0,0;1,0,0,0}
But how can I set this up so that I can enter N in a cell, and get that
array returned for use in another formula?
Thanks in advance for any help you can give.
If you need clarification, just ask.
Alan.