I have data columms AA to AG from Sheet BTR ERT-ATREW to the last sheet
I have the folowing formulaa in Col B:D from row 11 onwards
When running the formula below., it insert the folowing formula
It would be appreciated if someone could amend my formula
I have the folowing formulaa in Col B:D from row 11 onwards
Code:
ColB Col C Col D
=IF(AA2="","",AA2) =IF(AD2="","",AD2) =IF(AB2="","",AB2)
When running the formula below., it insert the folowing formula
Code:
=IF(#REF!="","",#REF!)
Code:
Sub Formula_Branches()
Dim I As Long, LR As Long
Application.ScreenUpdating = False
For I = Sheets("BTR ERT-ATREW").Index To Worksheets.Count
With Sheets(I)
LR = .Cells(.Rows.Count, "AA").End(xlUp).Row
.Range("B11:B" & LR).FormulaR1C1 = "=IF(R[-9]C[25]="""","""",R[-9]C[25])"
.Range("C11:C" & LR).FormulaR1C1 = "=IF(R[-9]C[27]="""","""",R[-9]C[27])"
.Range("D11:D" & LR).FormulaR1C1 = "=IF(R[-9]C[24]="""","""",R[-9]C[24])"
End With
Next I
Application.ScreenUpdating = False
End Sub
It would be appreciated if someone could amend my formula