TTEST Function in Excel: t-Test (Older Name)

TTEST Function in Excel: t-Test (Older Name) 1
⏱ 1 min readUpdated 5 October 2026

StatisticsLevel: IntermediateAvailable in: Excel 2007+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. TTEST in practice
  5. Where you will use it
  6. Worked example
  7. Mistakes people make
  8. Related functions

TTEST returns the p-value of a t-test between two samples. It is a compatibility function: Excel keeps it so workbooks from Excel 2007 and earlier still calculate, but Microsoft recommends T.TEST for new work. Both give the same result.

Advertisement

Syntax

=TTEST(array1, array2, tails, type)
Argument What it means
array1, array2 Samples
tails 1 or 2
type 1 paired, 2 equal var, 3 unequal

Examples

Example 1

=ROUND(TTEST({30,32,31,29,33},{25,26,24,27,25},2,A2),5)

Result: 0.0002. See the worked example table below for more cases.

💡 For new workbooks use T.TEST: it gives the same answer and is the name Microsoft keeps documenting.

TTEST in practice

Where you will use it

  • Opening and checking older workbooks that use TTEST
  • Understanding formulas shared by colleagues on older Excel versions
  • Knowing when to swap in T.TEST for clarity

Worked example

TypeFormulaResult
2=ROUND(TTEST({30,32,31,29,33},{25,26,24,27,25},2,A2),5)0.0002
3=ROUND(TTEST({30,32,31,29,33},{25,26,24,27,25},2,A3),5)0.00031
1=ROUND(TTEST({30,32,31,29,33},{25,26,24,27,25},2,A4),5)0.00555

Results calculated in Excel. Same result as T.TEST.

Mistakes people make

MistakeWhat to do instead
Using TTEST in new filesPrefer T.TEST: same result, clearer name, and the function Microsoft keeps improving
Mixing old and new names in one modelPick one style per workbook so formulas are easy to audit

T.TEST

📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong

Leave a Reply

Your email address will not be published. Required fields are marked *