
The arguments must be either numbers or names, arrays, or references that contain numbers. An array or cell range of numeric dependent data points. The SLOPE function syntax has the following arguments: The slope is the vertical distance divided by the horizontal distance between any two points on the line, which is the rate of change along the regression line.
Returns the slope of the linear regression line through data points in known_y's and known_x's.
If const is FALSE, the parameter b is set equal to 0.This article describes the formula syntax and usage of the SLOPE function in Microsoft Excel. If const is TRUE or omitted, the parameter b is calculated normally,. const (optional) is a Boolean value specifying whether to force the parameter b to be equal to 0:. If you omit new_x's, it is assumed to be the same as known_x's. new_x's (optional) are the new x-values for which the TREND () function should calculate corresponding y-values:. In any case, you should provide the known_x's or array that has the same size as known_y's, These values cannot be omitted for the correct calculation for a logarithmic trend. known_x's (optional) are independent data values:. known_y's (required) are dependent data values,. To work with this function for logarithmic trends, just use LN (known_x's) instead of known_x's: To calculate the logarithmic trendline values, Excel offers the array function TREND () (see the notes above about array functions) that returns values for a linear trend. b: = INDEX (LINEST (known_y's, LN (known_x's)), 1, 2)Ĭalculating the logarithmic trendline values. After changing the variables to X = ln ( x), the calculations become similar to the linear case Y = b * x + A:Įxcel offers the following functions to calculate trendline parameters: Note: Excel the logarithmic function approximation into the linear model fitting: the logarithmic function y = a * ln ( x) + b is transformed into a linear function using a change of variables.
number (required) is a number to take the natural logarithm of. The LN () function returns the natural logarithm of a given number: a and b are the parameters of the function found by the least squares method (also named function coefficients or constants),. The logarithmic trendline is a curved line with the function: Logarithmic trendline equation and formulas a dependent or response variable y (named as known_y's). an independent, predictor, or explanatory variable x (named as known_x's),. Excel uses the least squares method to fit a trend line to the data points.įor a trend line, two sets of variables are required: