Compatibility All versions ◉ 18 views

=FORECAST()

Predicts a future value based on a linear trend (the legacy FORECAST.LINEAR)

Applies To: Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016
=FORECAST(x, known_y's, known_x's)
Hover argument names in the table for details.
Output typeNumber
Popularity35 / 100
VolatileNo
Dynamic ArrayNo
📥 Download sample .xlsx — Coming soon ▦ Try in Playground Dedicated file for this function — safe & lightweight · sample data + live formulas
Share:

⬇ Download Sample Workbook

A dedicated .xlsx for =FORECAST() with Persian sample data & live formulas — open in Excel and practice.

  • Sheet “Sample” — data table + formula in place
  • Sheet “Guide” — syntax, arguments & tips from this page
  • Instant & secure (token + rate limit)
📥 Download FORECAST.xlsx — Coming soon ~ 8–12 KB · No macros

⇪ Share

Send this function to friends

🧠 🧠 Quiz this function

%d questions — syntax, example & errors — test yourself!

◧ Arguments

ArgumentTypeRequiredDescription
x Number Required The value to predict
known_y's Range Required Known result values (y)
known_x's Range Required Known predictor values (x)

▣ Examples

Example 1 =FORECAST(13, B2:B13, A2:A13)
Example 2 =FORECAST(80, C2:C25, B2:B25)

§ Remarks

  • اگر x غیرعددی باشد، FORECAST خطای #VALUE! را برمی‌گرداند.
  • اگر known_y's و known_x's خالی باشند یا تعداد نقاط داده آن‌ها متفاوت باشد، FORECAST خطای #N/A را برمی‌گرداند.
  • اگر واریانس known_x's صفر باشد، FORECAST خطای #DIV/0! را برمی‌گرداند.
  • معادله پیش‌بینی FORECAST برابر است با a+bx که در آن a و b میانگین‌های x و y هستند.

✦ Tips

  • In the arguments, the y values (results) come first, then the x values (predictors).
  • It only considers a linear trend; for seasonal data FORECAST.ETS is more suitable.
  • اگر واریانس known_x's صفر باشد، FORECAST خطای #DIV/0! را برمی‌گرداند.

⚠ Common Errors

#VALUE! مقدار x غیرعددی است.
Fix: برای x مقدار عددی وارد کنید.
#N/A The two ranges do not contain the same number of data points, or one of them is empty
Fix: Make the two ranges the same size
#DIV/0! واریانس known_x's صفر است.
Fix: مطمئن شوید مقادیر known_x's یکسان نیستند و حداقل دو مقدار متفاوت دارند.

💬 Comments & Q&A 0 approved

🔒 Your comment will be published after review.

Share your thoughts — visible after admin approval

No comments yet — be the first!

✍️ Add comment / question

captcha
🔒 Your comment will be published after review.