Frequency: You Can Find A General Introduction To Array Functions at The Top of This Page
Frequency: You Can Find A General Introduction To Array Functions at The Top of This Page
Indicates the frequency distribution in a one-column-array. The function counts the number of
values in the Data array that are within the values given by the Classes array.
Syntax
FREQUENCY(Data; Classes)
Data represents the reference to the values to be counted.
Classes represents the array of the limit values.
You can find a general introduction to Array functions at the top of this page.
Example
In the following table, column A lists unsorted measurement values. Column B contains the upper
limit you entered for the classes into which you want to divide the data in column A. According to
the limit entered in B1, the FREQUENCY function returns the number of measured values less than
or equal to 5. As the limit in B2 is 10, the FREQUENCY function returns the second result as the
number of measured values that are greater than 5 and less than or equal to 10. The text you entered
in B6, ">25", is only for reference purposes.
A B C
1 12 5 1
2 8 10 3
3 24 15 2
4 11 20 3
5 5 25 1
6 20 >25 1
7 16
8 9
9 7
10 16
11 33
Select a single column range in which to enter the frequency according to the class limits. You must
select one field more than the class ceiling. In this example, select the range C1:C6. Call up the
FREQUENCY function in the Function Wizard. Select the Data range in (A1:A11), and then the
Classes range in which you entered the class limits (B1:B6). Select the Array check box and click
OK. You will see the frequency count in the range C1:C6.
More explanations on top of this page.
GROWTH
Calculates the points of an exponential trend in an array.
Syntax
GROWTH(DataY; DataX; NewDataX; FunctionType)
DataY represents the Y Data array.
DataX (optional) represents the X Data array.
NewDataX (optional) represents the X data array, in which the values are recalculated.
FunctionType(optional). If FunctionType = 0, functions in the form y = m^x will be calculated.
Otherwise, y = b*m^x functions will be calculated.
In the LibreOffice Calc functions, parameters marked as "optional" can be left out only when no
parameter follows. For example, in a function with four parameters, where the last two parameters
are marked as "optional", you can leave out parameter 4 or parameters 3 and 4, but you cannot leave
out parameter 3 alone.
More explanations on top of this page.
Example
This function returns an array and is handled in the same way as the other array functions. Select a
range where you want the answers to appear and select the function. Select DataY. Enter any other
parameters, mark Array and click OK.
LINEST
Returns a table of statistics for a straight line that best fits a data set.
Syntax
LINEST(data_Y; data_X; linearType; stats)
data_Y is a single row or column range specifying the y coordinates in a set of data points.
data_X is a corresponding single row or column range specifying the x coordinates. If data_X is
omitted it defaults to 1, 2, 3, ..., n. If there is more than one set of variables data_X may be a range
with corresponding multiple rows or columns.
LINEST finds a straight line y = a + bx that best fits the data, using linear regression (the "least
squares" method). With more than one set of variables the straight line is of the form y = a + b1x1 +
b2x2 ... + bnxn.
If linearType is FALSE the straight line found is forced to pass through the origin (the constant a is
zero; y = bx). If omitted, linearType defaults to TRUE (the line is not forced through the origin).
If stats is omitted or FALSE only the top line of the statistics table is returned. If TRUE the entire
table is returned.
LINEST returns a table (array) of statistics as below and must be entered as an array formula (for
example by using Ctrl+Shift+Return rather than just Return).
In the LibreOffice Calc functions, parameters marked as "optional" can be left out only when no
parameter follows. For example, in a function with four parameters, where the last two parameters
are marked as "optional", you can leave out parameter 4 or parameters 3 and 4, but you cannot leave
out parameter 3 alone.
More explanations on top of this page.
Example
This function returns an array and is handled in the same way as the other array functions. Select a
range for the answers and then the function. Select data_Y. If you want, you can enter other
parameters. Select Array and click OK.
The results returned by the system (if stats = 0), will at least show the slope of the regression line
and its intersection with the Y axis. If stats does not equal 0, other results are to be displayed.
A B C D E F G
1 x1 x2 y LINEST value
2 4 7 100 4,17 -3,48 82,33
3 5 9 105 5,46 10,96 9,35
4 6 11 104 0,87 5,06 #NA
5 7 12 108 13,21 4 #NA
6 8 15 111 675,45 102,26 #NA
7 9 17 120
8 10 19 133
Column A contains several X1 values, column B several X2 values and column C the Y values. You
have already entered these values in your spreadsheet. You have now set up E2:G6 in the
spreadsheet and activated the Function Wizard. For the LINEST function to work, you must have
marked the Array check box in the Function Wizard. Next, select the following values in the
spreadsheet (or enter them using the keyboard):
data_Y is C2:C8
data_X is A2:B8
linearType and stats are both set to 1.
As soon as you click OK, LibreOffice Calc will fill the above example with the LINEST values as
shown in the example.
The formula in the Formula Bar corresponds to each cell of the LINEST array
{=LINEST(C2:C8;A2:B8;1;1)}
This represents the calculated LINEST values:
E2 and F2: Slope m of the regression line y=b+m*x for the x1 and x2 values. The values are given
in reverse order; that is, the slope for x2 in E2 and the slope for x1 in F2.
G2: Intersection b with the y axis.
E3 and F3: The standard error of the slope value.
G3: The standard error of the intercept
E4: RSQ
F4: The standard error of the regression calculated for the Y value.
E5: The F value from the variance analysis.
F5: The degrees of freedom from the variance analysis.
E6: The sum of the squared deviation of the estimated Y values from their linear mean.
F6: The sum of the squared deviation of the estimated Y value from the given Y values.
More explanations on top of this page.
LOGEST
This function calculates the adjustment of the entered data as an exponential regression curve
(y=b*m^x).
Syntax
LOGEST(DataY; DataX; FunctionType; Stats)
DataY represents the Y Data array.
DataX (optional) represents the X Data array.
FunctionType (optional). If Function_Type = 0, functions in the form y = m^x will be calculated.
Otherwise, y = b*m^x functions will be calculated.
Stats (optional). If Stats=0, only the regression coefficient is calculated.
In the LibreOffice Calc functions, parameters marked as "optional" can be left out only when no
parameter follows. For example, in a function with four parameters, where the last two parameters
are marked as "optional", you can leave out parameter 4 or parameters 3 and 4, but you cannot leave
out parameter 3 alone.
More explanations on top of this page.
Example
See LINEST. However, no square sum will be returned.