I am using a linear regression array formula that uses a range of three columns, X, Y, and Yerror. Works great. However, the number of data points is variable. Is there a way to make the array formula detect the size of the range, or to ignore empty cells at the end of the range.
The array formula is
=LSFit(C9:C17,D9:D17,E9:E17), an add-in that computes weighted least squares fit with errors.
I have tried LSFit(if(C9:C17<>"",C9:C17),if(D9:D17<>"",D9:D17),if(E9:E17<>"",E9:E17)), but this returns DIV/0 just the same if blank lines are included in the array formula.
Is there a way to accomplish this, or do I need to resize the ranges in the formula each time I have a different number of inputs?
I have done this with loops in VBA, but would rather keep this simple.
The array formula is
=LSFit(C9:C17,D9:D17,E9:E17), an add-in that computes weighted least squares fit with errors.
I have tried LSFit(if(C9:C17<>"",C9:C17),if(D9:D17<>"",D9:D17),if(E9:E17<>"",E9:E17)), but this returns DIV/0 just the same if blank lines are included in the array formula.
Is there a way to accomplish this, or do I need to resize the ranges in the formula each time I have a different number of inputs?
I have done this with loops in VBA, but would rather keep this simple.