Skip to main content
UpSkill Sprint Consulting
  • Power BI, Excel & SQL
  • Intermediate
  • 90 min
  • Excel + Minitab
  • CSSBB · CQE

Excel Statistical Functions: The Complete Map

Every Excel statistical function and hypothesis test, laid out as one map you enter from your goal. Pick what you want to do, or type it into the finder, and jump straight to the right function with its syntax, a worked example and the Minitab twin.

  • 111functions in Excel's Statistical category
  • 4test functions; each returns only a p-value
  • 39legacy names that still calculate
  • 19Analysis ToolPak tools
  • 200decision variables in standard Solver
Start here

The ecosystem map: what do you want to do?

Each tile is a stop on the map. Click the goal that matches your question and you land on that section, so you never read the whole lesson to find one function.

Not sure where to go?

Find any function in seconds

Type a function name, part of one, a typo, or what you are trying to do in plain words. The finder ranks every function, tool and legacy name in this lesson and links you to its row.

Print it

Five wall posters with every function

Every poster carries the whole map: all 111 statistical functions with their syntax, plus the helpers, What-if and ToolPak tools, legacy names and gaps. The content is the same; only the layout changes, so pick the one that matches how you look things up. Each is a one-page PDF that prints at 18 × 24 in.

Map stop 01 · Describe

Descriptive statistics: centre, spread and counts

Goal: summarize what your data looks like in a few numbers.

Use the .S functions for sample data, which is almost every quality data set, and .P only for a complete population. Functions ending in A count TRUE as 1 and text as 0, so one "N/A" in a lab column silently changes the answer.

All 36 descriptive functions in the Statistical category
FunctionSyntaxReturnsWhen to use it
AVERAGEAVERAGE(number1, [number2], …)Arithmetic mean of the numbersDefault centre of a data set
AVERAGEAAVERAGEA(value1, [value2], …)Mean that counts TRUE as 1 and text as 0Only when logical values must count
AVERAGEIFAVERAGEIF(range, criteria, [average_range])Mean of cells that meet one conditionMean for one shift, grade or line
AVERAGEIFSAVERAGEIFS(average_range, criteria_range1, criteria1, …)Mean of cells that meet several conditionsMean by heat and orientation together
MEDIANMEDIAN(number1, [number2], …)Middle value of the sorted dataSkewed data such as delays and cycle times
MODE.SNGLMODE.SNGL(number1, [number2], …)Most frequent valueDiscrete readings with repeats
MODE.MULTMODE.MULT(number1, [number2], …)Every most-frequent value (spills)Data with two or more peaks
GEOMEANGEOMEAN(number1, [number2], …)Geometric meanGrowth rates, ratios, log-normal data
HARMEANHARMEAN(number1, [number2], …)Harmonic meanAveraging rates such as units per hour
TRIMMEANTRIMMEAN(array, percent)Mean after trimming a share of both tailsA robust mean when outliers are present
STDEV.SSTDEV.S(number1, [number2], …)Sample standard deviationAlmost every quality calculation on sample data
STDEV.PSTDEV.P(number1, [number2], …)Population standard deviationOnly when you hold the whole population
STDEVASTDEVA(value1, [value2], …)Sample standard deviation counting logicals and textRarely; text becomes 0 and distorts results
STDEVPASTDEVPA(value1, [value2], …)Population standard deviation counting logicals and textRarely; same caution as STDEVA
VAR.SVAR.S(number1, [number2], …)Sample varianceANOVA, F-tests and pooled variance
VAR.PVAR.P(number1, [number2], …)Population varianceComplete populations only
VARAVARA(value1, [value2], …)Sample variance counting logicals and textRarely
VARPAVARPA(value1, [value2], …)Population variance counting logicals and textRarely
AVEDEVAVEDEV(number1, [number2], …)Mean absolute deviation from the meanA spread summary that resists outliers
DEVSQDEVSQ(number1, [number2], …)Sum of squared deviations from the meanBuilding ANOVA sums of squares by hand
SKEWSKEW(number1, [number2], …)Sample skewnessQuick normality and symmetry screen
SKEW.PSKEW.P(number1, [number2], …)Population skewnessSkewness of a complete population
KURTKURT(number1, [number2], …)Excess kurtosis (normal gives 0)Screening for heavy or light tails
MAXMAX(number1, [number2], …)Largest valueRange and worst-case checks
MAXAMAXA(value1, [value2], …)Largest value counting logicals and textRarely
MAXIFSMAXIFS(max_range, criteria_range1, criteria1, …)Largest value that meets conditionsWorst reading per grade or line
MINMIN(number1, [number2], …)Smallest valueRange and minimum-spec checks
MINAMINA(value1, [value2], …)Smallest value counting logicals and textRarely
MINIFSMINIFS(min_range, criteria_range1, criteria1, …)Smallest value that meets conditionsLowest toughness per heat
LARGELARGE(array, k)The k-th largest valueTop-k values and order statistics
SMALLSMALL(array, k)The k-th smallest valueBottom-k values and order statistics
COUNTCOUNT(value1, [value2], …)How many cells hold numbersThe sample size for every other formula
COUNTACOUNTA(value1, [value2], …)How many cells are not emptyChecking for text entries in numeric columns
COUNTBLANKCOUNTBLANK(range)How many cells are emptyMissing-data audit
COUNTIFCOUNTIF(range, criteria)Count of cells that meet one conditionDefects beyond a spec limit
COUNTIFSCOUNTIFS(criteria_range1, criteria1, …)Count of cells that meet several conditionsContingency tables and DPU by category
  • Sample or population?Sample data takes STDEV.S and VAR.S. Using STDEV.P on a sample understates the spread.
  • Count firstCOUNT gives the sample size every other formula needs. COUNTBLANK finds the gaps.
  • Skewed dataReport MEDIAN beside AVERAGE when SKEW is beyond about ±1.

↑ Back to the mapNext: probability distributions →

Map stop 02 · Model chance

Probability distributions: tails, densities and critical values

Goal: turn a value into a probability, or a probability into a value.

