You now have a dataset and need to calculate the so-called “measures of central tendency.” How would you do so? Fortunately, Google Sheets has its own functions to automatically calculate the mean, median, and mode of a dataset. They are defined as follows:
For our example, we have a list of purchases of a single product. We wish to calculate the mean profit, the median of the amount of items ordered, and the mode of the amount of items ordered.
To calculate the mean of a dataset, use the AVERAGE() function and set the input as the area of the array containing the data. For our example, the data for profit covers cells D2 to D56:
=AVERAGE(D2:D56)
The AVERAGE() function ignores text, and so if you accidentally included the header of the table it will not break the function nor change the result:
In a similar fashion, the MEDIAN() function calculates the median of the array. For our example, the data for the amount of items ordered covers cells B2 to B56:
=MEDIAN(B2:B56)
The MEDIAN() function ignores text, and so if you accidentally included the header of the table it will not break the function nor change the result:
Finally, the MODE() function calculates the mode of the array. For our example, the data for the amount of items ordered covers cells B2 to B56:
=MODE(B2:B56)
The MODE() function ignores text, so if you accidentally included the header of the table, it won’t break the function nor change the result:
The quickest and easiest way to calculate the mean of a dataset in Google Sheets is to use the AVERAGE function.
If you enjoyed this article, you might also like our article on how to divide on Google Sheets or our article on how to make a random number generator in Google Sheets.
If you want to learn how to mail merge labels in Google Sheets, we also suggest checking out our detailed guide.