Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Create variable function arguments in Google Sheets

$
0
0

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)"?


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>