EXCEL - generic formula cell above?
Solved
bichette
-
Vincent -
Vincent -
Hello,
in my table, in column A, I put line numbers. For now, I have the simple formula, for example in A4:
=A3+1
and then I dragged the formula down the whole column.
The problem is that if I delete an entire row, I end up with #REF!, of course.
Do you know a formula that says something like:
"above cell" +1
Is there some kind of trick with ADDRESS or INDIRECT???
Thanks!
in my table, in column A, I put line numbers. For now, I have the simple formula, for example in A4:
=A3+1
and then I dragged the formula down the whole column.
The problem is that if I delete an entire row, I end up with #REF!, of course.
Do you know a formula that says something like:
"above cell" +1
Is there some kind of trick with ADDRESS or INDIRECT???
Thanks!
Configuration: Windows XP Firefox 3.0.11
8 answers
-
If your starting cell is A3
you place the formula in A4 and drag it down
the cells will increment by 1
since
INDIRECT("A"&LIGNE()-1) gives you the value of the cell above
INDIRECT("A"&LIGNE()-1)+1 adds 1 to the value of the cell above, which is what you requested
you can thus delete a line from line 4 to X
--
Best regards, Michel -
Hello sweetheart
=INDIRECT("A"&ROW()-1)+1
--
Best regards, Michel -
thank you michel for the explanation
i adapted the formula: =INDIRECT("B"&ROW()-1)+1
it works well when I drag it down.
but when I delete a row I still get the REF!
arrgghhh -
Hello,
What if we want to select the cell below?
My references are arranged in order and I would like it to take the cell below the given one.
Thank you -
Thank you, Michel.
But I don't know how to use your formula. Can you give an example?
If I put 1 as "hard" in cell A3 and I put your formula in A4.
Thanks again for your help. -
-
That said, it works well, but EXCEL puts a green triangle in the cells and displays "inconsistent calculated column formula."
What's the point??? -
If your starting cell is A3
you put the formula in A4 and drag it down
the cells will increment by 1
since
INDIRECT("A"&LIGNE()-1) gives you the value of the cell above
INDIRECT("A"&LIGNE()-1)+1 adds 1 to the value of the cell above, which is what you asked for
you can thus delete a line from line 4 to X
--
Best regards, Michel