Excel Statistical Functions: A Practical Guide

Learn Excel statistical functions for averages, medians, modes, percentiles, conditional summaries, and sample or population variation.

Excel statistical functions turn a column of observations into answers: What is typical? How widely do values vary? Which result ranks second? Does one group behave differently from another? The difficult part is rarely typing the formula. It is choosing a measure that matches the question.

This guide uses one small service-desk dataset to explain the most useful descriptive functions, the decisions behind them, and the data issues that can quietly change a result.

Choose the function by the question

Question Function What it returns
What is the arithmetic mean? AVERAGE Sum divided by the count of numeric values
What is the middle value? MEDIAN The center of the sorted values
Which value occurs most often? MODE.SNGL, MODE.MULT One mode or all modes
How much do the values vary? STDEV.S, STDEV.P Sample or population standard deviation
What are the lowest and highest values? MIN, MAX The two extremes
What is the k-th highest or lowest value? LARGE, SMALL A value at a requested rank
Where do values fall within the distribution? PERCENTILE.INC, QUARTILE.INC A percentile or quartile boundary
What is the mean for matching records? AVERAGEIF, AVERAGEIFS An average after one or more conditions

These are only a practical starting set. Microsoft’s statistical functions reference also lists functions for distributions, correlation, regression, forecasting, confidence intervals, and hypothesis tests.

Use one dataset to compare the results

Enter this example in A1:D9. The resolution times in C2:C9 are deliberately uneven so the measures do not all tell the same story.

Ticket Team Resolution minutes Satisfaction
T-101North185
T-102South224
T-103North224
T-104East254
T-105South273
T-106North294
T-107East313
T-108South661

The formulas below assume the headers and values occupy exactly those cells. If you add rows later, convert the source range to an Excel Table so formulas can use expanding structured references.

Measure the center with AVERAGE, MEDIAN, and MODE

=AVERAGE(C2:C9)
=MEDIAN(C2:C9)
=MODE.SNGL(C2:C9)

The results are 30, 26, and 22. Each is correct, but each answers a different question:

  • AVERAGE uses every numeric value, so the 66-minute ticket pulls the mean upward.
  • MEDIAN sorts the eight values and averages the two in the middle, 25 and 27. It is less sensitive to the unusually long ticket.
  • MODE.SNGL returns 22 because that is the only value that appears more than once.

Use the mean when every magnitude should influence the result. Use the median when you want a typical midpoint that is less affected by extreme observations. Use the mode for a genuinely useful most-common value, such as a frequently selected package size; it may add little when nearly every value is unique.

If several values tie for the highest frequency, MODE.MULT can return all modes. If no value repeats, MODE.SNGL returns #N/A. Microsoft documents that behavior in the MODE.SNGL reference.

Measure spread with STDEV.S or STDEV.P

Standard deviation describes how widely values are dispersed around their mean. Use the function that matches what the rows represent:

=STDEV.S(C2:C9)
=STDEV.P(C2:C9)

For the sample data, STDEV.S returns approximately 15.14 minutes and STDEV.P returns approximately 14.16 minutes.

  • Use STDEV.S when the observed tickets are a sample used to describe a larger population of tickets. It uses the n-1 method.
  • Use STDEV.P when the range contains the complete population you intend to describe. It uses the n method.

The choice depends on the data’s role, not on which answer looks better. Microsoft’s documentation distinguishes STDEV.S for a sample from STDEV.P for an entire population. For large datasets the two results get closer, but the underlying choice remains the same.

Standard deviation has the same unit as the source data, so these results are in minutes. Variance functions VAR.S and VAR.P follow the same sample-versus-population decision, but their results are in squared units.

Find extremes and ranked values

MIN and MAX return the endpoints. SMALL and LARGE accept a second argument, k, that identifies the requested rank.

Formula Result Meaning
=MIN(C2:C9)18Shortest resolution time
=MAX(C2:C9)66Longest resolution time
=SMALL(C2:C9,2)22Second-smallest value
=LARGE(C2:C9,2)31Second-largest value

The simple range is 66-18, or 48 minutes, but it depends entirely on two observations. Ranked values give more context without requiring you to sort the source rows. Repeated values still occupy separate rank positions: the second-smallest value here is 22, even though another 22 follows it.

Describe position with percentiles and quartiles

Percentiles divide ordered data by relative position. Quartiles are specific percentiles: the first quartile corresponds to 25%, the median to 50%, and the third quartile to 75%.

=QUARTILE.INC(C2:C9,1)
=QUARTILE.INC(C2:C9,3)
=PERCENTILE.INC(C2:C9,0.9)

These formulas return 22 for the first quartile, 29.5 for the third quartile, and 41.5 for the inclusive 90th percentile. The interquartile range is therefore 29.5-22, or 7.5 minutes.

The .INC functions include the 0th and 100th percentile endpoints. Excel also provides PERCENTILE.EXC and QUARTILE.EXC, which use an exclusive definition and can produce different results, especially with small datasets. Choose a convention required by your method or organization and label it; do not switch variants merely to obtain a preferred boundary. See Microsoft’s QUARTILE.INC documentation for the supported quartile arguments.

