Custom function for max residual from linear regression
You're welcome. Glad it helped.
Jerry
"Bob Nelson" wrote:
Jerry,
Great solution! This eliminated the need for VBA in my case. With one
extra column in the worksheet, I was able to track when a new starting
row was signaled for the dynamic arrays (used to generate a line), then
use OFFSET in combination with TREND to return max (and min) residuals
using your formula.
Thanks again for the collective wisdom of the group in your solutions
to this question!
Bob
|