다음을 통해 공유


WorksheetFunction.Forecast Method (Excel)

Calculates, or predicts, a future value by using existing values. The predicted value is a y-value for a given x-value. The known values are existing x-values and y-values, and the new value is predicted by using linear regression. You can use this function to predict future sales, inventory requirements, or consumer trends.

Syntax

.Forecast(Arg1, Arg2, Arg3)

A variable that represents a WorksheetFunction object.

Parameters

Name

Required/Optional

Data Type

Description

Arg1

필수

Double

X - the data point for which you want to predict a value.

Arg2

필수

Variant

Known_y's - the dependent array or range of data.

Arg3

필수

Variant

Known_x's - the independent array or range of data.

Return Value

Double

Remarks

  • If x is nonnumeric, FORECAST returns the #VALUE! error value.

  • If known_y's and known_x's are empty or contain a different number of data points, FORECAST returns the #N/A error value.

  • If the variance of known_x's equals zero, then FORECAST returns the #DIV/0! error value.

  • The equation for FORECAST is a+bx, where: Ff837399.awfintc1_ZA06051174(ko-kr,office.14).gifand: Ff837399.awfintc2_ZA06051175(ko-kr,office.14).gifand where x and y are the sample means AVERAGE(known_x's) and AVERAGE(known y's).

참고 항목

개념

WorksheetFunction Object

WorksheetFunction Object Members