L
lukus2005
As previously posted, I am trying to build a formula that updates its
cell references automatically based on what line the formula is
entered.
My formula will be more complex but for the sake of simplicity, here's
an example of what I'm trying to achieve...
A1 = 100
A2 = 25
A3 = C3
B1 = 50
B2 = 10
B3 = C3
C3 = formula that adds A1+A2 or B1+B2, depending on the row number.
Please remember that this is a simple example and that my actual
formula will be more complex and therefore, an IF statement will be
too long for what I want to achieve.
In other words, my formula has to be generic so that several cells may
refer to it and it will update the cell references within the formula
based on the referring cell's row #. ie: C3 = (referring cell's row
#)1 + (referring cell's row #)2 so that A3 = 125 and B3 = 60
cell references automatically based on what line the formula is
entered.
My formula will be more complex but for the sake of simplicity, here's
an example of what I'm trying to achieve...
A1 = 100
A2 = 25
A3 = C3
B1 = 50
B2 = 10
B3 = C3
C3 = formula that adds A1+A2 or B1+B2, depending on the row number.
Please remember that this is a simple example and that my actual
formula will be more complex and therefore, an IF statement will be
too long for what I want to achieve.
In other words, my formula has to be generic so that several cells may
refer to it and it will update the cell references within the formula
based on the referring cell's row #. ie: C3 = (referring cell's row
#)1 + (referring cell's row #)2 so that A3 = 125 and B3 = 60