The Excel T.TEST function calculates the probability associated with the Student's T Test, which is commonly used for identifying whether two data sets are likely to have come from the same two underlying populations with the same mean.
The T.TEST function is new to Excel 2010. However, this is simply a renamed version of the TTEST function, that is available in earlier versions of Excel.
The format of the T.Test function is :
where the function arguments are:
array1    The first data set  
array2    The second data set (must have the same length as array1)  
tails   
The number of tails for the distribution. This can be either :


type   
An integer that represents the type of ttest. This can be either :

Columns A and B of the above spreadsheet on the right contain two arrays of data.
The probability associated with the Student's paired ttest with a onetailed distribution, for the two arrays of data can be calculated using the Excel T.Test function as follows :
This gives the result 0.449070689.
The probability associated with the Student's paired ttest with a twotailed distribution, for the same two arrays of data, is calculated as follows :
This gives the result 0.898141379.
Note that the probability associated with the twotailed TTest is double that of the onetailed TTest.
Further information and examples of the Excel T.Test function are provided on the Microsoft Office website.
If you get an error from the Excel T.Test Function, this is likely to be one of the following :
#N/A    Occurs if the two supplied arrays have different lengths 
#NUM!   
Occurs if either:

#VALUE!    Occurs if either the tails argument or the type argument is nonnumeric 