Greetings: First post in this forum.
If I overlook any of the rules, please let me know quick.
Have a range of cells in Column E. Alway starting on E6, but number or rows unknow/variable.
Each of the E6 and Down cells need to read +Cxx - where xx is the last row in column C.
I've included extracts of my code (and was going to send sample copy - Not available to me?). This will hopefully clarify exactly what I am trying to acomplish.
If I can find figure out how to do attachments, I will yet add it.
If I overlook any of the rules, please let me know quick.
Have a range of cells in Column E. Alway starting on E6, but number or rows unknow/variable.
Each of the E6 and Down cells need to read +Cxx - where xx is the last row in column C.
I've included extracts of my code (and was going to send sample copy - Not available to me?). This will hopefully clarify exactly what I am trying to acomplish.
Code:
Sub Test_JFS()
Dim LastRow As Long
LastRow = Cells(Rows.Count, "C").End(xlUp).Row
' Copy C Column VALUES to F6 and down
Range("F6:F" & LastRow).Value = Range("C6:C" & LastRow).Value
' Sum Column C
Cells(LastRow + 1, "C").Formula = "=Sum(C6:C" & LastRow & ")"
' Count # of Units(rows) in Column C
Cells(LastRow + 2, "C").Formula = "=Count(C6:C" & LastRow & ")"
' Calculate Average: Sum divided by # of Units
Cells(LastRow + 3, "C").Formula = "=R[-2]C/R[-1]"
' HERE is Where I'm Stuck
' Range E6 & Down to End to = Range C6 EndDown (Use last used cell)
' Cells in Column E must read +C14 (last row), as reference
' The following comes up with a Compile Error: A Syntax Error
Range("E6:E" & LastRow).Formula = "=Formula("C6").End(xldown)
End Sub