Skip to main content

Statistical Functions

  • 15 minutes to read

This document briefly describes statistical functions implemented in the ASPxSpreadsheet.

*Standard Options means the following:

The arguments ‘number1’, ‘[number2]’, etc., are numerical values or references to cells containing numbers. You can enter up to 255 number arguments. The arguments can be logical values or text representations of numbers. You can also use a reference to a cell array instead of separate numbers. Text, logical values, or empty cells within an array are ignored.

AVEDEV( number1, [number2], ... )

Calculates the average deviation of a set of values.

*Standard Options

AVERAGE( number1, [number2], ... )

Returns the average (arithmetic mean) of a list of numbers.

*Standard Options

AVERAGEA( number1, [number2], ... )

Returns the average (arithmetic mean) of a list of numbers.

The difference compared to the AVERAGE function is that within arrays or reference arguments logical values are counted as 1 or 0 and text is counted as zero.

AVERAGEIF(range, criteria, [average_range])

Returns the average (arithmetic mean) of the cells in a range that meet a given criteria.

The range is an array of values (or range of cells containing values) that is tested against the given criteria. If the average_range argument is omitted, the values in the initial range argument are used to calculate an average. Otherwise, the corresponding cells in the average_range array is used for calculation.

AVERAGEIFS( average_range, criteria_range1, criteria1, [criteria_range2, criteria2], ... )

Finds entries in one or more arrays, that satisfy the respective supplied criteria, and returns the average (arithmetic mean) of the corresponding values in an array supplied as the first argument.

The average_range is the range for calculation. Criteria_range1, [criteria_range2], … - are the arrays to be tested against supplied criteria. Criteria1, [criteria2], … - are the respective conditions to be tested.

BETA.INV(probability,alpha,beta,[A],[B])
Returns the inverse of the beta cumulative probability density function (BETA.DIST).
BETA.DIST(x,alpha,beta,cumulative,[A],[B])
Returns the beta distribution.
BINOM.DIST(number_s,trials,probability_s,cumulative)
Returns the individual term binomial distribution probability.
BINOM.INV(trials,probability_s,alpha)
Returns the smallest value for which the cumulative binomial distribution is greater than or equal to a criterion value.
BINOM.DIST.RANGE(trials,probability_s,number_s,[number_s2])
Returns the probability of a trial result using a binomial distribution.
CHISQ.DIST(x,deg_freedom,cumulative)

Returns the chi-squared distribution.

X - Required. The value at which you want to evaluate the distribution. Deg_freedom - Required. The number of degrees of freedom. Cumulative - Required. A logical value that determines the form of the function.

CHISQ.DIST.RT(x,deg_freedom)
Returns the right-tailed probability of the chi-squared distribution.
CHISQ.INV(probability,deg_freedom)
Returns the inverse of the left-tailed probability of the chi-squared distribution.
CHISQ.INV.RT(probability,deg_freedom)
Returns the inverse of the right-tailed probability of the chi-squared distribution.
CHISQ.TEST(actual_range,expected_range)
Returns the test for independence as the value from the chi-squared distribution for the statistic and the appropriate degrees of freedom.
CONFIDENCE.NORM(alpha,standard_dev,size)

Returns the confidence interval for a population mean, using a normal distribution.

Alpha is the significance level used to compute the confidence level. The confidence level equals 100*(1 - alpha)%, or in other words, an alpha of 0.05 indicates a 95 percent confidence level. Standard_dev is the population standard deviation for the data range and is assumed to be known. Size is the sample size.

CONFIDENCE.T (alpha,standard_dev,size)
Returns the confidence interval for a population mean, using a Student’s t distribution.
CORREL( array1, array2 )

Calculates the correlation coefficient for two sets of values.

The arrays should be of equal length.

COUNT( value1, [value2], ... )

Returns the number of numeric values in a set of cells or values.

Numbers and dates are always counted as numeric values. Text representations of numbers and logical values are counted only if supplied directly as function arguments.

COUNTA( value1, [value2], ... )
Returns a number of non-blank cells or values within a specified set.
COUNTBLANK( range )
Returns the number of blank cells in a range of cells.
COUNTIF( range, criteria )
Returns the number of cells that satisfy a given criteria in a specified range.
COUNTIFS( criteria_range1, criteria1, [criteria_range2, criteria2], ... )

Returns the number of entries that satisfy all specified criteria in specified ranges.

Each additional range must have the same number of rows and columns as the criteria_range1 argument. The ranges do not have to be adjacent to each other. Criteria is applied to the associated range and the logical matrix (true/false) is calculated. Resulting matrices are added using AND operator and the number of True entries is counted.

