Returns the expected y value for a given x value based on linear regression of data.
Syntax
new_x_value: The data point for which to predict a value. Eg., 10
y_values: A single row or column data specifying the y values. Eg., A2:A6
x_values: A single row or column data specifying the x values. Eg., B2:B6
Examples
|
Formula
|
Result
|
|
=FORECAST(C2;A2:A6;B2:B6)
|
21.58490566
|
|
=FORECAST(C3;A2:A6;B2:B6)
|
33.702830189
|
|
=FORECAST(C4;A2:A6;B2:B6)
|
56.20754717
|
Possible Errors
|
Errors
|
Meaning
|
|
#N/A!
|
|
|
#NAME!
|
|
|
#VALUE!
|
|
|
#REF!
|
|
|
#N/A!
|
|
Similar Functions