We’re improving Formula Genius. We’re redesigning the app and fixing issues along the way. Sorry for any disruption, and thank you for your patience.
Excel intermediate

How to Sum Values by Month in Excel?

Struggling to get monthly totals from scattered dates? This formula will help you sum values by month effortlessly.

Formula Genius can generate a draft from a plain-English prompt. Supported formulas can be checked with sample cases; review the coverage on the result.

The formula

Prompt

"Sum values by month from a date column, so you get a monthly total even when the dates are spread throughout the data"

Excel
=SUMIFS(value_range, date_range, ">="&EOMONTH(date, -1)+1, date_range, "<="&EOMONTH(date, 0))

This formula sums values based on a specified month from a date column.

Step-by-step breakdown

  1. Identify the range of values to sum (value_range).
  2. Specify the range containing the dates (date_range).
  3. Set the start date of the month using EOMONTH to define the lower bound.
  4. Set the end date of the month using EOMONTH to define the upper bound.
  5. Use SUMIFS to calculate the total for the specified month.

Edge cases & warnings

  • Dates in the date_range that fall outside the specified month will not be included.
  • If the value_range is empty, the formula will return 0.
  • Using non-date formats in the date_range can lead to errors.
  • Multiple entries for the same date will be summed correctly, but ensure the value_range aligns.
  • If the month has no entries, the formula will return 0.

Examples

Prompt

"Date Range: A1:A10 with dates; Value Range: B1:B10 with corresponding values for January 2023"

Excel
Total sum of values for January 2023
Prompt

"Date Range: C1:C10 with dates; Value Range: D1:D10 with corresponding values for February 2023"

Excel
Total sum of values for February 2023

Frequently asked questions

Can I sum values for multiple months?

Yes, you can adjust the formula for each month or use a pivot table for multiple months.

What if my date format is different?

Ensure your dates are in a recognized Excel date format for the formula to work.

Is there a way to visualize the monthly totals?

Yes, you can create a chart based on the results of your monthly sums.

Can't find what you need?

Describe a formula in plain English. Formula Genius drafts and explains it, and can check supported formulas on sample cases.