LINREGR

G

Guest

I have a data table where I want to put in a variable set of x's and
corresponding y values.
Because the dataset is variable in size, I cannot use the LINREGR to
automatically calculate the regression, because some of the cells in its
reference area might be empty, because of data lack.
Is there a way I can make the regression function automatically (so that it
only uses cells in the reference area where the is data typed in), so that I
do not have to make the chance the referance area for the regression every
time I have at data point (x,y) more or less?

Maybe macros can help me?
 
G

Guest

You could do this with macros, but have you tried using a combination of
indirect to return only the used range?

See this array formula from Bob Umlas on retrieving the last used cell in a
range, then use the indirect function to build your range to pass as the
argument for your LINREGR function.

http://www.emailoffice.com/excel/arrays-bobumlas.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top