The slope function in Excel takes two arrays as inputs. Perhaps the original poster was interested in more than just two numbers.

Also, I originally wrote this function to return both. Even though the question only called for slope, it is not out of the question that the user might need to get the intercept eventually.