I know that my question illustrates a fundamental lack of understanding, but I have hacked together a sheet that almost works except...
I am importing data from googlefinance then operating on the data. The problem is that the length of the data is not always the same. So my problem boils down to this:
Assume column A and B contains data e.g. A1-A10 contains date and B1-B10 contains price, cell c1 contains a COUNT of the data in column A so I know how many data points.
=TREND(B1:B10,A1:A10)
will result in a trend line if I get all 10 data points and fail if not
How can I modify the TREND function arguments so that "A10" is instead "A(0 + the contents of C1)"?