If Range("C" & (i - 1)).Value + Range("C" & i).Value = 0 Then
ActiveCell.Formula = (Range("D" & (i - 1)) + Range("D" & i)) / (Range("C" & (i - 1)) + Range("C" & i))
Else
ActiveCell.Formula = "0.00%"
End If
This is not working !! can anyone suggest where's the mistake?
I am getting Overflow error at the line which is in BOLD
ActiveCell.Formula = (Range("D" & (i - 1)) + Range("D" & i)) / (Range("C" & (i - 1)) + Range("C" & i))
Else
ActiveCell.Formula = "0.00%"
End If
This is not working !! can anyone suggest where's the mistake?
I am getting Overflow error at the line which is in BOLD