One naming rule covers all of them. .DIST gives a probability (set cumulative to TRUE for the CDF, FALSE for the density), .INV turns a probability back into a value, .RT means right tail and .2T means both tails. With no suffix, the function works on the left tail.

Tail translator: pick the tail your test uses

Example: \(t = 2.10\) with \(9\) degrees of freedom.

Student t curve with 9 degrees of freedom Right tail shaded. =T.DIST.RT(2.10, 9) returns 0.0326. −3−2−10123 t = 2.10 −2.10
Shaded area = the probability Excel returns. Left 0.9674, right 0.0326, both tails 0.0651.

Right tail: =T.DIST.RT(2.10, 9) = 0.0326

Same tail in other families: CHISQ.DIST.RT, F.DIST.RT; for the normal use 1-NORM.S.DIST(z, TRUE).

All 39 distribution and counting-rule functions, plus two helpers
FunctionSyntaxReturnsWhen to use it
NORM.DISTNORM.DIST(x, mean, standard_dev, cumulative)Normal CDF (TRUE) or density (FALSE)Share of output below a limit, ppm out of spec
NORM.INVNORM.INV(probability, mean, standard_dev)Value at a given normal percentilePercentile limits; simulation with RAND()
NORM.S.DISTNORM.S.DIST(z, cumulative)Standard normal CDF or densityp-values for z statistics
NORM.S.INVNORM.S.INV(probability)z value for a probabilityCritical z, sample size, sigma level
GAUSSGAUSS(z)Probability between the mean and z standard deviationsQuick area from the centre
PHIPHI(x)Standard normal density at xPlotting the bell curve
T.DISTT.DIST(x, deg_freedom, cumulative)Left-tail t probability or densityLower-tailed t tests
T.DIST.RTT.DIST.RT(x, deg_freedom)Right-tail t probabilityUpper-tailed t tests
T.DIST.2TT.DIST.2T(x, deg_freedom)Two-tailed t probability (x must be zero or more)Two-sided p-value for a t statistic
T.INVT.INV(probability, deg_freedom)Left-tail t critical valueOne-sided critical values; negative for small p
T.INV.2TT.INV.2T(probability, deg_freedom)Two-tailed t critical valueConfidence intervals and two-sided tests
CHISQ.DISTCHISQ.DIST(x, deg_freedom, cumulative)Left-tail chi-square probability or densityLower tail of a variance test
CHISQ.DIST.RTCHISQ.DIST.RT(x, deg_freedom)Right-tail chi-square probabilityp-value for chi-square tests with any df
CHISQ.INVCHISQ.INV(probability, deg_freedom)Left-tail chi-square critical valueUpper limit of a variance confidence interval
CHISQ.INV.RTCHISQ.INV.RT(probability, deg_freedom)Right-tail chi-square critical valueChi-square table lookups; variance intervals
F.DISTF.DIST(x, deg_freedom1, deg_freedom2, cumulative)Left-tail F probability or densityLower tail of a variance-ratio test
F.DIST.RTF.DIST.RT(x, deg_freedom1, deg_freedom2)Right-tail F probabilityANOVA and regression p-values
F.INVF.INV(probability, deg_freedom1, deg_freedom2)Left-tail F critical valueLower limit of a variance-ratio interval
F.INV.RTF.INV.RT(probability, deg_freedom1, deg_freedom2)Right-tail F critical valueF tables for ANOVA
BINOM.DISTBINOM.DIST(number_s, trials, probability_s, cumulative)Binomial probability of k successesDefectives in a sample, pass or fail data
BINOM.DIST.RANGEBINOM.DIST.RANGE(trials, probability_s, number_s, [number_s2])Probability of k1 to k2 successesAcceptance-sampling ranges in one step
BINOM.INVBINOM.INV(trials, probability_s, alpha)Smallest k whose cumulative probability reaches alphaAcceptance numbers and exact critical counts
NEGBINOM.DISTNEGBINOM.DIST(number_f, number_s, probability_s, cumulative)Probability of f failures before s successesInspections until a set number of finds
HYPGEOM.DISTHYPGEOM.DIST(sample_s, number_sample, population_s, number_pop, cumulative)Hypergeometric probabilitySampling small lots without replacement
POISSON.DISTPOISSON.DIST(x, mean, cumulative)Poisson probability of x eventsDefects per unit, c- and u-chart probabilities
EXPON.DISTEXPON.DIST(x, lambda, cumulative)Exponential probability; lambda is the rateTime between failures, constant failure rate
WEIBULL.DISTWEIBULL.DIST(x, alpha, beta, cumulative)Weibull probability; alpha is shape, beta is scaleLife data and wear-out reliability
LOGNORM.DISTLOGNORM.DIST(x, mean, standard_dev, cumulative)Lognormal probability; mean and SD are of ln(x)Repair times, particle sizes, skewed data
LOGNORM.INVLOGNORM.INV(probability, mean, standard_dev)Lognormal percentilePercentile limits for skewed data
GAMMA.DISTGAMMA.DIST(x, alpha, beta, cumulative)Gamma probability; beta is scaleWaiting times for several events
GAMMA.INVGAMMA.INV(probability, alpha, beta)Gamma percentilePercentiles of gamma-shaped data
GAMMAGAMMA(number)Gamma function valueBuilding other distributions by hand
GAMMALNGAMMALN(x)Natural log of the gamma functionLarge factorials without overflow
GAMMALN.PRECISEGAMMALN.PRECISE(x)Natural log of the gamma function (precise)Same use, newer algorithm
BETA.DISTBETA.DIST(x, alpha, beta, cumulative, [A], [B])Beta probabilityPERT task times, proportions
BETA.INVBETA.INV(probability, alpha, beta, [A], [B])Beta percentileExact binomial confidence limits
PERMUTPERMUT(number, number_chosen)Ordered arrangements without repeatsCounting sequences and orders
PERMUTATIONAPERMUTATIONA(number, number_chosen)Ordered arrangements with repeats allowedCodes and passwords style counting
PROBPROB(x_range, prob_range, [lower_limit], [upper_limit])Probability of a range from a discrete tableCustom discrete distributions
COMBIN Math categoryCOMBIN(number, number_chosen)Combinations without repeats (Math category)Counting samples where order does not matter
COMBINA Math categoryCOMBINA(number, number_chosen)Combinations with repeats (Math category)Counting with replacement
  • No inverse for someExponential: =-LN(1-p)/λ. Weibull: =β*(-LN(1-p))^(1/α) in Excel's own argument names.
  • Weibull argument namesExcel's alpha is the shape and beta is the scale.
  • Lognormal inputsLOGNORM.DIST wants the mean and SD of ln(x), not of x.

