cmschmitz24
Board Regular
- Joined
- Jan 27, 2017
- Messages
- 150
I need to have my formula sum all of the column, but the data is variable.
My formula is:
Range("P2:R2").FormulaR1C1 = "=+SUM(R[2]C:R[298]C)"
but I could have more or less than 300 rows
I typically use something like this for variable data but I am not sure how to apply it to my formula:
("A2:A" & Cells(Rows.Count, "A").End(xlUp).Row)
Thanks!
My formula is:
Range("P2:R2").FormulaR1C1 = "=+SUM(R[2]C:R[298]C)"
but I could have more or less than 300 rows
I typically use something like this for variable data but I am not sure how to apply it to my formula:
("A2:A" & Cells(Rows.Count, "A").End(xlUp).Row)
Thanks!