jimmy_onions
Offline
Posts: 1165
|
 |
« on: Friday, October 19, 2012, 10:46:20 » |
|
For all you excel experts, another query which I would have thought would have been ridiculously straight forward, but excel seems to be coming up wanting....
Can you do a basic summation in excel, e.g. the sigma sign..sum of x from x=1 to x=n, where n varies...
e.g 1+2+3+4+.....n
would have thought this was trivial, but apparently not?
|
|
|
Logged
|
|
|
|
Samdy Gray
Dirty sneaky traitor weasel
Offline
Posts: 27180
|
 |
« Reply #1 on: Friday, October 19, 2012, 10:47:31 » |
|
Where are you getting 'n' from? A cell value?
|
|
|
Logged
|
|
|
|
jimmy_onions
Offline
Posts: 1165
|
 |
« Reply #2 on: Friday, October 19, 2012, 10:47:52 » |
|
yes
|
|
|
Logged
|
|
|
|
Samdy Gray
Dirty sneaky traitor weasel
Offline
Posts: 27180
|
 |
« Reply #3 on: Friday, October 19, 2012, 10:52:22 » |
|
And you want to add up all the numbers between 1 and n ?
|
|
|
Logged
|
|
|
|
jimmy_onions
Offline
Posts: 1165
|
 |
« Reply #4 on: Friday, October 19, 2012, 10:55:01 » |
|
yep
|
|
|
Logged
|
|
|
|
Samdy Gray
Dirty sneaky traitor weasel
Offline
Posts: 27180
|
 |
« Reply #5 on: Friday, October 19, 2012, 10:55:43 » |
|
Use =sum((a1*(a1+1))/2), substitute a1 for the range of the cell where 'n' is stored.
|
|
|
Logged
|
|
|
|
jimmy_onions
Offline
Posts: 1165
|
 |
« Reply #6 on: Friday, October 19, 2012, 11:04:07 » |
|
samdy gauss, I mean gray...thanks a lot, that does the trick....what is your mathemtical background that you can pluck out equations like that at a drop of a hat?
That works perfectly for me, however I am still curious if there is a more general summation expression in excel which will work for the summation of any function, not just x, x^2, 3x/2, x^3/x etc etc..
|
|
|
Logged
|
|
|
|
|
jimmy_onions
Offline
Posts: 1165
|
 |
« Reply #8 on: Friday, October 19, 2012, 11:10:56 » |
|
I did my gcse over 20 years ago...long since forgotten...cheers anyway.
|
|
|
Logged
|
|
|
|
|