SirJB7,
The problem is how you enter and copy the Array formula, which in some instances does not change the relative reference in the formula, I fixed the formula, but could not explain the reason why it happened. You will note in the formula where it refers to I1, this reference did not change in the original file, I subsequently changed the formula.
It would be a good idea for someone to do a write-up on editing array formulas, to get past the "cannot change part...."
Thanks
Kanti
Hi Kanti ,
The reason the array formula does not change the relative reference is because of the way it has been entered.
Array formulae are of two types :
1. Where the array formula is entered in a single cell , using CTRL SHIFT ENTER.
2. Where the array formula is entered over multiple cells , first selecting the range of multiple cells , and then entering the array formula using CTRL SHIFT ENTER. In such a case , the formula will be identical in all the cells of the range.
Neither of these formula types will work if entered the other way i.e. a formula which needs to be entered in a single cell and copied down , will not work if entered the second way ; the second type of formula will not work if entered the first way and copied down.
To illustrate the second , consider a formula such as :
=FREQUENCY(ROW($1:$5),ROW($1:$5))
=FREQUENCY(ROW(1:5),ROW(1:5))
=FREQUENCY({1;2;3;4;5},{1;2;3;4;5})
If any of the above formulae is entered in a single cell , even using CTRL SHIFT ENTER , and copied down to multiple rows , it will not give the correct result ; the only way it will give the correct result is if the appropriate range of cells ( in this case 6 ) is selected first , and then the formula is array entered using CTRL SHIFT ENTER.
Here
the formula in all the 6 cells will be identical , but the outputs in each cell will be calculated correctly , and can be different depending on the input data.
The difference between the first formula , which uses absolute references , and the second which uses relative references , does not matter when the formula is entered correctly.
An example of the first formula type being entered the second way is any formula which uses the INDEX / SMALL combination ; in this , the ROW(A1) is being used , and it is expected that when the formula is array entered in one cell , and then copied down , the A1 increments to A2 , A3 ,...
However , if this same formula is array entered by first selecting a multiple-row range , and then array entering the formula using CTRL SHIFT ENTER , then
all the cells in the range will have an identical formula , and the output will also be identical.
Narayan