COVARIANCE.P(array1,array2)
Returns population covariance, the average of the products of deviations for each data point pair in two data sets.
COVARIANCE.S(array1,array2)
Returns the sample covariance, the average of the products of deviations for each data point pair in two data sets.
DEVSQ(number1, [number2], ...)
Returns the sum of squares of deviations of data points from their sample mean.
EXPON.DIST(x,lambda,cumulative)
Returns the exponential distribution.
F.DIST(x,deg_freedom1,deg_freedom2,cumulative)
Returns the F probability distribution.
F.DIST.RT(x,deg_freedom1,deg_freedom2)
Returns the (right-tailed) F probability distribution (degree of diversity) for two data sets.
F.INV(probability,deg_freedom1,deg_freedom2)
Returns the inverse of the F probability distribution.
F.INV.RT(probability,deg_freedom1,deg_freedom2)
Returns the inverse of the (right-tailed) F probability distribution.
F.TEST(array1,array2)
Returns the result of an F-test, the two-tailed probability that the variances in array1 and array2 are not significantly different.
FISHER(x)
Returns the Fisher transformation at x.
FISHERINV(y)
Returns the inverse of the Fisher transformation.
FORECAST(x,known_y's,known_x's)

Performs a linear regression to fit a straight line using least squares criterion to the specified arrays of values. Returns a new value for the specified X data point.

X is the data point for which you want to predict a value. Known_y’s is the set of y-values for the relationship y = mx + b. Known_x’s is a set of x-values for the relationship.

FREQUENCY(data_array, bins_array)

Calculates how often values occur within a range of values, and then returns a vertical array of numbers.

Data_array is an array of or reference to a set of values for which you want to count frequencies. If data_array contains no values, FREQUENCY returns an array of zeros. Bins_array is an array of or reference to intervals into which you want to group the values in data_array. If bins_array contains no values, FREQUENCY returns the number of elements in data_array.

GAMMA(number)
Return the gamma function value.
GAMMA.DIST(x,alpha,beta,cumulative)
Returns the gamma distribution.
GAMMA.INV(probability,alpha,beta)
Returns the inverse of the gamma cumulative distribution.
GAMMALN(x)
Returns the natural logarithm of the gamma function.
GAMMALN.PRECISE(x)
Returns the natural logarithm of the gamma function (new version).
GAUSS(z)
Calculates the probability that a member of a standard normal population will fall between the mean and z standard deviations from the mean.
GEOMEAN( number1, [number2], ... )

Returns the geometric mean of a list of numbers.

*Standard Options

GROWTH(known_y's, [known_x's], [new_x's], [const])

Calculates an exponential curve that best fits your data based on a number of known X and Y values. Returns the y-values for a series of new x-values.

Known_y’s is the set of y-values for the relationship y = b*m^x. Known_x’s is an optional set of x-values for the relationship; if omitted, it is assumed to be the array {1,2,3,…} that is the same size as known_y’s. New_x’s is an optional set of new x-values for which you want GROWTH to return corresponding y-values. If omitted, it is assumed to be the same as known_x’s. Const is an optional logical value. It is TRUE or omitted, to calculate the b constant; otherwise b is set to 1. GROWTH is the exponential counterpart to the linear regression function TREND.

HARMEAN(number1,number2,...)
Returns the harmonic mean of a data set.
HYPGEOM.DIST(sample_s,number_sample,population_s,number_pop,cumulative)
Returns the hypergeometric distribution.
INTERCEPT(known_y's, known_x's)

Calculates the best fit regression line using a series of x- and y- values and returns the value at which this line intercepts the y-axis.

Known_y’s is the dependent set of observations or data. Known_x’s is the independent set of observations or data.

KURT(number1,number2,...)
Returns the kurtosis of a data set.
LARGE( array, k )

Returns the k’th largest value from an array or a range of cells containing numerical values.

The array argument is the array or range of data for which the k-th largest value will be determined. The k argument is the top position of value in a sorted array.

LINEST(known_y's,known_x's,const,stats)

Returns statistical information on the line of best fit, through a supplied set of x- and y- values using ‘least-square’ method.

Known_y’s is the set of y-values you already know in the relationship y = mx + b. Known_x’s is an optional set of x-values that you may already know in the relationship y = mx + b. Const is a logical value specifying whether to force the constant b to equal 0. Stats is a logical value specifying whether to return additional regression statistics.

LOGEST( known_y's, [known_x's], [const], [stats]

Calculates regression to fit an exponential curve using a least squares method.

Known_y’s is the set of dependent values. Known_x’s is an optional set of independent values. The argument “”constant”” is TRUE to calculate the constant b in the regression equation y = b*m^x; otherwise, b equals 1. The argument “”stats”” set to TRUE if you want additional statistics, including various sums of squares, r-squared, f-statistic, and standard errors of the regression coefficients. LOGEST is the exponential counterpart to the linear regression function LINEST.

LOGNORM.DIST(x,mean,standard_dev,cumulative)

Returns the log-normal probability density function or the cumulative log- normal distribution.

X is the value at which to evaluate the function. Mean is the mean of ln(x). Standard_dev is the standard deviation of ln(x). Cumulative is a logical value that determines the form of the function. If cumulative is TRUE, LOGNORM.DIST returns the cumulative distribution function; otherwise, it returns the probability density function.

LOGNORM.INV(probability,mean,standard_dev)

Returns the inverse of the log-normal distribution

X is a probability associated with the lognormal distribution. Mean is the mean of ln(x). Standard_dev is the standard deviation of ln(x).

MAX( number1, [number2], ... )

Returns the largest value in a set of values.

*Standard Options

MAXA( number1, [number2], ... )

Returns the largest value in a set of values.

The difference compared to the MAX function is that within arrays or reference arguments logical values are counted as 1 or 0 and text is counted as zero.

MEDIAN(number1, [number2], ...)

Returns the statistical median (the middle value) of a list of numbers.

*Standard Options

MIN(number1, [number2], ...)

Returns the smallest value in a set of values.

*Standard Options

MIN(number1, [number2], ...)

Returns the smallest value in a set of values.

The difference compared to the MIN function is that within arrays or reference arguments logical values are counted as 1 or 0 and text is counted as zero.

MODE.MULT((number1,[number2],...])

Returns a vertical array of the statistical modes (the most frequently occurring values) within a set of values.

The arguments number1, [number2], etc, are numerical values or references to cells containing numbers. You can enter up to 255 number arguments. The arguments can be logical values or text representations of numbers. You can also use a reference to cell array instead of separate numbers. Text, logical values, or empty cells witin array are ignored. If the data set contains no duplicate data points, the #N/A error value is returned.

MODE.SNGL(number1,[number2],...])