↑ Back to the mapNext: statistical inference →

Map stop 03 · Infer

Statistical inference: confidence intervals in Excel

Goal: give a range that probably holds the true value.

Excel has only two dedicated interval functions, and both return the margin of error, not the interval. Every other interval is a standard error times a critical value from an .INV function.

\[ \bar{x} \pm t_{\alpha/2,\,n-1}\,\frac{s}{\sqrt{n}} \]

where \(\bar{x}\) is the sample mean, \(s\) the sample standard deviation, \(n\) the sample size and \(t_{\alpha/2,\,n-1}\) the two-sided critical value. CONFIDENCE.T returns the whole \(\pm\) part in one step.

The two interval functions
FunctionSyntaxReturnsWhen to use it
CONFIDENCE.TCONFIDENCE.T(alpha, standard_dev, size)Margin of error using t (half-width)Confidence interval for a mean, sigma unknown
CONFIDENCE.NORMCONFIDENCE.NORM(alpha, standard_dev, size)Margin of error using z (half-width)Confidence interval for a mean, sigma known

Interval recipes

Building every common interval
IntervalExcel
Mean, sigma unknown=AVERAGE(r) ± CONFIDENCE.T(α, STDEV.S(r), COUNT(r))
Mean, sigma known=AVERAGE(r) ± CONFIDENCE.NORM(α, σ, n)
Variance=(n-1)*s^2/CHISQ.INV.RT(α/2, n-1) to =(n-1)*s^2/CHISQ.INV(α/2, n-1)
Proportion (Wald)=p ± NORM.S.INV(1-α/2)*SQRT(p*(1-p)/n)
Proportion (exact)=BETA.INV(α/2, x, n-x+1) to =BETA.INV(1-α/2, x+1, n-x)
Poisson rate (exact)=CHISQ.INV(α/2, 2*c)/2 to =CHISQ.INV.RT(α/2, 2*(c+1))/2
Correlation=FISHERINV(FISHER(r) ± NORM.S.INV(1-α/2)/SQRT(n-3))
Regression slope=SLOPE(y,x) ± T.INV.2T(α, n-2)*INDEX(LINEST(y,x,TRUE,TRUE),2,1)
Sample size for a mean=ROUNDUP((NORM.S.INV(1-α/2)*σ/E)^2, 0)

Write ± as two cells. Excel has no ± operator: put the lower limit and the upper limit in their own cells.

↑ Back to the mapNext: hypothesis testing →

Map stop 04 · Decide

Hypothesis testing in Excel: the four test functions and the rest

Goal: decide whether a difference is real or noise.

Excel's four test functions return only a p-value: no test statistic, no degrees of freedom. For any other test, compute the statistic, then turn it into a p-value with a .DIST function. Reject \(H_0\) when \(p \le \alpha\).

Test picker: what is your question?

Pick a question to see the Excel formula, the Minitab path and where it lives on the map.

The four test functions
FunctionSyntaxReturnsWhen to use it
T.TESTT.TEST(array1, array2, tails, type)p-value; type 1 paired, 2 pooled, 3 WelchComparing two means
Z.TESTZ.TEST(array, x, [sigma])Upper-tail p-value of a one-sample z testMean against a target when sigma is known
F.TESTF.TEST(array1, array2)Two-tailed p-value for equal variancesChecking variances before choosing T.TEST type
CHISQ.TESTCHISQ.TEST(actual_range, expected_range)p-value for independence or fitCounts by category; contingency tables

Build any other test from a statistic

\[ t = \frac{\bar{x} - \mu_0}{s/\sqrt{n}} \]

where \(\mu_0\) is the target. The same pattern, statistic then .DIST, covers the rest.

Statistic, two-sided p-value and critical value
TestTest statisticTwo-sided p-valueCritical value
1-sample z=(AVERAGE(r)-μ0)/(σ/SQRT(n))=2*(1-NORM.S.DIST(ABS(z),TRUE))=NORM.S.INV(1-α/2)
1-sample t=(AVERAGE(r)-μ0)/(STDEV.S(r)/SQRT(n))=T.DIST.2T(ABS(t), n-1)=T.INV.2T(α, n-1)
Paired tt on the differences=T.TEST(a, b, 2, 1)=T.INV.2T(α, n-1)
2-sample t, pooledpooled t=T.TEST(a, b, 2, 2)=T.INV.2T(α, n1+n2-2)
2-sample t, WelchWelch t=T.TEST(a, b, 2, 3)Welch df by hand
1 variance=(n-1)*VAR.S(r)/σ0^2=2*MIN(CHISQ.DIST(x,n-1,TRUE), CHISQ.DIST.RT(x,n-1))CHISQ.INV and CHISQ.INV.RT at α/2
2 variances=VAR.S(a)/VAR.S(b)=F.TEST(a, b)F.INV and F.INV.RT at α/2
1 proportion, exactdefectives x=2*MIN(BINOM.DIST(x,n,p0,TRUE), 1-BINOM.DIST(x-1,n,p0,TRUE))BINOM.INV(n, p0, α/2)
2 proportions=(p1-p2)/SQRT(p*(1-p)*(1/n1+1/n2))=2*(1-NORM.S.DIST(ABS(z),TRUE))=NORM.S.INV(1-α/2)
Correlation is zero=r*SQRT(n-2)/SQRT(1-r^2)=T.DIST.2T(ABS(t), n-2)=T.INV.2T(α, n-2)
One-way ANOVA=MS_between/MS_within=F.DIST.RT(F, k-1, N-k)=F.INV.RT(α, k-1, N-k)
Chi-square, any df=SUM((O-E)^2/E)=CHISQ.DIST.RT(x, df)=CHISQ.INV.RT(α, df)
  • Z.TEST is upper-tailTwo-sided p is =2*MIN(Z.TEST(r,μ0,σ), 1-Z.TEST(r,μ0,σ)).
  • One-tailed T.TEST ignores directionCheck which mean is larger before you trust it.
  • CHISQ.TEST needs expected countsEach expected count is its row total times its column total, divided by the grand total.

