Table of Contents
To calculate the sum by month in Excel, follow these steps:
1. Create a column for the months you want to calculate the sum for.
2. In the adjacent column, enter the values you want to sum for each month.
3. Select the entire range of cells for both columns.
4. In the “Formulas” tab, click on the “AutoSum” button.
5. A formula will be automatically generated, showing the sum for all the selected cells.
6. Press “Enter” to calculate the overall sum.
7. To get the sum for each month, use the “SUMIF” function and specify the criteria as the month in the formula.
8. Repeat this process for each month to get the sum for each individual month.
9. You can also use a pivot table to organize the sum by month for a more visual representation.
Using these steps, you can easily calculate the sum by month in Excel and get a clear understanding of your data.
Sum by Month in Excel (Step-by-Step Example)
Often you may want to sum the values of some dataset in Excel based on month.
For example, suppose we have the following dataset and we’d like to sum the total sales 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)

Step 4: Find the Sum by Month
Next, we will use the SUMIF(range, criterion, sum_range) function to find the sum of the sales made during each month.
In our example, we’ll type the following formula in cell G2:
=SUMIF($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:
- There were 117 total sales made in January.
- There were 50 total sales made in February.
- There were 111 total sales made in March.
Additional Resources
The following tutorials explain how to perform other common tasks in Excel:
Cite this article
stats writer (2024). How do I calculate the sum by month in Excel?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-do-i-calculate-the-sum-by-month-in-excel/
stats writer. "How do I calculate the sum by month in Excel?." PSYCHOLOGICAL SCALES, 28 Jun. 2024, https://scales.arabpsychology.com/stats/how-do-i-calculate-the-sum-by-month-in-excel/.
stats writer. "How do I calculate the sum by month in Excel?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-do-i-calculate-the-sum-by-month-in-excel/.
stats writer (2024) 'How do I calculate the sum by month in Excel?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-do-i-calculate-the-sum-by-month-in-excel/.
[1] stats writer, "How do I calculate the sum by month in Excel?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.
stats writer. How do I calculate the sum by month in Excel?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
