ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How to use linest with variably sized data arrays? (https://www.excelbanter.com/excel-worksheet-functions/21844-how-use-linest-variably-sized-data-arrays.html)

[email protected]

How to use linest with variably sized data arrays?
 
I have a spreadsheet which loads data for two time series from the
database given a start date and end date. I would like to calculate a
regression between these two series using linest.

The problem is that depending on the start and end date, I might have
different size of arrays to enter into linest.

The first try was to include the largest possible range of arrays
-hoping that linest will ignore empty cells when I am loading fewer
data items - but linest does not ignore empty cells.

Next I tried

linest(resize(range1,datasize,1), resize(range2,datasize,1), 1, 0)

But that gives me different results (what?) than if I use linest with
the exact ranges.

Any ideas?

thanks in advance and please ask for clarification - this is my first
time posting here.

matal



All times are GMT +1. The time now is 09:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com