↑ Back to the mapNext: correlation →

Map stop 05 · Relate

Correlation: Pearson r, its p-value and its interval

Goal: check whether two measures move together in a straight line.

CORREL and PEARSON return the same \(r\). Excel has no p-value or Spearman function, so test \(r\) with a \(t\) statistic and get Spearman by correlating ranks.

All 7 correlation functions
FunctionSyntaxReturnsWhen to use it
CORRELCORREL(array1, array2)Pearson correlation coefficient rStrength and direction of a straight-line link
PEARSONPEARSON(array1, array2)Same r as CORRELLegacy sheets; identical result
RSQRSQ(known_y's, known_x's)Square of rShare of variation explained by one x
COVARIANCE.SCOVARIANCE.S(array1, array2)Sample covarianceBuilding r by hand on sample data
COVARIANCE.PCOVARIANCE.P(array1, array2)Population covarianceMatches the ToolPak Covariance tool
FISHERFISHER(x)Fisher z transformation of rConfidence interval on r; comparing two r values
FISHERINVFISHERINV(y)Back-transforms Fisher z to rSecond half of the r interval
Correlation recipes
TaskExcel
p-value for r=T.DIST.2T(ABS(r*SQRT(n-2)/SQRT(1-r^2)), n-2)
Spearman rank correlation=CORREL(RANK.AVG(x,x,1), RANK.AVG(y,y,1))
Correlation matrixData › Data Analysis › Correlation

Plot first. A curve or two clusters can give \(r\) near zero with a strong relationship. Correlation never proves cause.

↑ Back to the mapNext: regression →

Map stop 06 · Predict

Regression: LINEST and its shortcuts

Goal: say how much y changes per unit of x, and predict new y values.

LINEST with stats set to TRUE spills the whole regression table: coefficients, standard errors, \(R^2\), the F statistic and the sums of squares. SLOPE, INTERCEPT and STEYX are single cells of it.

