In case you are not familiar with find attached three different ways for getting the quadratic regression using built-in functions.
At the end of the file you find your "manual" made regression written as a function.
Message was edited by: Werner Exinger