Sub example()
Dim LastRow As Integer
LastRow = (ActiveSheet.UsedRange.Rows.Count)
R = 6
Do Until R = LastRow
If (Range("Y" & R) > 0) Then
Range("AZ" & R) = "Weighted ave formulae"
Range("AG" & R).Formula = "=(U1*W1)"
End If
R = R + 1
Loop
End Sub
Where U1 and W1 should always be U and the current Rth row and W and the current Rth row
I need the AG to contain the formula itself and not just the result