Statistical functions

The 147 statistical functions in Sheets, with the usual names, arguments and results.

FunctionWhat it doesSyntax
AVEDEVMean absolute deviation from the meanAVEDEV(number1, [number2, ...])
AVERAGEexampleMean of valuesAVERAGE(value1, [value2, ...])
AVERAGEAMean counting text as 0 and TRUE as 1AVERAGEA(value1, [value2, ...])
AVERAGEIFexampleMean where one criterion matchesAVERAGEIF(range, criterion, [average_range])
AVERAGEIFSexampleConditional meanAVERAGEIFS(avg_range, range1, criterion1, ...)
BETA.DISTBeta distributionBETA.DIST(x, alpha, beta, cumulative, [A], [B])
BETA.INVInverse of the cumulative beta distributionBETA.INV(probability, alpha, beta, [A], [B])
BETADISTCumulative beta distribution (legacy)BETADIST(x, alpha, beta, [A], [B])
BETAINVInverse beta distribution (legacy)BETAINV(probability, alpha, beta, [A], [B])
BINOM.DISTBinomial distribution probabilityBINOM.DIST(number_s, trials, probability_s, cumulative)
BINOM.DIST.RANGEProbability of a range of successesBINOM.DIST.RANGE(trials, probability_s, number_s, [number_s2])
BINOM.INVSmallest k with binomial cdf >= alphaBINOM.INV(trials, probability_s, alpha)
BINOMDISTBinomial distribution (legacy)BINOMDIST(number_s, trials, probability_s, cumulative)
CHIDISTRight-tailed chi-squared (legacy)CHIDIST(x, deg_freedom)
CHIINVInverse right-tailed chi-squared (legacy)CHIINV(probability, deg_freedom)
CHISQ.DISTChi-squared distributionCHISQ.DIST(x, deg_freedom, cumulative)
CHISQ.DIST.RTRight-tailed chi-squared distributionCHISQ.DIST.RT(x, deg_freedom)
CHISQ.INVInverse of the left-tailed chi-squaredCHISQ.INV(probability, deg_freedom)
CHISQ.INV.RTInverse of the right-tailed chi-squaredCHISQ.INV.RT(probability, deg_freedom)
CHISQ.TESTChi-squared test of independenceCHISQ.TEST(actual_range, expected_range)
CHITESTChi-squared independence test (legacy)CHITEST(actual_range, expected_range)
CONFIDENCENormal confidence interval (legacy)CONFIDENCE(alpha, standard_dev, size)
CONFIDENCE.NORMConfidence interval, normal distributionCONFIDENCE.NORM(alpha, standard_dev, size)
CONFIDENCE.TConfidence interval, Student's tCONFIDENCE.T(alpha, standard_dev, size)
CORRELCorrelation coefficient of two data setsCORREL(array1, array2)
COUNTexampleCount numbersCOUNT(value1, [value2, ...])
COUNTAexampleCount non-emptyCOUNTA(value1, [value2, ...])
COUNTBLANKCount empty cellsCOUNTBLANK(range)
COUNTIFexampleCount where one criterion matchesCOUNTIF(range, criterion)
COUNTIFSexampleConditional countCOUNTIFS(range1, criterion1, ...)
COVARPopulation covarianceCOVAR(array1, array2)
COVARIANCE.PPopulation covarianceCOVARIANCE.P(array1, array2)
COVARIANCE.SSample covarianceCOVARIANCE.S(array1, array2)
CRITBINOMInverse binomial distribution (legacy)CRITBINOM(trials, probability_s, alpha)
DEVSQSum of squared deviations from the meanDEVSQ(number1, [number2, ...])
EXPON.DISTExponential distributionEXPON.DIST(x, lambda, cumulative)
EXPONDISTExponential distribution (legacy)EXPONDIST(x, lambda, cumulative)
F.DISTF probability distributionF.DIST(x, deg_freedom1, deg_freedom2, cumulative)
F.DIST.RTRight-tailed F distributionF.DIST.RT(x, deg_freedom1, deg_freedom2)
F.INVInverse of the F distributionF.INV(probability, deg_freedom1, deg_freedom2)
F.INV.RTInverse of the right-tailed F distributionF.INV.RT(probability, deg_freedom1, deg_freedom2)
F.TESTF-test of two variancesF.TEST(array1, array2)
FDISTRight-tailed F distribution (legacy)FDIST(x, deg_freedom1, deg_freedom2)
FINVInverse right-tailed F (legacy)FINV(probability, deg_freedom1, deg_freedom2)
FISHERFisher transformationFISHER(x)
FISHERINVInverse of the Fisher transformationFISHERINV(y)
FORECASTValue at x on the linear trendFORECAST(x, known_y's, known_x's)
FORECAST.ETSForecast by exponential smoothingFORECAST.ETS(target_date, values, timeline, [seasonality], [data_completion], [aggregation])
FORECAST.ETS.CONFINTConfidence interval of an ETS forecastFORECAST.ETS.CONFINT(target_date, values, timeline, [confidence_level], [seasonality], [data_completion], [aggregation])
FORECAST.ETS.SEASONALITYSeason length found in a seriesFORECAST.ETS.SEASONALITY(values, timeline, [data_completion], [aggregation])
FORECAST.ETS.STATStatistic of an ETS forecast modelFORECAST.ETS.STAT(values, timeline, statistic_type, [seasonality], [data_completion], [aggregation])
FORECAST.LINEARValue at x on the linear trendFORECAST.LINEAR(x, known_y's, known_x's)
FREQUENCYCount of values per bin, as a columnFREQUENCY(data_array, bins_array)
FTESTF-test of two variances (legacy)FTEST(array1, array2)
GAMMAGamma functionGAMMA(number)
GAMMA.DISTGamma distributionGAMMA.DIST(x, alpha, beta, cumulative)
GAMMA.INVInverse of the cumulative gamma distributionGAMMA.INV(probability, alpha, beta)
GAMMADISTGamma distribution (legacy)GAMMADIST(x, alpha, beta, cumulative)
GAMMAINVInverse gamma distribution (legacy)GAMMAINV(probability, alpha, beta)
GAMMALNNatural log of the gamma functionGAMMALN(x)
GAMMALN.PRECISENatural log of the gamma functionGAMMALN.PRECISE(x)
GAUSSStandard normal cdf minus 0.5GAUSS(z)
GEOMEANGeometric meanGEOMEAN(number1, [number2, ...])
GROWTHValues along an exponential trendGROWTH(known_y's, [known_x's], [new_x's], [const])
HARMEANHarmonic meanHARMEAN(number1, [number2, ...])
HYPGEOM.DISTHypergeometric distributionHYPGEOM.DIST(sample_s, number_sample, population_s, number_pop, cumulative)
HYPGEOMDISTHypergeometric probability (legacy)HYPGEOMDIST(sample_s, number_sample, population_s, number_pop)
INTERCEPTY-intercept of the linear regression lineINTERCEPT(known_y's, known_x's)
KURTKurtosis of a sampleKURT(number1, [number2, ...])
LARGEThe k-th largest valueLARGE(array, k)
LINESTLinear regression coefficients and statisticsLINEST(known_y's, [known_x's], [const], [stats])
LOGESTExponential curve fit and statisticsLOGEST(known_y's, [known_x's], [const], [stats])
LOGINVInverse lognormal distribution (legacy)LOGINV(probability, mean, standard_dev)
LOGNORM.DISTLognormal distributionLOGNORM.DIST(x, mean, standard_dev, cumulative)
LOGNORM.INVInverse of the lognormal distributionLOGNORM.INV(probability, mean, standard_dev)
LOGNORMDISTCumulative lognormal distribution (legacy)LOGNORMDIST(x, mean, standard_dev)
MAXexampleMaximum valueMAX(value1, [value2, ...])
MAXALargest value, counting text and logicalsMAXA(value1, [value2, ...])
MAXIFSexampleLargest value where all criteria matchMAXIFS(max_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
MEDIANexampleMiddle valueMEDIAN(value1, [value2, ...])
MINexampleMinimum valueMIN(value1, [value2, ...])
MINASmallest value, counting text and logicalsMINA(value1, [value2, ...])
MINIFSexampleSmallest value where all criteria matchMINIFS(min_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
MODEMost frequent valueMODE(number1, [number2, ...])
MODE.MULTAll most frequent values, as a columnMODE.MULT(number1, [number2, ...])
MODE.SNGLMost frequent valueMODE.SNGL(number1, [number2, ...])
NEGBINOM.DISTNegative binomial distributionNEGBINOM.DIST(number_f, number_s, probability_s, cumulative)
NEGBINOMDISTNegative binomial probability (legacy)NEGBINOMDIST(number_f, number_s, probability_s)
NORM.DISTNormal distributionNORM.DIST(x, mean, standard_dev, cumulative)
NORM.INVInverse of the normal distributionNORM.INV(probability, mean, standard_dev)
NORM.S.DISTStandard normal distributionNORM.S.DIST(z, cumulative)
NORM.S.INVInverse of the standard normal distributionNORM.S.INV(probability)
NORMDISTNormal distribution (legacy)NORMDIST(x, mean, standard_dev, cumulative)
NORMINVInverse normal distribution (legacy)NORMINV(probability, mean, standard_dev)
NORMSDISTCumulative standard normal (legacy)NORMSDIST(z)
NORMSINVInverse standard normal (legacy)NORMSINV(probability)
PEARSONPearson correlation coefficientPEARSON(array1, array2)
PERCENTILEThe k-th percentile, k from 0 to 1PERCENTILE(array, k)
PERCENTILE.EXCThe k-th percentile, k between 0 and 1PERCENTILE.EXC(array, k)
PERCENTILE.INCexampleThe k-th percentile, k from 0 to 1PERCENTILE.INC(array, k)
PERCENTRANKRank of x as a fraction from 0 to 1PERCENTRANK(array, x, [significance])
PERCENTRANK.EXCRank of x as a fraction between 0 and 1PERCENTRANK.EXC(array, x, [significance])
PERCENTRANK.INCRank of x as a fraction from 0 to 1PERCENTRANK.INC(array, x, [significance])
PHIStandard normal densityPHI(x)
POISSONPoisson distribution (legacy)POISSON(x, mean, cumulative)
POISSON.DISTPoisson distributionPOISSON.DIST(x, mean, cumulative)
PROBProbability that values lie between limitsPROB(x_range, prob_range, [lower_limit], [upper_limit])
QUARTILEQuartile 0 to 4 of a data setQUARTILE(array, quart)
QUARTILE.EXCQuartile 1 to 3, ends excludedQUARTILE.EXC(array, quart)
QUARTILE.INCQuartile 0 to 4 of a data setQUARTILE.INC(array, quart)
RANKRank of a number in a listRANK(number, ref, [order])
RANK.AVGRank in a list; ties get the average rankRANK.AVG(number, ref, [order])
RANK.EQRank in a list; ties share the top rankRANK.EQ(number, ref, [order])
RSQSquare of the Pearson correlationRSQ(known_y's, known_x's)
SKEWSkewness of a sampleSKEW(number1, [number2, ...])
SKEW.PSkewness of a populationSKEW.P(number1, [number2, ...])
SLOPESlope of the linear regression lineSLOPE(known_y's, known_x's)
SMALLThe k-th smallest valueSMALL(array, k)
STANDARDIZENormalized value (z-score)STANDARDIZE(x, mean, standard_dev)
STDEVSample standard deviationSTDEV(number1, [number2, ...])
STDEV.PPopulation standard deviationSTDEV.P(number1, [number2, ...])
STDEV.SSample standard deviationSTDEV.S(number1, [number2, ...])
STDEVASample standard deviation, text as 0STDEVA(value1, [value2, ...])
STDEVPPopulation standard deviationSTDEVP(number1, [number2, ...])
STDEVPAPopulation standard deviation, text as 0STDEVPA(value1, [value2, ...])
STEYXStandard error of the predicted ySTEYX(known_y's, known_x's)
T.DISTLeft-tailed Student's t distributionT.DIST(x, deg_freedom, cumulative)
T.DIST.2TTwo-tailed Student's t distributionT.DIST.2T(x, deg_freedom)
T.DIST.RTRight-tailed Student's t distributionT.DIST.RT(x, deg_freedom)
T.INVLeft-tailed inverse of Student's tT.INV(probability, deg_freedom)
T.INV.2TTwo-tailed inverse of Student's tT.INV.2T(probability, deg_freedom)
T.TESTStudent's t-test probabilityT.TEST(array1, array2, tails, type)
TDISTStudent's t distribution (legacy)TDIST(x, deg_freedom, tails)
TINVTwo-tailed inverse of Student's t (legacy)TINV(probability, deg_freedom)
TRENDValues along a linear trendTREND(known_y's, [known_x's], [new_x's], [const])
TRIMMEANMean without the top and bottom valuesTRIMMEAN(array, percent)
TTESTStudent's t-test probability (legacy)TTEST(array1, array2, tails, type)
VARSample varianceVAR(number1, [number2, ...])
VAR.PPopulation varianceVAR.P(number1, [number2, ...])
VAR.SSample varianceVAR.S(number1, [number2, ...])
VARASample variance, text as 0VARA(value1, [value2, ...])
VARPPopulation varianceVARP(number1, [number2, ...])
VARPAPopulation variance, text as 0VARPA(value1, [value2, ...])
WEIBULLWeibull distribution (legacy)WEIBULL(x, alpha, beta, cumulative)
WEIBULL.DISTWeibull distributionWEIBULL.DIST(x, alpha, beta, cumulative)
Z.TESTOne-tailed z-test probabilityZ.TEST(array, x, [sigma])
ZTESTOne-tailed z-test probability (legacy)ZTEST(array, x, [sigma])