Table of Contents
To calculate the average by month in Google Sheets, follow these steps:
1. Organize your data into columns, with the first column containing the dates and the second column containing the values you want to average.
2. Select the cell where you want the average to appear.
3. Type in the following formula: =AVERAGEIFS(B2:B,MONTH(A2:A),MONTH(A2))
4. Press enter to calculate the average.
This formula will automatically calculate the average for each month based on the dates and values provided. You can also adjust the formula to fit your specific data set by changing the cell references to match your data.
Calculate Average by Month in Google Sheets
Often you may want to calculate the average value grouped by month in Google Sheets.
For example, suppose we have the following dataset and we’d like to calculate the average daily sales, grouped by month:

The following step-by-step example shows how to do so.
Step 1: Enter the Data
First, enter the data values into Google Sheets:

Step 2: Extract the Month from Dates
Next, we need to use the =MONTH() function to extract the month from each date.
In our example, we’ll type the following formula in cell D2:
=MONTH(A2)
We’ll then drag and fill this formula down to every remaining cell in column D:

Step 3: Find the Unique Months
Next, we need to use the =UNIQUE() function to produce a list of unique months.
In our example, we’ll type the following formula in cell F2:
=UNIQUE(D2:D10)

Step 4: Calculate the Average by Month
Next, we will use the AVERAGEIF(range, criterion, average_range) function to find the average of the daily sales values, grouped by month.
In our example, we’ll type the following formula in cell G2:
=AVERAGEIF($D$2:$D$10, F2, $B$2:$B$10)
We’ll then drag and fill this formula down to the remaining cells in column G:

This tells us:
- The average daily sales value in January was 39.
- The average daily sales value in February was 25.
- The average daily sales value in March was 27.75.
The following tutorials explain how to perform other common tasks in Google Sheets:
Cite this article
stats writer (2024). How can I calculate the average by month in Google Sheets?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-calculate-the-average-by-month-in-google-sheets/
stats writer. "How can I calculate the average by month in Google Sheets?." PSYCHOLOGICAL SCALES, 27 Jun. 2024, https://scales.arabpsychology.com/stats/how-can-i-calculate-the-average-by-month-in-google-sheets/.
stats writer. "How can I calculate the average by month in Google Sheets?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-calculate-the-average-by-month-in-google-sheets/.
stats writer (2024) 'How can I calculate the average by month in Google Sheets?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-calculate-the-average-by-month-in-google-sheets/.
[1] stats writer, "How can I calculate the average by month in Google Sheets?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.
stats writer. How can I calculate the average by month in Google Sheets?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
