That wasn't quite the solution I was going for, but what you've got will work just fine.

One thiing to note...in the first line below:
Quote Originally Posted by Pesticida View Post
Daten[N]= ((Daten[N]-$30) *10) + (Daten[N-1]-$30)
You might want to put in some code for checking an out-of-bounds condition.