Calculate conditional averages

AVERAGEIF applies one condition. To average resolution time only for the South team, use:

=AVERAGEIF(B2:B9,"South",C2:C9)

The result is approximately 38.33 minutes. The first range is tested against the criterion, and the last range supplies the numbers to average.

AVERAGEIFS handles multiple conditions. This formula averages South-team tickets whose satisfaction score is at least 3:

=AVERAGEIFS(C2:C9,B2:B9,"South",D2:D9,">=3")

The result is 24.5 minutes. In AVERAGEIFS, the average range comes first, followed by pairs of criteria ranges and criteria. Keep every range the same size and align corresponding records on the same rows.

Handle blanks, text, zeros, and errors deliberately

For cell references, AVERAGE, MEDIAN, MODE.SNGL, STDEV.S, and STDEV.P ignore empty cells, text, and logical values, but include numeric zeros. Error values in a referenced range can make the formula return an error.

This distinction matters. A zero can mean a measured result of zero, while a blank may mean “not observed.” Replacing missing observations with zeros changes both the numerator and the count behind an average.

  1. Inspect the source cells. Confirm that measurements are numeric values rather than numbers stored as text.
  2. Define missing data. Decide whether a blank is genuinely missing, not applicable, or an error in collection.
  3. Keep legitimate zeros. Exclude them only when the business rule says zero represents missing or invalid data.
  4. Investigate errors. Correct upstream errors instead of wrapping every result in IFERROR and hiding the cause.

Microsoft’s AVERAGE documentation confirms that zeros in references are included while text, logical values, and empty cells are ignored. Functions ending in A, such as AVERAGEA, use different coercion rules and should be chosen intentionally.

Average only visible rows

A regular AVERAGE calculation still reads rows hidden by a filter. To average only visible values in a vertical list, use:

=SUBTOTAL(101,C2:C9)

Function number 101 tells SUBTOTAL to calculate an average while excluding both filtered-out rows and manually hidden rows. Function number 1 also excludes filtered-out rows, but it includes manually hidden rows. The SUBTOTAL reference documents the full set of function numbers and notes that filtered-out rows are always excluded.

Common mistakes and fixes

Symptom Likely cause What to check
The mean seems too high An extreme value has strong influence Compare AVERAGE with MEDIAN; verify the extreme before excluding it
MODE.SNGL returns #N/A No numeric value repeats Confirm that a mode is meaningful for the data
AVERAGE returns #DIV/0! The range has no values Excel recognizes as numeric Check blanks, numbers stored as text, and whether the formula points to the intended range
LARGE or SMALL returns #NUM! k is zero, negative, or greater than the number of data points Use an integer rank from 1 through the numeric count
Sample and population deviations differ The formulas use different denominators Choose STDEV.S or STDEV.P from the sampling design
A filtered report still averages hidden records The formula uses AVERAGE Use SUBTOTAL(101,...) when the visible subset should control the result

When the basic functions are not enough

Descriptive functions summarize the values you already have. A different question may require a different family of statistical tools:

  • CORREL, SLOPE, and LINEST examine relationships between paired variables.
  • NORM.DIST, BINOM.DIST, and related functions calculate probabilities under specified distributions.
  • T.TEST, CHISQ.TEST, and F.TEST return probabilities for particular statistical tests.
  • CONFIDENCE.T and CONFIDENCE.NORM calculate confidence-interval margins under different assumptions.

Those functions require more than valid syntax. Independence, distribution shape, sample design, pairing, tails, and other assumptions affect whether a method is appropriate. Excel can return a number even when the selected model does not fit the study.

Frequently asked questions

Should I report the average or median?

Report the measure that matches the distribution and decision. The mean uses every magnitude; the median is usually more resistant to unusually high or low observations. Comparing both is a useful first check, and reporting both can be clearer when the data is skewed.

Is the median the same as the 50th percentile?

For the inclusive Excel functions used here, MEDIAN(range), PERCENTILE.INC(range,0.5), and QUARTILE.INC(range,2) return the same central value.

Why does Excel ignore some numbers?

They may be stored as text. Check the cell type, imported spaces or symbols, and any warning indicators. Do not convert identifiers or codes to numbers merely to make a statistic include them.

Which standard deviation function should I use?

Use STDEV.S when the observations are a sample from a broader population. Use STDEV.P when the values are the entire population you want to describe.

Build a summary that can be trusted

A useful statistical summary does more than display formulas. It states what each row represents, distinguishes missing values from real zeros, chooses sample or population logic explicitly, and pairs the mean with measures that reveal distribution and spread.

Start with AVERAGE, MEDIAN, and STDEV.S or STDEV.P. Add extremes, ranks, quartiles, or conditional averages only when they answer a defined question. That keeps the worksheet compact while making its conclusions easier to explain and audit.