Reading LINEST output for one x (5 rows × 2 columns)
RowColumn 1Column 2
1SlopeIntercept
2SE of slopeSE of intercept
3R squaredStandard error of estimate
4F statisticResidual df
5SS regressionSS residual
Pull one cell with =INDEX(LINEST(y,x,TRUE,TRUE), row, col); R squared is row 3, column 1.
All 7 regression functions
FunctionSyntaxReturnsWhen to use it
LINESTLINEST(known_y's, [known_x's], [const], [stats])Full regression table (spills)Simple or multiple regression with inference
SLOPESLOPE(known_y's, known_x's)Slope of the least-squares lineChange in y per unit of x
INTERCEPTINTERCEPT(known_y's, known_x's)Intercept of the least-squares liney when x is zero
STEYXSTEYX(known_y's, known_x's)Standard error of the estimateWidth of prediction intervals
TRENDTREND(known_y's, [known_x's], [new_x's], [const])Fitted or predicted values on a lineFitted values, residuals, predictions
LOGESTLOGEST(known_y's, [known_x's], [const], [stats])Exponential curve fit with statisticsGrowth or decay curves
GROWTHGROWTH(known_y's, [known_x's], [new_x's], [const])Predicted values on an exponential curvePredictions from an exponential model
  • Reverse orderWith several x columns, LINEST lists coefficients last x first, intercept last.
  • Coefficient p-value=T.DIST.2T(ABS(coef/SE), df_resid)
  • Polynomial fit=LINEST(y, x^{1,2}, TRUE, TRUE) fits a quadratic.

↑ Back to the mapNext: forecasting →

Map stop 07 · Look ahead

Forecasting: linear trends and exponential smoothing

Goal: estimate the next periods of a time series.

Excel 2016 added the FORECAST.ETS family, built on exponential smoothing with trend and seasonality. Data › Forecast › Forecast Sheet builds the same model with a chart and an interval band in one click.

All 6 forecasting functions
FunctionSyntaxReturnsWhen to use it
FORECAST.LINEARFORECAST.LINEAR(x, known_y's, known_x's)One prediction from the least-squares lineStraight-line trend forecasts
FORECASTFORECAST(x, known_y's, known_x's)Same result as FORECAST.LINEAROlder workbooks only
FORECAST.ETSFORECAST.ETS(target_date, values, timeline, [seasonality], [data_completion], [aggregation])Exponential-smoothing (AAA) forecastTime series with trend and seasonality
FORECAST.ETS.CONFINTFORECAST.ETS.CONFINT(target_date, values, timeline, [confidence_level], [seasonality], [data_completion], [aggregation])Half-width of the forecast intervalError bands around ETS forecasts
FORECAST.ETS.SEASONALITYFORECAST.ETS.SEASONALITY(values, timeline, [data_completion], [aggregation])Season length Excel detectedConfirming the cycle before trusting a forecast
FORECAST.ETS.STATFORECAST.ETS.STAT(values, timeline, statistic_type, [seasonality], [data_completion], [aggregation])Model statistic: alpha, beta, gamma, MASE, SMAPE, MAE, RMSE, stepJudging forecast accuracy

Rules for ETS. The timeline must be evenly spaced. Set seasonality to 1 to auto-detect or 0 for none. A forecast plans demand; a control chart judges stability. Do not swap them.

↑ Back to the mapNext: exploratory data analysis →

Map stop 08 · Explore

Exploratory data analysis: quartiles, outliers and subgroups

Goal: see shape, outliers and subgroups before you test anything.

Position functions plus dynamic arrays plus Excel's statistic charts make a full EDA kit. Use .EXC quartiles when your box plot must match Minitab.

Box plot of 12 crane lift times in seconds Q1 57.25, median 61.5, Q3 65.75. The upper fence is 78.5, so the 91 second lift is an outlier. Q1 57.25 Q3 65.75 Median 61.5 Fence 78.5 Outlier 91 5060708090
Twelve made-up crane lift times (s): 52, 55, 57, 58, 60, 61, 62, 63, 65, 66, 68, 91. QUARTILE.EXC gives Q1 57.25 and Q3 65.75; the upper fence =Q3+1.5*(Q3-Q1) is 78.5, so the 91 s lift is flagged.
All 10 position functions, plus dynamic-array helpers
FunctionSyntaxReturnsWhen to use it
FREQUENCYFREQUENCY(data_array, bins_array)Counts per bin (spills, plus an overflow bin)Histograms and goodness-of-fit counts
QUARTILE.EXCQUARTILE.EXC(array, quart)Quartile, (n + 1) methodBox plots that match Minitab
QUARTILE.INCQUARTILE.INC(array, quart)Quartile, inclusive methodMatching older Excel workbooks
PERCENTILE.EXCPERCENTILE.EXC(array, k)k-th percentile, exclusive methodP5 or P95 limits that match Minitab
PERCENTILE.INCPERCENTILE.INC(array, k)k-th percentile, inclusive methodPercentiles that include 0 and 1
PERCENTRANK.EXCPERCENTRANK.EXC(array, x, [significance])Rank of x as a share between 0 and 1, exclusiveWhere one value sits in the data
PERCENTRANK.INCPERCENTRANK.INC(array, x, [significance])Rank of x as a share from 0 to 1, inclusiveSame, inclusive method
RANK.AVGRANK.AVG(number, ref, [order])Rank with ties averagedNormal probability plots and rank tests
RANK.EQRANK.EQ(number, ref, [order])Rank with ties sharing the top rankLeague tables and Pareto ordering
STANDARDIZESTANDARDIZE(x, mean, standard_dev)z-score of a valueFlagging points beyond three standard deviations
GROUPBY Other categoryGROUPBY(row_fields, values, function, [field_headers], …)Summary table by group (Lookup category, Microsoft 365)Stratify by heat, shift, line or supplier
PIVOTBY Other categoryPIVOTBY(row_fields, col_fields, values, function, …)Two-way summary table (Microsoft 365)Side-by-side comparisons such as LPA vs TWA
PERCENTOF Other categoryPERCENTOF(data_subset, data_all)Share of a total (Microsoft 365)Pareto-style contributions
FILTER Other categoryFILTER(array, include, [if_empty])Rows that meet a condition (spills)Slicing a subgroup without copying
UNIQUE Other categoryUNIQUE(array, [by_col], [exactly_once])Distinct values (spills)Listing categories before grouping
SORT Other categorySORT(array, [sort_index], [sort_order], [by_col])Sorted copy of a range (spills)Ordering data for plots and ranks
SUBTOTAL Other categorySUBTOTAL(function_num, ref1, [ref2], …)Statistic that ignores filtered-out rowsSummaries that follow a filter
AGGREGATE Other categoryAGGREGATE(function_num, options, ref1, [ref2], …)Statistic that can skip errors and hidden rowsRobust summaries on messy data

Compare orientations side by side. When one sample has several test types, such as Charpy LPA and TWA, pivot so each sample is one row: =PIVOTBY(HSTACK(sample_no, heat_no), test_orientation_code, value, AVERAGE). In Python in Excel: df.groupby(['sample_no','heat_no','test_orientation_code']).first().unstack('test_orientation_code').

↑ Back to the mapNext: what-if and Solver →

Map stop 09 · Optimize

What-if analysis: Goal Seek, Data Tables, Scenarios and Solver

Goal: find the input that hits a target, or the best settings under constraints.

Goal Seek changes one input, a Data Table maps one or two, Scenario Manager compares named sets of up to 32, and Solver optimizes up to 200 with constraints. A single Data Table never handles more than two inputs.

Least-cost scrap blend found by Solver Solver's Simplex LP answer: 59.4% shred, 15.6% HMS and 25% pig iron, at 438.75 per tonne with copper exactly at 0.18%. 59.4%Shred15.6%HMS25%Pig iron
Solver (Simplex LP) answer to a made-up blend problem: lowest cost 438.75 per tonne with copper exactly at its 0.18% limit. The worked setup is in Statistics Implementation, example 7.
What-if tools (menu path in the syntax column) and simulation helpers
Tool or functionWhere or syntaxReturnsWhen to use it
Goal Seek Menu toolData › What-If Analysis › Goal SeekThe one input value that makes a formula hit a targetWhich sigma gives Cpk 1.33?
Data Table (one variable)Data › What-If Analysis › Data Table (column input cell)Live outputs for many values of one inputSensitivity of cost or yield to one input
Data Table (two variables)Data › What-If Analysis › Data Table (row and column input cells)One output across a grid of two inputsCpk map across mean and sigma
Scenario Manager Menu toolData › What-If Analysis › Scenario ManagerNamed sets of up to 32 inputs, with a summary reportBest, likely and worst cases
Solver (Simplex LP) Menu toolData › Solver › Select a Solving Method: Simplex LPOptimal values for linear models, with sensitivity reportBlends, product mix, scheduling
Solver (GRG Nonlinear) Menu toolData › Solver › Select a Solving Method: GRG NonlinearLocal optimum for smooth nonlinear modelsResponse optimization, curve fitting
Solver (Evolutionary) Menu toolData › Solver › Select a Solving Method: EvolutionaryGood answer for non-smooth modelsModels with IF, LOOKUP or rounding
Forecast Sheet Menu toolData › Forecast › Forecast SheetETS forecast chart and tableOne-click seasonal forecast
RAND Other categoryRAND()Uniform random number between 0 and 1Driving simulations through .INV functions
RANDARRAY Other categoryRANDARRAY([rows], [columns], [min], [max], [integer])Array of random numbers (Microsoft 365)Thousands of draws in one formula
RANDBETWEEN Other categoryRANDBETWEEN(bottom, top)Random integer in a rangeRandom sampling of rows
SEQUENCE Other categorySEQUENCE(rows, [columns], [start], [step])Sequence of numbers (spills)Input grids for sensitivity tables
LET Other categoryLET(name1, name_value1, calculation_or_name2, …)Named steps inside one formulaReadable one-cell simulations
LAMBDA Other categoryLAMBDA([parameter1, …], calculation)Your own reusable functionCustom test statistics and models
MAP Other categoryMAP(array1, lambda_or_array)Applies a LAMBDA to every valueFormula-based data tables that recalculate fast
SUMPRODUCT Other categorySUMPRODUCT(array1, [array2], …)Sum of productsObjective and constraint cells for Solver
MMULT Other categoryMMULT(array1, array2)Matrix productRegression by matrices; linear models
MINVERSE Other categoryMINVERSE(array)Matrix inverseNormal equations for regression by hand

Monte Carlo in one cell. =LET(n,10000, g, NORM.INV(RANDARRAY(n),35.3,0.06)-NORM.INV(RANDARRAY(n),10,0.05)-NORM.INV(RANDARRAY(n),20,0.08)-NORM.INV(RANDARRAY(n),5,0.03), AVERAGE(--(g<0))) estimates the interference rate of a four-part stack. Press F9 to re-run.

↑ Back to the mapNext: Analysis ToolPak →

Map stop 10 · Full output

Analysis ToolPak: full ANOVA, t-test and regression tables

Goal: get a complete output table, not just a p-value.

Turn it on once: File › Options › Add-ins › Manage Excel Add-ins › Go, tick Analysis ToolPak. On a Mac: Tools › Excel Add-ins. Its output is static, so re-run it after the data changes.

All 19 ToolPak tools
ToolWhereGives youWhen to use it
Anova: Single FactorData › Data Analysis › Anova: Single FactorOne-way ANOVA table with SS, df, MS, F, p and F critThree or more group means
Anova: Two-Factor With ReplicationData › Data Analysis › Anova: Two-Factor With ReplicationTwo-way ANOVA with interaction, balanced data onlyTwo factors with repeats
Anova: Two-Factor Without ReplicationData › Data Analysis › Anova: Two-Factor Without ReplicationTwo-way ANOVA, one value per cellRandomized block designs
t-Test: Paired Two Sample for MeansData › Data Analysis › t-Test: Paired Two Sample for Meanst Stat, df, one- and two-tail p and critical valuesBefore and after on the same units
t-Test: Two-Sample Assuming Equal VariancesData › Data Analysis › t-Test: Two-Sample Assuming Equal VariancesSame output with pooled varianceIndependent groups, equal spread
t-Test: Two-Sample Assuming Unequal VariancesData › Data Analysis › t-Test: Two-Sample Assuming Unequal VariancesWelch output; df rounded to an integerIndependent groups, unequal spread
z-Test: Two Sample for MeansData › Data Analysis › z-Test: Two Sample for Meansz, one- and two-tail p, z critTwo means with known variances
F-Test Two-Sample for VariancesData › Data Analysis › F-Test Two-Sample for VariancesF, one-tail p, F critComparing two variances
Descriptive StatisticsData › Data Analysis › Descriptive StatisticsMean, SE, median, mode, SD, variance, kurtosis, skewness, range, n, CI half-widthOne-click summary
RegressionData › Data Analysis › RegressionCoefficients with SE, t, p and CIs; ANOVA; residual plotsFull regression output
CorrelationData › Data Analysis › CorrelationCorrelation matrixSeveral variables at once
CovarianceData › Data Analysis › CovariancePopulation covariance matrixSeveral variables at once
HistogramData › Data Analysis › HistogramBin counts, cumulative percent, optional Pareto chartQuick frequency table
Rank and PercentileData › Data Analysis › Rank and PercentileRank and percent rank of every valueRelative standing table
Random Number GenerationData › Data Analysis › Random Number GenerationUniform, normal, Bernoulli, binomial, Poisson, patterned or discrete valuesStatic simulated data
SamplingData › Data Analysis › SamplingRandom or periodic sampleDrawing an audit sample
Moving AverageData › Data Analysis › Moving AverageSmoothed series with optional standard errorsTrend smoothing
Exponential SmoothingData › Data Analysis › Exponential SmoothingSimple exponential smoothing; damping factor is 1 minus alphaLevel-only forecasts
Fourier AnalysisData › Data Analysis › Fourier AnalysisFast Fourier transform of a power-of-two seriesVibration and periodic signals
  • F-Test tool vs F.TESTThe tool prints a one-tail p; the function returns two-tail. Same data, p differs by a factor of 2.
  • Welch tool vs T.TEST type 3The tool rounds the Welch df; the function does not, so p differs slightly.

↑ Back to the mapNext: legacy functions →

Map stop 11 · Old workbooks

Legacy functions and their modern replacements

Goal: understand or update a formula from an older workbook or prep book.

All 39 legacy statistical names still calculate. Microsoft recommends the modern versions for accuracy and clearer names. Watch the tail changes: old right-tailed names became left-tailed ones.

All 39 legacy statistical names
Legacy nameSyntaxModern replacementBehaviour change
BETADISTBETADIST(x, alpha, beta, [A], [B])Use BETA.DISTNew version adds the cumulative argument
BETAINVBETAINV(probability, alpha, beta, [A], [B])Use BETA.INVNone
BINOMDISTBINOMDIST(number_s, trials, probability_s, cumulative)Use BINOM.DISTNone
CHIDISTCHIDIST(x, deg_freedom)Use CHISQ.DIST.RTOld version was right-tailed; CHISQ.DIST is left-tailed
CHIINVCHIINV(probability, deg_freedom)Use CHISQ.INV.RTSame right-tail trap
CHITESTCHITEST(actual_range, expected_range)Use CHISQ.TESTNone
CONFIDENCECONFIDENCE(alpha, standard_dev, size)Use CONFIDENCE.NORMNone; CONFIDENCE.T is new
COVARCOVAR(array1, array2)Use COVARIANCE.POld version was population; COVARIANCE.S is new
CRITBINOMCRITBINOM(trials, probability_s, alpha)Use BINOM.INVNone
EXPONDISTEXPONDIST(x, lambda, cumulative)Use EXPON.DISTNone
FDISTFDIST(x, deg_freedom1, deg_freedom2)Use F.DIST.RTOld version was right-tailed; F.DIST is left-tailed
FINVFINV(probability, deg_freedom1, deg_freedom2)Use F.INV.RTSame right-tail trap
FORECASTFORECAST(x, known_y's, known_x's)Use FORECAST.LINEARNone
FTESTFTEST(array1, array2)Use F.TESTNone
GAMMADISTGAMMADIST(x, alpha, beta, cumulative)Use GAMMA.DISTNone
GAMMAINVGAMMAINV(probability, alpha, beta)Use GAMMA.INVNone
HYPGEOMDISTHYPGEOMDIST(sample_s, number_sample, population_s, number_pop)Use HYPGEOM.DISTNew version adds the cumulative argument
LOGINVLOGINV(probability, mean, standard_dev)Use LOGNORM.INVNone
LOGNORMDISTLOGNORMDIST(x, mean, standard_dev)Use LOGNORM.DISTNew version adds the cumulative argument
MODEMODE(number1, [number2], …)Use MODE.SNGLNone; MODE.MULT is new
NEGBINOMDISTNEGBINOMDIST(number_f, number_s, probability_s)Use NEGBINOM.DISTNew version adds the cumulative argument
NORMDISTNORMDIST(x, mean, standard_dev, cumulative)Use NORM.DISTNone
NORMINVNORMINV(probability, mean, standard_dev)Use NORM.INVNone
NORMSDISTNORMSDIST(z)Use NORM.S.DISTNew version needs the cumulative argument
NORMSINVNORMSINV(probability)Use NORM.S.INVNone
PERCENTILEPERCENTILE(array, k)Use PERCENTILE.INCNone; .EXC is new and matches Minitab
PERCENTRANKPERCENTRANK(array, x, [significance])Use PERCENTRANK.INCNone; .EXC is new
POISSONPOISSON(x, mean, cumulative)Use POISSON.DISTNone
QUARTILEQUARTILE(array, quart)Use QUARTILE.INCNone; .EXC is new and matches Minitab
RANKRANK(number, ref, [order])Use RANK.EQNone; RANK.AVG is new
STDEVSTDEV(number1, [number2], …)Use STDEV.SNone
STDEVPSTDEVP(number1, [number2], …)Use STDEV.PNone
TDISTTDIST(x, deg_freedom, tails)Use T.DIST.RT or T.DIST.2TOld version took a tails argument
TINVTINV(probability, deg_freedom)Use T.INV.2TOld version was two-tailed; T.INV is left-tailed
TTESTTTEST(array1, array2, tails, type)Use T.TESTNone
VARVAR(number1, [number2], …)Use VAR.SNone
VARPVARP(number1, [number2], …)Use VAR.PNone
WEIBULLWEIBULL(x, alpha, beta, cumulative)Use WEIBULL.DISTNone
ZTESTZTEST(array, x, [sigma])Use Z.TESTNone

TINV trap. TINV(0.05, 10) = T.INV.2T(0.05, 10) = 2.228, but T.INV(0.05, 10) = −1.812.

↑ Back to the mapNext: beyond Excel →

Map stop 12 · Beyond Excel

Beyond Excel: tests with no function, and the workarounds

Goal: run a Black Belt test that Excel has no function for.

Most tools beyond t, F, chi-square and simple ANOVA have no Excel function and no ToolPak tool. Build them from formulas, or call Python in Excel, where scipy.stats and statsmodels run inside a =PY() cell on Microsoft's cloud.

Twelve gaps and how to fill them
NeedFormula workaroundPython in Excel
Normality test (Anderson-Darling, Shapiro-Wilk)Normal probability plot with NORM.S.INV and RANK.AVG; check SKEW and KURTstats.anderson, stats.shapiro
One- and two-proportion testsz statistic with NORM.S.DIST; exact test with BINOM.DISTproportions_ztest
Nonparametric tests (sign, Wilcoxon, Mann-Whitney, Kruskal-Wallis)Sign test with BINOM.DIST; rank sums with RANK.AVGstats.wilcoxon, mannwhitneyu, kruskal
Equal variances, three or more groups (Levene, Bartlett)One-way ANOVA on absolute deviations from each group medianstats.levene, stats.bartlett
Post-hoc comparisons (Tukey)Fisher LSD with T.INV.2T; no studentized range in Excelpairwise_tukeyhsd
Unbalanced or multi-factor ANOVA and DOE analysisLINEST with coded columns for two-level factorialsstatsmodels ols with anova_lm
Power and sample sizeSample-size formula with NORM.S.INVstatsmodels.stats.power
Process capabilityCpk from AVERAGE and STDEV.S, or R-bar over d2numpy formulas
Control chartsLimits from AVERAGE and constants, drawn as a line chartmatplotlib chart in the cell
Gage R&RANOVA method built from DEVSQstatsmodels random-effects ANOVA
Weibull fittingLINEST on the linearized Weibull plotstats.weibull_min.fit
Logistic or Poisson regressionSolver maximizing the log-likelihoodstatsmodels Logit or GLM
The Python function
FunctionSyntaxReturnsWhen to use it
PY Other categoryPY(python_code, return_type)Runs Python in a cell (Microsoft 365)scipy.stats and statsmodels for tests Excel lacks

↑ Back to the mapNext: Statistics Implementation →

Do it in software

Statistics Implementation

Psst. The map tells you where to go. This panel shows you the moves: seven worked examples, every Minitab twin and the exam's favourite traps.You found the secret level. Worked numbers, menu paths and exam traps are all below. Unlock the cheat codesHide the cheat codes

Excel functions: the quick pick

The first function to reach for on each map stop
Map stopYour questionFirst functionThen
01 DescriptiveWhere is the centre, and how spread out?AVERAGE, MEDIAN, STDEV.SSKEW, KURT, TRIMMEAN
02 DistributionsWhat is the probability, or the critical value?NORM.DIST, T.DIST.2T, BINOM.DISTThe matching .INV
03 InferenceWhat range holds the true mean?CONFIDENCE.TCHISQ.INV for sigma, BETA.INV for exact p
04 Hypothesis testsIs the difference real?T.TEST, F.TEST, CHISQ.TESTT.DIST.2T, F.DIST.RT on your own statistic
05 CorrelationDo two measures move together?CORRELT.DIST.2T for p, FISHER for the interval
06 RegressionHow much does y change per x?LINESTTREND, F.DIST.RT
07 ForecastingWhat comes next period?FORECAST.ETSFORECAST.ETS.CONFINT
08 EDAWhat does the data look like?QUARTILE.EXC, FREQUENCY, GROUPBYBox and whisker chart, normal plot
09 What-ifWhich input hits the target?Goal Seek, Data TableSolver; RANDARRAY with NORM.INV

Excel use cases: seven worked examples

Made-up plant data. Every value was cross-checked in SciPy, and Excel returns the same numbers.

  1. 1-sample t and interval. Ten tensile coupons (MPa): 492, 488, 495, 481, 499, 490, 486, 493, 497, 489. Is the mean above 485? =AVERAGE(A2:A11) gives 491.0 and =STDEV.S(A2:A11) gives 5.375.
    \[ t = \frac{491.0 - 485}{5.375/\sqrt{10}} = 3.530 \]
    One-sided p: =T.DIST.RT(3.530, 9) = 0.0032. Interval: =CONFIDENCE.T(0.05, 5.375, 10) = 3.845, so 487.2 to 494.8 MPa. The mean is above 485.
  2. Paired t. Crane cycle times (s) before 62, 58, 71, 66, 54, 69, 60, 63 and after 48, 47, 55, 50, 46, 52, 49, 51. =T.TEST(before, after, 2, 1) = 0.000007. The mean saving is 13.1 s.
  3. Variance check, then the right t-test. Line A has 8 values and line B has 10. =F.TEST(A, B) = 0.012, so the variances differ. =T.TEST(A, B, 2, 3) = 0.317: no evidence the means differ.
  4. Chi-square test of independence. Defect type by shift: observed 18, 7, 5 and 12, 15, 13. Build expected counts, then =CHISQ.TEST(observed, expected) = 0.041 with 2 df. Defect type depends on shift.
  5. Exact proportion test. 7 defectives in 200 pipes against a 2% target. =1-BINOM.DIST(6, 200, 0.02, TRUE) = 0.109. The expected count is 4, below 5, so report the exact value, not the z approximation (0.065).
  6. Poisson probability. 1.2 surface defects per pipe on average. The chance of 3 or more is =1-POISSON.DIST(2, 1.2, TRUE) = 0.121.
  7. Solver blend. Shred at 420 per tonne and 0.22% Cu, HMS at 380 and 0.30%, pig iron at 520 and 0.01%. Minimize =SUMPRODUCT(cost, share) with Cu at most 0.18% and pig iron at most 25%. Simplex LP gives 59.4% shred, 15.6% HMS and 25% pig iron, at 438.75 per tonne.

Minitab navigation

The Minitab twin of every map stop
Map stopPrimary pathAlternativesWhich to use and why
DescriptiveStat › Basic Statistics › Display Descriptive StatisticsStat › Basic Statistics › Graphical SummaryGraphical Summary adds the Anderson-Darling test and intervals for the mean, SD and median.
EDAGraph › Boxplot, Graph › HistogramGraph › Probability Plot; Stat › Quality Tools › Run ChartProbability Plot with its p-value is the standard normality check.
DistributionsCalc › Probability DistributionsGraph › Probability Distribution PlotCalc gives density, cumulative or inverse cumulative values, like .DIST and .INV.
InferenceStat › Basic Statistics › 1-Sample tStat › Quality Tools › Tolerance Intervals; Stat › Power and Sample SizeEvery Basic Statistics test also prints the interval.
Hypothesis testsStat › Basic Statistics › 2-Sample t (and 1-Sample, Paired, 2 Variances, Proportions)Stat › ANOVA › One-Way; Stat › Tables › Chi-Square Test for Association2-Sample t defaults to unequal variances, like T.TEST type 3.
CorrelationStat › Basic Statistics › CorrelationGraph › Scatterplot; Graph › Matrix PlotGives r, p-values and Spearman in one dialog, which Excel cannot.
RegressionStat › Regression › Regression › Fit Regression ModelStat › Regression › Fitted Line PlotFitted Line Plot for one x; Fit Regression Model for several, with residual plots.
ForecastingStat › Time Series › Winters' MethodStat › Time Series › Trend Analysis, Decomposition, ARIMAWinters' Method is the closest to FORECAST.ETS.
What-ifStat › DOE › Factorial › Response OptimizerStat › Regression › Regression › Response Optimizer; Stat › DOE › Factorial › Overlaid Contour PlotResponse Optimizer is Minitab's Solver; overlaid contour plots are its visual Data Table.

Exam tips

  • The exam tests reading, not keystrokes. CSSBB and CQE are open-book and calculator-based. Expect Excel or Minitab output to interpret, not software to run.
  • Tables are .INV functions. A two-tailed t table value is T.INV.2T, a chi-square table is CHISQ.INV.RT and an F table is F.INV.RT. Use them to check your lookups.
  • Know the ToolPak labels. "P(T<=t) two-tail" is the two-sided p-value; "t Critical two-tail" is the two-sided critical value.
  • Sample data means STDEV.S. A population formula on sample data is a classic distractor.
  • Legacy names in prep books. TINV is two-tailed; modern T.INV is left-tailed.
  • Real projects. Check normality and equal variances before trusting t and ANOVA, and confirm an optimized setting with runs before changing standard work.

↑ Back to the mapNext: quiz →

Knowledge check

Check your understanding

Comprehension quiz

Pick the strongest answer, then submit. Explanations appear after you submit.

1. You measured wall thickness on 30 pipes from a shift. Which function gives the spread?
2. A t statistic is 2.10 with 9 degrees of freedom. Which formula gives the two-sided p-value?
3. An old workbook uses =TINV(0.05, 10). What is the modern equivalent?
4. What does =F.TEST(a, b) return?
5. You want the standard deviation that makes your Cpk formula equal 1.33. Which tool?
6. Your Excel box plot must match Minitab's quartiles. Which function?
7. LINEST fits y on three x columns. In what order do the coefficients come back?

References

← Back to Power BI, Excel & SQL lessons