Hello,
Any help appreciated. The below code works fine EXCEPT when it goes down multiple rows it seems to just copy the first cell down multiple times. My guess is that although [FONT="]Range("x11") is anchoring or in other words not moving to the new cells as it goes down, causing the problem.[/FONT]
Any help appreciated. The below code works fine EXCEPT when it goes down multiple rows it seems to just copy the first cell down multiple times. My guess is that although [FONT="]Range("x11") is anchoring or in other words not moving to the new cells as it goes down, causing the problem.[/FONT]
Code:
[COLOR=#1A1A1A][FONT="]Dim LastRow As Long[/FONT][/COLOR][COLOR=#1A1A1A][FONT="]
With ActiveWorkbook.Sheets("Report")
LastRow = .Range("A" & .Rows.Count).End(xlUp).Row
End With
ActiveSheet.Range("V11").Formula = Range("x11") / Application.SumIf(Range("i11:i" & LastRow), (Range("i11")), Range("x11:x" & LastRow))
[/FONT][/COLOR]
[COLOR=#1A1A1A][FONT="]Range("V11").Copy[/FONT][/COLOR]