ben sutherland
New Member
- Joined
- May 19, 2011
- Messages
- 1
Within a formula I want to replace sub functions with cell references to these functions e.g. in cell C1 I have the formula
1. =IF(A1>0,B1+1,B1-1)
Copying sub functions B1+1 & B2-1 to cells F1 & F2 respectively, the above formula reads
2. =IF(A1>0,F1,F2)
The problem I’m having is as follows:
In a single row both formula return the same result. However if I copy the 2nd formula to the 2nd, 3rd row etc. formula 1 calculates:
Row 2 = IF(A2>0,B2+1,B2-1)
Row ‘n’ = IF(An>0,Bn+1,Bn-1)
Formula 2 however will calculate
Row 2 =IF(A2>0, B1+1,B1-1)
Row ’n’ =IF(An>0, B1+1,B1-1)
Relative cell referencing doesn’t apply to the 2nd formula because I’m using other cell references. Is there a way around this problem or do I need to take a different approach?
Would greatly appreciate any advice.
Thanks
1. =IF(A1>0,B1+1,B1-1)
Copying sub functions B1+1 & B2-1 to cells F1 & F2 respectively, the above formula reads
2. =IF(A1>0,F1,F2)
The problem I’m having is as follows:
In a single row both formula return the same result. However if I copy the 2nd formula to the 2nd, 3rd row etc. formula 1 calculates:
Row 2 = IF(A2>0,B2+1,B2-1)
Row ‘n’ = IF(An>0,Bn+1,Bn-1)
Formula 2 however will calculate
Row 2 =IF(A2>0, B1+1,B1-1)
Row ’n’ =IF(An>0, B1+1,B1-1)
Relative cell referencing doesn’t apply to the 2nd formula because I’m using other cell references. Is there a way around this problem or do I need to take a different approach?
Would greatly appreciate any advice.
Thanks