4.2 C
London
Friday, December 20, 2024
HomeExcelDescriptive Statistics in ExcelHow to Calculate Average by Month in Excel

How to Calculate Average by Month in Excel

Related stories

Learn About Opening an Automobile Repair Shop in India

Starting a car repair shop is quite a good...

Unlocking the Power: Embracing the Benefits of Tax-Free Investing

  Unlocking the Power: Embracing the Benefits of Tax-Free Investing For...

Income Splitting in Canada for 2023

  Income Splitting in Canada for 2023 The federal government’s expanded...

Can I Deduct Home Office Expenses on my Tax Return 2023?

Can I Deduct Home Office Expenses on my Tax...

Canadian Tax – Personal Tax Deadline 2022

  Canadian Tax – Personal Tax Deadline 2022 Resources and Tools...

Often you may want to calculate the average value grouped by month in Excel.

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 Excel:

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)

This will produce a list of unique months:

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:

Excel average by month

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.

Additional Resources

The following tutorials explain how to perform other common tasks in Excel:

How to Convert Date to Month and Year in Excel
How to Count by Month in Excel
How to Filter Dates by Month in Excel

Subscribe

- Never miss a story with notifications

- Gain full access to our premium content

- Browse free from up to 5 devices at once

Latest stories