logo
search
Function Problems

How to Use SUMIFS with Month and Date Criteria in Excel

Partner EditorPartner Editor Sep 27, 2026 868 views

Question details

The user needs to apply a month-based condition to a SUMIFS formula when the worksheet cells contain dates, but struggles with formula errors due to format mismatches.

How to Use SUMIFS with Month and Date Criteria in Excel
Product
Excel
Device & OS
not provided
Scenario
Calculating budget totals or summing data for a specific month using the SUMIFS function, requiring precise criteria matching between raw dates and text-based month names.
Observed behavior
Attempting to directly compare a date cell with a text string like "Jan" inside a SUMIFS formula returns a #VALUE! error because Excel stores dates as serial numbers rather than plain text.
Before you start

Verify whether your cells contain actual date serial numbers formatted to display as months, or plain text strings, as this dictates which SUMIFS method you must use.

Solution 1Recommended

Use Date Boundary Criteria in SUMIFS

The most reliable method to sum values for a specific month is to define a start and end date boundary, ensuring standard date serial numbers evaluate correctly.

Since SUMIFS cannot dynamically apply functions like TEXT() or MONTH() to the criteria range itself, you must bracket the targeted month. For example, to sum data for January, you specify criteria for dates greater than or equal to January 1, and less than February 1.

1
Select the target cell

Click the cell where you want the calculated monthly total to appear.

2
Input the sum range and date criteria range

Type =SUMIFS( followed by your sum range (e.g., J32:J44), a comma, and your date range (e.g., L32:L44).

3
Set the start date boundary

Add a comma and type ">=1/1/2025" (or reference a cell containing the first day of the month).

4
Set the end date boundary

Add another comma, select the date range again (L32:L44), add a comma, and type "<2/1/2025".

5
Complete the formula

Close the parenthesis so your formula looks like =SUMIFS(J32:J44, L32:L44, ">=1/1/2025", L32:L44, "<2/1/2025") and press Enter.

Use Date Boundary Criteria in SUMIFS
Range Sizing Rule: Ensure all ranges provided in the SUMIFS function (e.g., J32:J44 and L32:L44) have exactly the same dimensions to prevent #VALUE! errors.
Master Formulas with WPS Spreadsheet

Easily Calculate Monthly Totals with WPS Spreadsheet

WPS Spreadsheet offers powerful, 100% compatible formula engines to help you execute complex SUMIFS calculations without the hassle. Easily manage date formatting, handle complex budget conditions, and prevent formula errors.

  1. 1. Open WPS Spreadsheet: Launch WPS Office and open your financial or data workbook.
  2. 2. Insert the SUMIFS formula: Select the result cell, type =SUMIFS( and select the range of values you want to total.
  3. 3. Define the criteria boundaries: Input your date column range, followed by the start of the month (e.g., ">=1/1/2025").
  4. 4. Add the end date: Input the date column range again, followed by the end of the month boundary (e.g., "<2/1/2025").
  5. 5. Calculate instantly: Press Enter to execute the formula and instantly view your accurate monthly sum.
Fully compatible with Microsoft Excel formulas like SUMIFS, TEXT, and date functions.Intuitive error-checking feature helps identify #VALUE! errors instantly.Lightweight software optimized for quickly processing large financial datasets.Free built-in date formatting tools to standardize spreadsheet criteria.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my SUMIFS formula return a #VALUE! error when using dates?

A #VALUE! error typically occurs if the sum range and criteria ranges are not exactly the same size. It can also happen if you attempt to embed an unsupported array function directly into the SUMIFS criteria argument.

Can I use the MONTH() function directly inside a SUMIFS formula?

No, SUMIFS does not permit wrapping the criteria range in another function like MONTH(). You must either use date boundaries (>= Start Date, < End Date), use a helper column, or switch to the SUMPRODUCT function instead.

How can I check if a cell contains a real date or just text?

You can use the =ISNUMBER() function. Excel stores real dates as sequential serial numbers. If =ISNUMBER(A1) returns TRUE, it is a real date; if it returns FALSE, it is formatted as text.