For example, if and the sample size (degrees of freedom) is , the formula is
When this command executes, the result is , which is the value of when we have and degrees of freedom.
The graph below represents this result. The shaded area goes from to , and from to , and has total area equal to , or .
The two shaded portions each have area or .
These threshold values would be used to construct a two-tailed test or confidence region.
(Note: this is the correct syntax for Excel. It is slightly different for other spreadsheets. Consult the help menu of the spreadsheet you are using to find the correct syntax for your spreadsheet program).