How to Use FORECAST Function in Excel + Tips (Video in Khmer)
Learn how to use FORECAST function in Excel step-by-step to predict future values based on historical data with simple examples and Khmer video guides.
Hello everyone! Today I show you step-by-step how to use FORECAST() function in Microsoft Excel. This formula very useful when you want to predict future value based on past history data!
📚 Related Tutorial: Learn more foundational formulas in our guide on Top 15 Basic Excel Formulas for Beginners ↗!
🛠️ What is FORECAST Function?
The FORECAST function help you calculate or estimate future value by looking at old historical data. It use linear regression (straight line trend) to predict new number for you.
Formula Syntax:
=FORECAST(x, known_y's, known_x's)
x: The target data point (like target month or target year number) you want to find future result for.known_y's: Past dependent values range (like past Sales or Revenue amount).known_x's: Past independent values range (like past Month numbers or Years).
🛠️ Simple Step-by-Step Example
Imagine you have sales report from Month 1 to Month 5, and you want to predict sales for Month 6:
Month (known_x's) | Sales (known_y's) |
|---|---|
Month 1 (A2) | $1,000 (B2) |
Month 2 (A3) | $1,200 (B3) |
Month 3 (A4) | $1,500 (B4) |
Month 4 (A5) | $1,800 (B5) |
Month 5 (A6) | $2,000 (B6) |
If you want to estimate sales for Month 6 (cell A7 = 6), type this formula:
=FORECAST(6, B2:B6, A2:A6)
- Result:
$2,270(Excel calculate straight trend and predict Month 6 sales!)
⚠️ Important Errors to Avoid
#N/AError:known_y'sandknown_x'sranges must have the exact same count of cells! Ifknown_y'shas 5 cells butknown_x'shas 4 cells, Excel returns#N/A.#DIV/0!Error: Happens if variance ofknown_x'sis zero (for example, all numbers inknown_x'sare identical).#VALUE!Error: Occurs ifxor any cell insideknown_y'sorknown_x'scontains text instead of numbers.
💡 Easy Pro Tips for FORECAST
FORECASTvsFORECAST.LINEAR: In Excel 2016 and newer versions, Microsoft renamedFORECASTtoFORECAST.LINEAR. OldFORECASTstill works fine for backward compatibility, butFORECAST.LINEARis recommended for newer Excel!- For Seasonal Data, Use
FORECAST.ETS:FORECASTassumes data grows in a straight line. If your business has big seasonal peaks (like holiday shopping season), useFORECAST.ETSfunction instead for better accuracy! - Dynamic Cell Reference for target
x: Instead of typing number6hardcoded inside=FORECAST(6, B2:B6, A2:A6), point to a cell like=FORECAST(A7, B2:B6, A2:A6)so you can easily change target month anytime!
Related Tutorials
Opens in new tab ↗How to Use FIND Function in Excel + Tips
Learn how to use FIND function in Excel step-by-step to find the position number of a text inside another text.
How to Use FILTER Function in Excel + Tips
Learn how to use FILTER function in Excel step-by-step to filter data based on your conditions.
How to Use FORMULATEXT Function in Excel (Video in Khmer)
Learn how to use FORMULATEXT function in Excel step-by-step to display exact formula text instead of result.