A
Andreww
Hi - I have a formula in cell Q2 which is =I2, if the row is the 2nd row
(i.e. below title row). If it's the 3rd row it's =I3+Q2, 4th ==I4+Q3, etc
the point being that it accumulates after row 2 as row 2 is effectively the
first row... still with me.
The user now, quite reasonably, wants to sort the worksheet. So... the
formulas will all go out of synch and the accumulations will be incorrect!
What I want to do is put in a trap to check if the row is the 2nd/not - if
it is it gets I2, if it's n'th it gets In+Q(n-1) (i.e. if it's 7th it
becomes =I7+Q6).
I know that row() detects which row the cell is in, but I don't know how to
get the formula back into the cell - if(row()=2,"=I"+row(),.....)
Any ideas without a Macro???
TIA
Andrew
wwwdotjmdatadotcodotuk
(i.e. below title row). If it's the 3rd row it's =I3+Q2, 4th ==I4+Q3, etc
the point being that it accumulates after row 2 as row 2 is effectively the
first row... still with me.
The user now, quite reasonably, wants to sort the worksheet. So... the
formulas will all go out of synch and the accumulations will be incorrect!
What I want to do is put in a trap to check if the row is the 2nd/not - if
it is it gets I2, if it's n'th it gets In+Q(n-1) (i.e. if it's 7th it
becomes =I7+Q6).
I know that row() detects which row the cell is in, but I don't know how to
get the formula back into the cell - if(row()=2,"=I"+row(),.....)
Any ideas without a Macro???
TIA
Andrew
wwwdotjmdatadotcodotuk