0

there is a way (in open office calc) to have in a cell the result of the sum from 1 to N where N is the value of another cell?

I tryed to use Sum but this is not the thing i need!

Razlo3p
  • 455
  • 2
  • 7
  • 28

1 Answers1

2

You may use the formula n * (n+1) / 2.

https://en.wikipedia.org/wiki/1_%2B_2_%2B_3_%2B_4_%2B_

The function sum is summing up the contents of cells, you may use sum if you have an array of n cells containing 1, 2, 3, ... n.

You may also write a macro / functions that does the sum.

Christian Fries
  • 16,175
  • 10
  • 56
  • 67