この関数は Google スプレッドシートでも Excel と同じように機能します。構文も引数も同じです。
TREND(known_ys, [known_xs], [new_xs], [const])The TREND function calculates a linear trend line through a given set of data points using the least squares method. It returns the y-values along that line for the specified new x-values.
=TREND({10,20,30}, {1,2,3}, {4})結果: 40
Predicts the y-value for x=4 based on the linear trend of the provided data.
If omitted, it is assumed to be the array {1, 2, 3, ...} of the same size as known_ys.