Excel has a wide variety of builtin statistics functions that give, for instance, the slope and yintercept of a line, the standard deviation of a data sample, and the mean, median and mode of a set of values. In this tutorial we will cover a few of the more useful and popular statistics functions, but there are many more builtin statistics functions that you can learn about via Excel's help files. Basic builtin functions. (AVERAGE, MEAN, MODE, COUNT, MAX, MIN) We will use the familiar example of a class's grades to illustrate the use of some of the more basic Excel functions, like AVERAGE( ), MODE( ) AND MAX( ). Assume a class's grade distribution is as follows: 3, 0, 4, 4, 4, 2, 4, 1, 4, 0, 3, 3, 1, 1, 3. These grades are based on a 4point scale with 4=A and 0=F and are entered into an Excel worksheet shown below. Using the AVERAGE( ) function, we find the class's average (or arithmetic mean) grade is a disappointing 2.47, or a midC. The syntax for this common function is =AVERAGE(number1, number2, ...) and is displayed in the screen shot below. For more information using the AVERAGE function, see the arithmetic section in this tutorial. However we don't get a clear picture of the class's performance by simply looking at its average. We can further analyze the data using the MEDIAN( ) function. The median gives the middle number in a set of numbers and its syntax is =MEDIAN(number1, number2,...). We see from the screen shot below that the median grade is 3.0, meaning that half of the grades are higher than 3.0, and half are lower. Therefore, despite the low class average, more students scored 3's and 4's than 2's, 1's and 0's. Additionally, we can also analyze the grade distribution by using the MODE( ) function. The mode gives the most frequently occurring value of a set of numbers and its syntax is =MODE(number1, number2,...). From the screen shot, we see that the mode grade is 4, meaning that a score of 4 was the most common grade. Again, the instructor of the class can take heart that, despite the low class average, more students made A's than any other grade. Without going into too much detail, we can also use some of Excel's builtin functions to determine the number of grades entered, and the maximum and minimum grades of the distribution. The syntax for these functions are shown below in the bulletted list and also in the screen shot.
Linear regression equations. (SLOPE, INTERCEPT, CORREL) Excel has three builtin functions that allow for a third method for determining the slope, yintercept, correlation coefficient, and Rsquared values of a set of data. The functions are SLOPE(), INTERCEPT(), CORREL() and RSQ(), and are also covered in the statistics section of this tutorial. The syntax for each are as follows:
I use these functions for two reasons. One, using them is easier and faster than plotting the data and adding a trendline  although a visual graph shows trends in the data better than any other tool. And, two, it is often necessary to operate on the slope and yintercept, and using the SLOPE( ) and INTERCEPT( ) functions allows the scientist to automate this, rather than manually transcribing the values given by the graph. As an example, let's examine the equation of motion, , for a car coming to a stop. If we measure the car's position and velocity we can determine its acceleration and its initial velocity with the use of the SLOPE( ) and INTERCEPT( ) functions. The equation of motion has the form of , so if the square of the car's velocity is plotted along the yaxis and its position along the xaxis, then the slope is , and the yintercept is simply . Note that in order to find the acceleration, we must divide the slope by 2 and to find the initial velocity, we must take the square root of the yintercept.
Note that the CORREL( ) function was used to ensure that the data did display a linear trend  otherwise, the slope and yintercept values are meaningless! It is always a good idea to plot the data as well as use these statistics functions because sometimes trends are not obvious. Additionally, a plot of the data allows us to visualize the data and gross blunders and errant data points are easily detected. The graph below tells us immediately that our data appears reasonable.
You must always convince yourself of what the data is telling you. Error analysis tools. (STDEV) Let's assume we make a number of repetitive measurements of one quantity, say the speed of sound. We could find the average value, but this tells us nothing of the precision of our measurement. For this, we need to calculate the standard deviation of the measured values. To quickly determine the standard deviation of any measurement, use Excel's builtin STDEV( ) function. This is illustrated in the following example:
It should be noted here that to find the accuracy of the experimental value, you will need to determine its percent error from the accepted value of 343.0m/s. Miscellany. (ABS) To find the absolute value of a number, use the ABS( ) function. See the examples below.


Copyright © 2000, Clemson University. All Rights Reserved.
