I have the following vba which works, but i need to change the sum
For i = 1 To Cells(Rows.Count, "b").End(xlUp).Row
Range("ae" & i) = WorksheetFunction.Sum(Range("ad" & i & ":af" & i))
Next i
it needs to say
Range("ae" & i) = WorksheetFunction.Sum(Range("ad" & i & ":af" & i ":-y" & i))...