Spreadsheet & Formula Studio

SUMIFS Between Two Dates - Sum One Month in Excel

The exact SUMIFS formula to total one month with ">=" and "<" built on DATE(), how to adapt it, and why a total comes back zero.

PerkTonic Team5 min read
Cover of the guide "SUMIFS Between Two Dates - Sum One Month in Excel"

A SUMIFS over a date range returns zero, or a total that is a day short, when the dates are typed as text or the last day of the month is cut off. The fix is a lower bound with ">=" and an upper bound with "<", both built with DATE(). The Excel Formula Generator writes this formula from a plain request, and this guide shows the exact result and how to adapt it.

The formula for one month

Assume order dates in column A, regions in column B and sales in column C, with data in rows 2 to 500. To total the sales for North in March 2026, use:

=SUMIFS(C2:C500,B2:B500,"North",A2:A500,">="&DATE(2026,3,1),A2:A500,"<"&DATE(2026,4,1))

SUMIFS takes the range to add first (C2:C500), then pairs of a criteria range and a criterion. Here there are three pairs: region equals North, date on or after 1 March 2026, and date before 1 April 2026. A row is added only when all three conditions are true. That is how SUMIFS handles multiple criteria, and the same pattern works for a SUMIFS date range of any length.

Why the dates need >= and < with DATE()

Two details decide whether the total is right.

First, the operators. The lower bound uses ">=" so that 1 March is included. The upper bound uses "<" with the first day of the next month, so every moment of 31 March is included. A condition such as "<=31/03/2026" looks equivalent, but it drops any value that carries a time of day after midnight on the 31st. Using "<" with the next month's first day avoids that problem and also removes the need to know how many days the month has.

Second, DATE(). A criterion such as ">=01/03/2026" is read according to the regional settings of the computer, so the same file can give different totals on different machines. DATE(2026,3,1) is a real date serial number and is read the same way everywhere. The "&" joins the operator, which must stay inside quotation marks, to the date value.

Steps with the Excel Formula Generator

  1. Open the Excel Formula Generator.
  2. In the request box, type: Add up the sales in column C where the region in column B is North and the date in column A is in March 2026.
  3. In the columns field, enter: A: Order date, B: Region, C: Sales, rows 2 to 500.
  4. Select Excel 365 as the version.
  5. Press Generate formula.
Excel Formula Generator result showing the SUMIFS formula with North and the dates for March 2026
The generated formula adds column C for North with dates from 1 March 2026 up to, but not including, 1 April 2026.

The tool returns the SUMIFS formula shown above. Below it you get an explanation of at most three sentences, with an alternative when one exists, and an assumptions section that lists what the tool took from your description. Read the assumptions first: if the column letters or row range are not what you meant, change the columns field and generate again.

Explanation and assumptions lines under the generated SUMIFS formula in the Excel Formula Generator
The explanation and the assumptions show how the tool read the columns and the month.

The tool does not calculate results. It only writes the formula text, so paste it into a copy of your data and compare the total with a filter or a PivotTable before you rely on it.

If your Excel uses a comma as the decimal separator, formulas need semicolons between arguments. Turn on Use semicolons and the tool converts the separators for you.

Use semicolons toggle switched on in the Excel Formula Generator with the SUMIFS formula using semicolons
With Use semicolons on, the same SUMIFS formula is written with semicolons for regional settings that need them.

Adapting the range and the criteria

Change only the parts that differ from the example:

  • Another month: replace both DATE() calls. For April 2026 use DATE(2026,4,1) and DATE(2026,5,1). For December, the upper bound is DATE(2026,13,1), which Excel reads as 1 January 2027, or write DATE(2027,1,1).
  • Another region: replace "North" with the new text, or point to a cell, for example B2:B500,$F$1.
  • Dates in cells: if the start is in F2 and the end in G2, use ">="&F2 and "<"&G2. To include the whole end day, make G2 the first day after the period.
  • No region filter: delete the pair B2:B500,"North" and keep the two date conditions.
  • Other criteria: add more pairs of range and criterion. All pairs must have the same number of rows as the sum range.

To describe a different layout in plain words, see Turn a Plain-English Request into an Excel Formula. If your data lives in Google Sheets, the same grouping by month can be built with the Google Sheets QUERY Builder; the guide Google Sheets QUERY: Group By and Sum a Column covers that approach.

Common errors with date criteria

  • Total is 0 with correct-looking data: the values in column A are text, not dates. Dates align to the right by default and text to the left. Convert the column with Data > Text to Columns or multiply by 1 in a helper column.
  • Total is 0 and the criteria were typed as ">=1/3/2026": the date was read as text or in the wrong order. Rebuild it with DATE().
  • Operator outside the quotation marks: ">="DATE(2026,3,1) is invalid. The operator is text and needs "&" before DATE().
  • Range sizes do not match: SUMIFS returns #VALUE! when the sum range and a criteria range have a different number of rows. Compare C2:C500, B2:B500 and A2:A500.
  • Last day missing: the upper bound was "<=" with the last day of the month and the dates include times. Use "<" with the first day of the next month.

When the formula still fails, paste it into the Excel Formula Debugger. For a #VALUE! that remains after the checks above, read Fix #VALUE! in Excel When the Cells Look Fine.

The syntax and every argument of the function are described by Microsoft in the support article SUMIFS function. For DATE, see DATE function.

Do it with your own data

Open the Excel Formula Generator, enter your own column letters and row range, and press Generate formula. Paste the result into a copy of your sheet, check the total for one month by hand, and then change the two DATE() values for the next month.

Was this guide helpful?
Share

Comments