Returns the statistical mode (the most frequently occurring value) in a set of values.

The arguments number1, [number2], etc, are numerical values or references to cells containing numbers. You can enter up to 255 number arguments. The arguments can be logical values or text representations of numbers. You can also use a reference to cell array instead of separate numbers. Text, logical values, or empty cells witin array are ignored. If the data set contains no duplicate data points, the #N/A error value is returned.

NEGBINOM.DIST(number_f,number_s,probability_s,cumulative)
Returns the negative binomial distribution.
NORM.DIST(x,mean,standard_dev,cumulative)

Returns the normal distribution for the specified mean and standard deviation.

X is the value for which you want the distribution. Mean is the arithmetic mean of the distribution. Standard_dev is the standard deviation of the distribution. Cumulative is a logical value that determines the form of the function. If cumulative is TRUE, NORM.DIST returns the cumulative distribution function; if FALSE, it returns the probability mass function.

NORM.INV(probability,mean,standard_dev)

Returns the inverse of the normal cumulative distribution for the specified mean and standard deviation.

Probability is a probability corresponding to the normal distribution. Mean is the arithmetic mean of the distribution. Standard_dev is the standard deviation of the distribution.

NORM.S.DIST(z,cumulative)

Returns the standard normal distribution (has a mean of zero and a standard deviation of one).

Z is the value for which you want the distribution. Cumulative is a logical value that determines the form of the function. If cumulative is TRUE, NORMS.DIST returns the cumulative distribution function; otherwise it returns the probability mass function.

NORM.S.INV(probability)

Returns the inverse of the standard normal cumulative distribution.

Probability is a probability that corresponds to the normal distribution.

PEARSON(array1,array2)

Returns the Pearson product moment correlation coefficient, a statistical measurement of the correlation (linear association) between two sets of values.

The array1 is a set of independent values, the array2 is a set of dependent values.

