In this article:

How to Calculate the Mean, Median, and Mode in Google Sheets

May 8, 2024


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:

  • The mean, also known as the arithmetic mean or the average, is calculated by adding all the given values in the list divided by the number of such values.
  • The median is the value at the middle of the list after arranging them by increasing order.
  • The mode is the most frequent value in the list. 

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.

The source dataset
The source dataset

How to calculate the mean

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:

The source dataset, with the AVERAGE function highlighted.
The source dataset, with the AVERAGE function highlighted.

How to calculate the median

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:

The source dataset, with the MEDIAN function highlighted.
The source dataset, with the MEDIAN function highlighted.

How to calculate the mode

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 source dataset, with the MODE function highlighted.
The source dataset, with the MODE function highlighted.

How to Find Mean in Google Sheets

The quickest and easiest way to calculate the mean of a dataset in Google Sheets is to use the AVERAGE function.

  1. Click on the cell you want to display the mean in
  2. Type =AVERAGE() in the cell
  3. Enter the numbers, cells or range you want to average in the parentheses.
  4. Press the ENTER key on your keyboard to return the result
The source dataset, with the AVERAGE function highlighted.

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. 

Get Google Sheets productivity and automation tips delivered straight to your inbox
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
We'll email you 1-3 times a week — and never share your information.

Work less, automate more!

Use Lido to connect your spreadsheets to email, Slack, calendars, and more to automate data transfers and eliminate manual copying and pasting. View all use cases ->