I'm sure this is super basic for you guys.
Given a number n, I want to add up n numbers in a column.
Column of numbers
5
10
15
20
Example
If n=1 then 5 is returned
If n=2 then 15 is returned
If n=3 then 30 is returned
If n=4 then 50 is returned
I've tried to use a sum(index) based method without success.
Any ideas?
Given a number n, I want to add up n numbers in a column.
Column of numbers
5
10
15
20
Example
If n=1 then 5 is returned
If n=2 then 15 is returned
If n=3 then 30 is returned
If n=4 then 50 is returned
I've tried to use a sum(index) based method without success.
Any ideas?