A formula that would sum all the numbers between two numbers, inclusive.

Formula:

x is the smaller number of the two. y is the larger one.

This formula has the advantage that it can be used quickly for huge numbers of integers, such as databases and arrays. -www.mytutorfriend.com