▦ Live

Online Excel Playground — Exceli

Test Excel formulas right here without Excel — interactive grid, 500+ functions and instant calculation.

Presets:
LINEST — The LINEST function calculates the statistics for a line by using the "least squares" method to calculate a straight line that best fits your data, and then returns an array that describes the line. You can also combine LINEST with other functions to calculate the statistics for other types of models that are linear in the unknown parameters, including polynomial, logarithmic, exponential, and power series. Because this function returns an array of values, it must be entered as an array formula. Instructions follow the examples in this article. The equation for the line is: y = mx + b –or– y = m1x1 + m2x2 + ... + b if there are multiple ranges of x-values, where the dependent y-values are a function of the independent x-values. The m-values are coefficients corresponding to each x-value, and b is a constant value. Note that y, x, and m can be vectors. The array that the LINEST function returns is {mn,mn-1,...,m1,b}. LINEST can also return additional regression statistics.
=LINEST(known_y's, [known_x's], [const], [stats])
fx A1 ↵ Enter = محاسبه · کلیک روی سلول = ویرایش فرمول
💡 مثل اکسل: روی سلولی کلیک کن، = بزن و بعد بدون Enter روی هر سلول دیگری کلیک یا درگ کن — آدرسش داخل فرمول درج می‌شود. لبه‌ی هدر هر ستون را بکش تا اندازه‌اش عوض شود، دبل‌کلیک = اندازه خودکار به محتوا.
Active cell A1
فرمول (raw)
—
Result
—
Active formula
—
LINEST

The LINEST function calculates the statistics for a line by using the "least squares" method to calculate a straight line that best fits your data, and then returns an array that describes the line. You can also combine LINEST with other functions to calculate the statistics for other types of models that are linear in the unknown parameters, including polynomial, logarithmic, exponential, and power series. Because this function returns an array of values, it must be entered as an array formula. Instructions follow the examples in this article. The equation for the line is: y = mx + b –or– y = m1x1 + m2x2 + ... + b if there are multiple ranges of x-values, where the dependent y-values are a function of the independent x-values. The m-values are coefficients corresponding to each x-value, and b is a constant value. Note that y, x, and m can be vectors. The array that the LINEST function returns is {mn,mn-1,...,m1,b}. LINEST can also return additional regression statistics.

Supported functions

How to use?

⌨️
۱

Enter values or formulas — formulas start with =, e.g. =SUM(A1:A5)

⚡
۲

Hit Run or press Enter — auto calculation and Excel error display

🔗
۳

Share — link includes function and formula for sending to others

▦ Supported functions

SUM, AVERAGE, MIN, MAX, COUNT, COUNTA, SUMIF, COUNTIF, AVERAGEIF, IF, AND, OR, NOT, CONCAT, TEXTJOIN, LEFT, RIGHT, MID, LEN, UPPER, LOWER, TRIM, ROUND, ROUNDDOWN, ROUNDUP, ABS, TODAY, NOW — و همه عملگرها: + - * / ^ % & = < > <= >= <> و ارجاع A1 و بازه A1:B5