T
The Cube
Hi all.
Using XL2002 but needs to be XL97 compatible.
With ActiveCell Transactions!F6
I have defined a local named range Transactions!Test
refers to
=(Assets!Category_Range=Transactions!$E6)
Assets!Category_Range is a name that refers to an absolutely defined single
column of data
The relative reference to row 6 in the above is intentional but probably not
relevant for what follows.
Evaluating the array Transactions!Test produces something like this:
False;
False;
True;
False;
True;
True;
False;
<etc>
This is correct and predicted behaviour.
I want to create another local named range Transactions!Result derived from
Transactions!Test
that produces an array of the same dimensions as Transactions!Test and which
when evaluated would produce something like this (using the same data as
above):
0;
0;
1;
1;
2;
3;
3;
The rules governing Transactions!Result are:
(1) First element of Transactions!Result should be:
(a) 1 if the corresponding (ie first) element of Transactions!Test
is True,
(b) else 0
(2) Each element of Transactions!Result after the first should be equal to
the sum of the value of the previous element in Transactions!Result and
(a) 1 if the corresponding element in Transactions!Test is True
(b) else 0
The solution needs to make no use of cells in worksheets.
Can someone please help me with the definition of named range
Transactions!Result?
Thanks
-Cube
Using XL2002 but needs to be XL97 compatible.
With ActiveCell Transactions!F6
I have defined a local named range Transactions!Test
refers to
=(Assets!Category_Range=Transactions!$E6)
Assets!Category_Range is a name that refers to an absolutely defined single
column of data
The relative reference to row 6 in the above is intentional but probably not
relevant for what follows.
Evaluating the array Transactions!Test produces something like this:
False;
False;
True;
False;
True;
True;
False;
<etc>
This is correct and predicted behaviour.
I want to create another local named range Transactions!Result derived from
Transactions!Test
that produces an array of the same dimensions as Transactions!Test and which
when evaluated would produce something like this (using the same data as
above):
0;
0;
1;
1;
2;
3;
3;
The rules governing Transactions!Result are:
(1) First element of Transactions!Result should be:
(a) 1 if the corresponding (ie first) element of Transactions!Test
is True,
(b) else 0
(2) Each element of Transactions!Result after the first should be equal to
the sum of the value of the previous element in Transactions!Result and
(a) 1 if the corresponding element in Transactions!Test is True
(b) else 0
The solution needs to make no use of cells in worksheets.
Can someone please help me with the definition of named range
Transactions!Result?
Thanks
-Cube