Yes, Excel can handle most everyday statistics without any add-ins: you just type formulas like =AVERAGE(), =MEDIAN() or =STDEV.S() into a cell and point them at your data range. This guide walks through the core statistical formulas, how to enter them correctly, and how to avoid the common errors that produce wrong answers. It works in Excel for Windows, Excel for Mac, and the free Excel web app, and the same formulas also work in Google Sheets.

What You'll Need

  • A copy of Excel (desktop or the free web version at office.com) or Google Sheets
  • Your data arranged in columns, with one variable per column and a header row
  • Numbers stored as actual numbers, not text (check they align right by default; text aligns left)

Step-by-Step

  1. Organize your data. Put each variable in its own column, add a header in row 1, and avoid blank rows inside the data. For example, put test scores in cells A2 through A101.
  2. Calculate the mean. Click an empty cell and type =AVERAGE(A2:A101), then press Enter. This gives the arithmetic average, ignoring blank cells.
  3. Find the median. Type =MEDIAN(A2:A101). The median is the middle value and is less distorted by outliers than the average.
  4. Find the mode. Type =MODE.SNGL(A2:A101) for the most frequent single value, or =MODE.MULT(A2:A101) if there may be several equally common values (in older versions you may need to confirm with Ctrl+Shift+Enter).
  5. Measure spread with standard deviation. Use =STDEV.S(A2:A101) when your data is a sample, and =STDEV.P(A2:A101) when it is the entire population. Picking the wrong one is the single most common statistical mistake in Excel.
  6. Get variance if you need it. Type =VAR.S(A2:A101) or =VAR.P(A2:A101). Variance is just the standard deviation squared.
  7. Find minimum, maximum and range. Use =MIN(A2:A101) and =MAX(A2:A101); the range is simply =MAX(A2:A101)-MIN(A2:A101).
  8. Count entries. =COUNT(A2:A101) counts numeric cells only, while =COUNTA(A2:A101) counts anything non-empty. A big gap between the two usually means some numbers are stored as text.
  9. Calculate percentiles and quartiles. Use =QUARTILE.INC(A2:A101,1) for the first quartile (the second argument is 0 to 4 for min, Q1, median, Q3, max), or =PERCENTILE.INC(A2:A101,0.9) for the 90th percentile.
  10. Check correlation between two columns. With scores in column A and hours studied in column B, type =CORREL(A2:A101,B2:B101). The result runs from -1 to +1.
  11. Use the status bar for a quick look. Select a range of numbers and glance at the bottom of the Excel window; the average, count and sum appear automatically with no formula needed.
  12. Let Excel write the formula for you. Select the cells just below or beside your data, then on Windows press Alt + = for AutoSum options, or go to Formulas > More Functions > Statistical to browse the full list with a guided dialog. Exact button labels vary slightly between Excel versions and platforms, but the function names are identical.

Common Mistakes

  • Using STDEV.S vs STDEV.P incorrectly. If your data is a sample drawn from a larger group, use STDEV.S. Only use STDEV.P when the data really is the whole population.
  • Numbers stored as text. If COUNT returns fewer than expected, some cells are text. Select them, and if a warning triangle appears, choose Convert to Number, or re-enter the values.
  • Including the header row in the range. AVERAGE(A1:A101) with a text header in A1 silently ignores it, but COUNT-based checks get confusing. Start ranges at the first data row.
  • Blank cells vs zeros. AVERAGE ignores blanks but includes zeros. If a blank means "missing," fine; if a zero means "missing," your average is skewed.
  • Off-by-one ranges. Dragging a formula down and having it extend or shorten the range unexpectedly. Lock key ranges with dollar signs like $A$2:$A$101 where needed.
  • Trusting AVERAGE with outliers. One extreme value can drag the mean far from the typical value; check MEDIAN alongside it.

Tips

  • Convert your data to an official Table (select it, then Insert > Table) so ranges expand automatically when you add rows, and structured references like Table1[Score] work in formulas.
  • Round only for display, not in the calculation: keep the raw formula and format the cell (right-click > Format Cells) instead of wrapping everything in ROUND.
  • Build a small summary block with labeled rows for n, mean, median, standard deviation, min and max, so your statistics live in one visible place.
  • Use the Formulas > Insert Function dialog (Shift + F3) to see argument help for any function you are unsure about.
  • For anything beyond basics, the Analysis ToolPak add-in (File > Options > Add-ins on Windows desktop) adds tools like descriptive statistics, histograms and t-tests. It is included with desktop Excel but not available in the web version.

Troubleshooting

  • #DIV/0! error: your range contains no numeric values, or you divided by a count of zero. Check the range and that the cells are numbers.
  • #NAME? error: the function name is misspelled, or you used a newer function (like MODE.SNGL) in a very old Excel version. Older versions use MODE, STDEV and VAR instead.
  • #N/A from MODE: there is no repeated value in the data, so no mode exists. That is a legitimate result, not a broken formula.
  • Result looks wrong: select the formula cell and use Formulas > Evaluate Formula to step through the calculation, and check for hidden rows, stray spaces (clean with TRIM) or text-formatted numbers.
  • Formula shows as text: the cell is formatted as Text. Change the format to General (Home > Number Format) and press F2 then Enter to recalculate.
  • Nothing recalculates: check Formulas > Calculation Options is set to Automatic, or press F9 to force a recalculation.

Frequently Asked Questions

What is the difference between STDEV.S and STDEV.P?

STDEV.S assumes your data is a sample and applies a correction (dividing by n minus 1). STDEV.P assumes the data is the entire population. For most real-world data, STDEV.S is the right choice.

Do these formulas work in Google Sheets?

Yes. AVERAGE, MEDIAN, STDEV.S, STDEV.P, QUARTILE, PERCENTILE, COUNT and CORREL all work identically in Google Sheets. Function names are shared between the two programs.

How do I calculate statistics for only certain rows?

Use conditional versions: AVERAGEIF(range, criteria, average_range), COUNTIF(range, criteria), or their plural AVERAGEIFS/COUNTIFS forms for multiple conditions. For example, =AVERAGEIF(B2:B101,"Pass",A2:A101) averages scores where column B says Pass.

Is there an Excel function for the standard error?

Not directly, but it is easy: standard error equals STDEV.S divided by the square root of n, so use =STDEV.S(A2:A101)/SQRT(COUNT(A2:A101)).

Why does AVERAGE ignore some of my cells?

AVERAGE ignores blanks and text. If numbers look present but are skipped, they are probably stored as text, often from imported CSV files. Convert them with the warning-triangle menu or multiply by 1 in a helper column.

Can Excel do a full descriptive statistics table at once?

Yes, with the Analysis ToolPak add-in on desktop Excel. Enable it under File > Options > Add-ins, then use Data > Data Analysis > Descriptive Statistics to generate mean, median, standard deviation and more in one output table.