Returns the result of a Student's t-test.
TTEST(data1, data2, mode, type)
data1 and data2 are ranges or arrays (possibly of different size) containing numbers, on which the t-test is performed.
mode is
1 for a one-tailed t-test
2 for a two-tailed t-test.
type is
1 for paired samples
2 for two samples with equal variance
3 for two samples with unequal variance.
TTEST(A2:A20, B2:20, 2, 3)
returns the result of a two-tailed Student's t-test for two samples with unequal variance, using the data in A2:A20 and B2:20.
Comparing the effectiveness of two advertising campaigns
A marketing manager wants to determine which of two different advertising campaigns is more effective at driving website clicks. Campaign A uses a traditional banner ad, while Campaign B uses a more interactive, video-based ad.
To test this, they run both campaigns for a week, measuring the number of daily clicks each receives.
The following table shows the daily clicks for each campaign over the week:
Day | Campaign A Clicks | Campaign B Clicks | ||
|---|---|---|---|---|
A | B | C | ||
1 | Monday | 150 | 165 | |
2 | Tuesday | 145 | 170 | |
3 | Wednesday | 155 | 160 | |
4 | Thursday | 148 | 175 | |
5 | Friday | 160 | 180 | |
6 | Saturday | 152 | 172 | |
7 | Sunday | 140 | 168 |
The T.TEST function would be used to calculate the p-value. The syntax for the function is generally:
T.TEST(array1, array2, tails, type)
The formula would look something like this:
T.TEST(B1:B7, C1:C7, 1, 3)
The T.TEST function will return a p-value. The function returns a p-value of 0.000098202.
A p-value is the probability of observing the data you have, assuming the null hypothesis is true. A common significance level (alpha, α) is 0.05.
In this example, since our p-value (0.015) is less than the significance level of 0.05, we reject the null hypothesis.
The marketing manager can conclude that there is a statistically significant difference between the average daily clicks of the two campaigns. Based on the data, Campaign B consistently generated a higher number of clicks. Therefore, the manager should recommend continuing with the video-based advertising of Campaign B.
Result for T.TEST(B1:B7, C1:C7, 1, 3):
PRODUCT & FEATURES
RESOURCES
Terms | Privacy | Spam Policy
© 2026 Zapof