Excel functions
Statistical functions
Statistical functions summarise data. Some are everyday tools (COUNT, COUNTIFS, AVERAGEIFS, MAX, MEDIAN, RANK.EQ, LARGE); others answer analysis questions such as spread (STDEV.S), relationships (CORREL, SLOPE), forecasts (FORECAST.LINEAR, TREND) and probabilities (NORM.DIST, T.TEST).
Start with these
AVERAGEReturns the arithmetic mean of numbers: add them up and divide by how many there are. Blank cells and text are skipped; zeros count.AVERAGEIFAverages only the cells that meet one condition, such as all orders from one region or all invoices above a certain amount.AVERAGEIFSAverages the cells that meet several conditions at once, for example sales of one product in one region, or invoices between two dates.CORRELReturns the correlation coefficient between two sets of numbers, from −1 to +1, showing how strongly they move together in a straight line.COUNTCounts how many cells contain numbers (including dates and times). Text, blanks, TRUE/FALSE and errors are not counted.COUNTACounts all cells that are not empty, whatever they contain: numbers, text, dates, TRUE/FALSE, errors or even empty text returned by a formula.COUNTBLANKCounts the empty cells in a range, including cells whose formula returns empty text (""). Zeros are not blank.COUNTIFCounts the cells in a range that meet one condition, such as invoices marked "Paid", scores above 50 or emails containing "@gmail".COUNTIFSCounts the rows that meet several conditions at once, such as deals that are in the North region and won and worth at least 2,000.FORECAST.LINEARPredicts a future value by fitting a straight line through known data, e.g. next month's sales from the past six months.FREQUENCYCounts how many values fall into each band (bin) of a range, such as grade bands or order sizes, and returns the counts as a vertical list.LARGEReturns the k-th largest value in a range, e.g. the highest, second-highest or third-highest sale.MAXReturns the largest number in a set of values, such as the highest sale, the top score or the latest date.MAXIFSReturns the largest number among the rows that meet one or more conditions, e.g. the biggest sale in the North region.MEDIANReturns the middle value of a set of numbers, a typical value that, unlike the average, is not pulled by extreme outliers.MINReturns the smallest number in a set of values, such as the lowest price, the lowest score or the earliest date.MINIFSReturns the smallest number among the rows that meet one or more conditions, e.g. the cheapest quote for a given item.MODE.SNGLReturns the most frequently occurring number in a range, such as the most common order size or the most popular rating.NORM.DISTReturns the normal (bell curve) distribution for a value, given a mean and standard deviation: a probability or a density.NORM.INVReturns the value below which a given share of a normal distribution falls, e.g. the score that marks the top 10%.PERCENTILE.INCReturns the k-th percentile of a data set (k from 0 to 1 inclusive), e.g. the delivery time that 90% of orders beat.QUARTILE.INCReturns a quartile of a data set (0 = min, 1 = 25th percentile, 2 = median, 3 = 75th percentile, 4 = max) using the inclusive method.RANK.EQReturns the rank of a number in a list, such as a rep's place in a sales league; ties share the highest rank.SLOPEReturns the slope of the best-fit straight line through your data: how much y changes on average when x rises by one.SMALLReturns the k-th smallest value in a range, such as the lowest, second-lowest or third-lowest bid or time.STDEV.PReturns the standard deviation of an entire population, a measure of how spread out every value is around the average.STDEV.SEstimates the standard deviation of a population from a sample, showing how much values typically vary from the average.TRENDFits a straight line (least squares) to known data and returns predicted y-values for new x-values, e.g. next months' sales.
All 111 statistical functions
- AVEDEVReturns the average absolute distance of numbers from their mean, a simple and easy-to-explain measure of how spread out data is.
- AVERAGEReturns the arithmetic mean of numbers: add them up and divide by how many there are. Blank cells and text are skipped; zeros count.
- AVERAGEAAverages a range while counting text as 0 and TRUE/FALSE as 1/0, so every non-empty cell takes part in the average.
- AVERAGEIFAverages only the cells that meet one condition, such as all orders from one region or all invoices above a certain amount.
- AVERAGEIFSAverages the cells that meet several conditions at once, for example sales of one product in one region, or invoices between two dates.
- BETA.DISTReturns the beta distribution (cumulative probability or density), used to model percentages, proportions and task durations between a minimum and a maximum.
- BETA.INVReturns the value below which a given probability of a beta distribution lies, for example the 90th-percentile share of budget used.
- BINOM.DISTReturns the probability of a given number of successes in a fixed number of independent yes/no trials, such as sales calls or quality checks.
- BINOM.DIST.RANGEReturns the probability that the number of successes in a series of yes/no trials falls between two values, or equals one value.
- BINOM.INVReturns the smallest number of successes whose cumulative binomial probability reaches a target, e.g. how much stock covers demand 95% of the time.
- CHISQ.DISTReturns the left-tailed chi-squared probability or density for a value, used in variance tests and goodness-of-fit checks.
- CHISQ.DIST.RTReturns the right-tailed chi-squared probability: the p-value of a chi-squared statistic you have already calculated.
- CHISQ.INVReturns the chi-squared value with a given left-tail probability, used for lower critical values and confidence intervals for a variance.
- CHISQ.INV.RTReturns the chi-squared critical value with a given right-tail probability, the threshold a test statistic must exceed to be significant.
- CHISQ.TESTRuns a chi-squared test on a table of observed counts against expected counts and returns the p-value.
- CONFIDENCE.NORMReturns the margin of error for a mean using the normal distribution: the ± figure you add around an average to form a confidence interval.
- CONFIDENCE.TReturns the margin of error for a mean using Student's t-distribution, the right choice for small samples whose standard deviation is estimated.
- CORRELReturns the correlation coefficient between two sets of numbers, from −1 to +1, showing how strongly they move together in a straight line.
- COUNTCounts how many cells contain numbers (including dates and times). Text, blanks, TRUE/FALSE and errors are not counted.
- COUNTACounts all cells that are not empty, whatever they contain: numbers, text, dates, TRUE/FALSE, errors or even empty text returned by a formula.
- COUNTBLANKCounts the empty cells in a range, including cells whose formula returns empty text (""). Zeros are not blank.
- COUNTIFCounts the cells in a range that meet one condition, such as invoices marked "Paid", scores above 50 or emails containing "@gmail".
- COUNTIFSCounts the rows that meet several conditions at once, such as deals that are in the North region and won and worth at least 2,000.
- COVARIANCE.PReturns the population covariance of two data sets: the average product of their deviations from their means.
- COVARIANCE.SReturns the sample covariance of two data sets (dividing by n − 1), used when your data are a sample from a larger population.
- DEVSQReturns the sum of squared deviations of numbers from their mean, the raw ingredient of variance, standard deviation and ANOVA.
- EXPON.DISTReturns the exponential distribution, which models waiting times between random events such as customer arrivals or machine failures.
- F.DISTReturns the left-tailed F probability or density, the distribution of a ratio of two variances used in ANOVA and variance tests.
- F.DIST.RTReturns the right-tailed F probability: the p-value of an F statistic from ANOVA or a regression.
- F.INVReturns the F value with a given left-tail probability, used for lower critical values in two-sided variance tests.
- F.INV.RTReturns the F critical value with a given right-tail probability: the threshold an ANOVA F statistic must exceed to be significant.
- F.TESTTests whether two samples have different variances and returns the two-tailed p-value, e.g. whether one supplier is less consistent.
- FISHERReturns the Fisher transformation of a correlation coefficient, which turns r into a value that is roughly normally distributed.
- FISHERINVReverses the Fisher transformation, turning a z value back into a correlation between −1 and 1.
- FORECASTPredicts a value along a straight-line trend through known data. The original name of FORECAST.LINEAR, available in every Excel version.
- FORECAST.ETSForecasts a future value of a time series with exponential smoothing (AAA), automatically detecting trends and seasonal patterns.
- FORECAST.ETS.CONFINTReturns the ± confidence interval around a FORECAST.ETS prediction, showing how uncertain the forecast is.
- FORECAST.ETS.SEASONALITYReturns the length of the repeating seasonal pattern that Excel detects in a time series, e.g. 4 for quarterly data or 12 for monthly.
- FORECAST.ETS.STATReturns a statistic about the FORECAST.ETS model, such as its smoothing parameters, error measures (MAE, RMSE) or the detected time step.
- FORECAST.LINEARPredicts a future value by fitting a straight line through known data, e.g. next month's sales from the past six months.
- FREQUENCYCounts how many values fall into each band (bin) of a range, such as grade bands or order sizes, and returns the counts as a vertical list.
- GAMMAReturns the gamma function of a number, the smooth extension of the factorial that also works for fractions.
- GAMMA.DISTReturns the gamma distribution: the probability (or density) for skewed, positive quantities such as claim sizes, repair times or waiting times.
- GAMMA.INVReturns the value x at which the gamma cumulative distribution reaches a given probability, the inverse of GAMMA.DIST.
- GAMMALNReturns the natural logarithm of the gamma function, a safe way to work with huge factorials without overflow.
- GAMMALN.PRECISEReturns the natural logarithm of the gamma function; the Excel 2010+ version of GAMMALN with the same result.
- GAUSSReturns the probability that a standard normal value falls between the mean and z standard deviations from it.
- GEOMEANReturns the geometric mean of positive numbers, the right average for growth rates, returns and ratios that compound.
- GROWTHFits an exponential growth curve to your data and returns predicted y-values for new x-values.
- HARMEANReturns the harmonic mean of positive numbers, the correct average for rates such as speeds, prices per unit or P/E ratios.
- HYPGEOM.DISTReturns the hypergeometric probability: the chance of getting k successes when drawing a sample without replacement from a finite group.
- INTERCEPTReturns where the best-fit straight line through your data crosses the y-axis: the predicted y when x is 0.
- KURTReturns the excess kurtosis of a sample, a measure of how heavy the tails are, i.e. how prone the data is to extreme values.
- LARGEReturns the k-th largest value in a range, e.g. the highest, second-highest or third-highest sale.
- LINESTFits a straight line (or a multiple regression) by least squares and returns the coefficients, plus optional statistics.
- LOGESTFits an exponential curve y = b·m^x to your data and returns the growth factor m and the starting value b.
- LOGNORM.DISTReturns the lognormal distribution for x, used for positive, right-skewed values such as task durations, incomes or share prices.
- LOGNORM.INVReturns the value x at which the lognormal cumulative distribution reaches a given probability.
- MAXReturns the largest number in a set of values, such as the highest sale, the top score or the latest date.
- MAXAReturns the largest value in a list, counting TRUE as 1 and text or FALSE as 0 instead of ignoring them.
- MAXIFSReturns the largest number among the rows that meet one or more conditions, e.g. the biggest sale in the North region.
- MEDIANReturns the middle value of a set of numbers, a typical value that, unlike the average, is not pulled by extreme outliers.
- MINReturns the smallest number in a set of values, such as the lowest price, the lowest score or the earliest date.
- MINAReturns the smallest value in a list, counting text and FALSE as 0 and TRUE as 1 instead of ignoring them.
- MINIFSReturns the smallest number among the rows that meet one or more conditions, e.g. the cheapest quote for a given item.
- MODE.MULTReturns every most-frequent value in a data set as a vertical array, so ties for the most common value are all reported.
- MODE.SNGLReturns the most frequently occurring number in a range, such as the most common order size or the most popular rating.
- NEGBINOM.DISTReturns the negative binomial probability: the chance of a given number of failures before reaching a set number of successes.
- NORM.DISTReturns the normal (bell curve) distribution for a value, given a mean and standard deviation: a probability or a density.
- NORM.INVReturns the value below which a given share of a normal distribution falls, e.g. the score that marks the top 10%.
- NORM.S.DISTReturns the standard normal distribution (mean 0, standard deviation 1) for a z-score, as a probability or density.
- NORM.S.INVReturns the z-score at which the standard normal cumulative distribution reaches a given probability.
- PEARSONReturns the Pearson correlation coefficient r, measuring how strongly two sets of values move together in a straight line.
- PERCENTILE.EXCReturns the k-th percentile of data using the exclusive method, where k must lie strictly inside the data's range of ranks.
- PERCENTILE.INCReturns the k-th percentile of a data set (k from 0 to 1 inclusive), e.g. the delivery time that 90% of orders beat.
- PERCENTRANK.EXCReturns the rank of a value in a data set as a percentage strictly between 0 and 1, using the exclusive method.
- PERCENTRANK.INCReturns the rank of a value in a data set as a percentage from 0 to 1 inclusive, e.g. which percentile a salary or score is at.
- PERMUTReturns the number of ordered arrangements of k items chosen from n distinct items, where order matters and no item repeats.
- PERMUTATIONAReturns the number of ordered arrangements of k items chosen from n types when the same item may be used more than once.
- PHIReturns the height of the standard normal bell curve at z, i.e. the standard normal density.
- POISSON.DISTReturns the Poisson probability of a number of events in a fixed interval, such as calls per hour or defects per batch.
- PROBReturns the probability that a value lies between two limits, given a table of possible values and their probabilities.
- QUARTILE.EXCReturns the first, second or third quartile of data using the exclusive method (the one used by many statistics packages).
- QUARTILE.INCReturns a quartile of a data set (0 = min, 1 = 25th percentile, 2 = median, 3 = 75th percentile, 4 = max) using the inclusive method.
- RANK.AVGReturns the rank of a number in a list; tied values receive the average of the ranks they would occupy.
- RANK.EQReturns the rank of a number in a list, such as a rep's place in a sales league; ties share the highest rank.
- RSQReturns R², the share of the variation in y that a straight-line relationship with x explains (0 to 1).
- SKEWReturns the skewness of a sample, showing whether data has a longer tail of high values (positive) or low values (negative).
- SKEW.PReturns the skewness of an entire population, without the small-sample correction that SKEW applies.
- SLOPEReturns the slope of the best-fit straight line through your data: how much y changes on average when x rises by one.
- SMALLReturns the k-th smallest value in a range, such as the lowest, second-lowest or third-lowest bid or time.
- STANDARDIZEConverts a value into a z-score: how many standard deviations it lies above or below the mean.
- STDEV.PReturns the standard deviation of an entire population, a measure of how spread out every value is around the average.
- STDEV.SEstimates the standard deviation of a population from a sample, showing how much values typically vary from the average.
- STDEVAEstimates standard deviation from a sample, counting text as 0 and TRUE as 1 instead of ignoring them.
- STDEVPAReturns the standard deviation of a whole population, counting text as 0 and TRUE as 1 instead of ignoring them.
- STEYXReturns the standard error of the predicted y-values in a linear regression: the typical size of the prediction error.
- T.DISTReturns the left-tailed Student's t-distribution, used for tests and intervals with small samples.
- T.DIST.2TReturns the two-tailed Student's t probability: the chance of a t value at least this far from zero in either direction.
- T.DIST.RTReturns the right-tailed Student's t probability: the chance of a t value greater than x.
- T.INVReturns the left-tailed inverse of Student's t-distribution: the t value below which a given probability lies.
- T.INV.2TReturns the two-tailed inverse of Student's t-distribution: the critical t value for confidence intervals and two-sided tests.
- T.TESTReturns the p-value of a Student's t-test, telling you whether the averages of two groups differ by more than chance.
- TRENDFits a straight line (least squares) to known data and returns predicted y-values for new x-values, e.g. next months' sales.
- TRIMMEANReturns the average after removing a percentage of the highest and lowest values, so a few outliers cannot distort it.
- VAR.PReturns the variance of an entire population: the average squared distance of each value from the mean.
- VAR.SEstimates the variance of a population from a sample: the squared spread of values around the mean, divided by n − 1.
- VARAEstimates variance from a sample, counting text as 0 and TRUE as 1 rather than ignoring them.
- VARPAReturns the variance of an entire population, counting text as 0 and TRUE as 1 instead of ignoring them.
- WEIBULL.DISTReturns the Weibull distribution, widely used for product lifetimes, failure rates and reliability analysis.
- Z.TESTReturns the one-tailed p-value of a z-test: the chance of a sample mean this high if the true mean were the value you test.