PERCENTILE.EXC( array, k )
Returns the k’th percentile of a supplied range of values for a given value of k, within the range 0 to 1 (exclusive).
PERCENTILE.INC( array, k )
Returns the k’th percentile of a supplied range of values for a given value of k, within the range 0 to 1 (inclusive).
PERCENTRANK.EXC( array, x, [significance] )
Calculates the relative position, between 0 and 1 (exclusive), of a specified value within a supplied array.
PERCENTRANK.INC( array, x, [significance] )
Calculates the relative position, between 0 and 1 (inclusive), of a specified value within a supplied array.
PERMUT(number, number_chosen)
Returns the number of permutations for a given number of objects.
PERMUTATIONA(number, number-chosen)
Returns the number of permutations for a given number of objects (with repetitions) that can be selected from the total objects.
PHI(x)
Returns the value of the density function for a standard normal distribution.
POISSON.DIST(x,mean,cumulative)
Returns the Poisson distribution.
PROB(x_range, prob_range, [lower_limit], [upper_limit])
Returns the probability that values in a range are between two limits.
QUARTILE.EXC(array, quart)
Returns the quartile of the data set, based on percentile values from 0..1, exclusive.
QUARTILE.INC(array,quart)
Returns the quartile of a data set, based on percentile values from 0..1, inclusive.
RANK.AVG(number,ref,[order])
Returns the rank of a number in a list of numbers: its size relative to other values in the list; if more than one value has the same rank, the average rank is returned.
RANK.EQ(number,ref,[order])
Returns the rank of a number in a list of numbers. Its size is relative to other values in the list; if more than one value has the same rank, the top rank of that set of values is returned.
RSQ(known_y's,known_x's)
Returns the square of the Pearson product moment correlation coefficient.
SKEW(number1, [number2], ...)

Returns the skewness (the asymmetry around the mean) of a distribution.

Number1 is required, subsequent numbers are optional. You can supply up to 255 arguments for which you want to calculate skewness or use a single array or a reference to an array instead of arguments separated by commas.

SKEW.P(number 1, [number 2],…)
Returns the skewness of a distribution based on a population: a characterization of the degree of asymmetry of a distribution around its mean.
SLOPE(known_y's, known_x's)

Returns the slope of the linear regression line through data points in known_y’s and known_x’s.

Known_y’s is an array or cell range of numeric dependent data values. Known_x’s is the set of independent data values.

SMALL array, k )

Returns the k’th smallest value from an array or a range of cells containing numerical values.

The array argument is the array or range of data for which the k-th smallest value will be determined. The k argument is the top position of value in an array sorted from smallest to largest.

STANDARDIZE(x,mean,standard_dev)
Returns a normalized value from a distribution characterized by mean and standard_dev.
STEYX(known_y's, known_x's)
Returns the standard error of the predicted y-value for each x in the regression.
STDEVA(value1, [value2], ...)

Calculates the standard deviation based on a sample.

The arguments value1, [value2], etc, are numerical values or references to cells. You can enter up to 255 arguments. The arguments can be logical values or text representations of numbers. You can also use a reference to cell array instead of separate numbers. Arguments that contain TRUE evaluate as 1; arguments that contain text or FALSE evaluate as 0 (zero).

STDEVPA(value1,value2,...)
Calculates standard deviation based on the entire population, including numbers, text, and logical values
STDEV.P(number1,[number2],...])

Calculates the standard deviation based on the entire population.

*Standard Options

STDEV.S(number1,[number2],...])

Calculates the standard deviation based on a sample.

*Standard Options

T.DIST(x,deg_freedom, cumulative)
Returns the Student’s t-distribution.
T.DIST.2T(x,deg_freedom)
Returns the two-tailed Student’s t-distribution.
T.DIST.RT(x,deg_freedom)
Returns the right-tailed Student’s t-distribution.
T.INV(probability,deg_freedom)
Returns the left-tailed inverse of the Student’s t-distribution.
T.TEST(array1,array2,tails,type)
Returns the probability that is associated with a Student’s t-Test.
T.INV.2T(probability,deg_freedom)
Returns the two-tailed inverse of the Student’s t-distribution.
TREND(known_y's, [known_x's], [new_x's], [const])

Performs a linear regression to fit a straight line using least squares criterion to the specified arrays of values.

Known_y’s is the set of y-values for the relationship y = mx + b. Known_x’s is an optional set of x-values for the relationship; if omitted, it is assumed to be the array {1,2,3,…} that is the same size as known_y’s. New_x’s is an optional set of new x-values for which you want TREND to return corresponding y-values. If omitted, it is assumed to be the same as known_x’s. Const is an optional logical value. It is TRUE or omitted, to calculate the b constant; otherwise b is set to 0 (zero).

TRIMMEAN(array, percent)
Returns the mean of the interior of a data set.
VARA(value1, [value2], ...)
Estimates variance based on a sample, including numbers, text, and logical values.
VARPA(value1, [value2], ...)
Calculates variance based on the entire population, including numbers, text, and logical values.
VAR.P(number1,[number2],...])

Calculates variance for the entire population.

*Standard Options

VAR.S(number1,[number2],...])

Calculates variance for the sample.

*Standard Options

WEIBULL.DIST(x,alpha,beta,cumulative)
Returns the Weibull distribution.
Z.TEST(array,x,[sigma])
Returns the one-tailed probability-value of a z-test.