The_Rock
Board Regular
- Joined
- Jul 2, 2007
- Messages
- 174
Hi Folks
I want to put in a formula in C6 to sum all the data from B10 down to the last row of data. Column B will always start from B10 but has variable data.
I tried the following but that only added two rows.
Range("C6").FormulaR1C1 = "=SUM(R10C:R[5]C[-1])"
The following is a compile error. Can this be modified in anyway?
Range("C6").FormulaR1C1 "=Sum(Range("B10:B" & Range("B" & Rows.Count).End(xlUp).Row))"
Cheers
I want to put in a formula in C6 to sum all the data from B10 down to the last row of data. Column B will always start from B10 but has variable data.
I tried the following but that only added two rows.
Range("C6").FormulaR1C1 = "=SUM(R10C:R[5]C[-1])"
The following is a compile error. Can this be modified in anyway?
Range("C6").FormulaR1C1 "=Sum(Range("B10:B" & Range("B" & Rows.Count).End(xlUp).Row))"
Cheers