Calculation Issues

Fix Excel SUMIFS Formulas Excluding the Last Day of a Month

Huda QurayshiHuda Qurayshi Dec 2, 2026 868 views

Question details

Correct a monthly SUMIFS formula that excludes values from the final day when date cells contain times.

Fix Excel SUMIFS Formulas Excluding the Last Day of a Month
Product
Microsoft Excel
Device & OS
not provided
Scenario
Sum values for a calendar month using dates and times in a separate column.
Observed behavior
Values dated on the last day of the month can be omitted when the upper date boundary represents midnight at the start of that day.
Before you start

Check that the date cells contain actual Excel dates rather than text, and that the sum and date ranges cover the same rows. In the example below, A273 should contain the first day of the month with no time component.

Solution 1Recommended

Use the First Day of the Next Month as an Exclusive Boundary

Use this formula to include every time on the last day while excluding dates in the following month.

A date without a time represents midnight. An inclusive upper limit set to the last day at midnight therefore misses entries later that day. An exclusive limit at the next month's midnight includes the entire final day.

1
Check the month start

Select cell A273 and confirm it contains the first day of the month without a time component.

2
Enter the corrected formula

Select the cell for the monthly total and enter =SUMIFS($E$6:$E$266,$A$6:$A$266,">="&$A273,$A$6:$A$266,"<"&(EOMONTH($A273,0)+1)).

3
Match your worksheet

In the formula bar, replace E6:E266 with your values range, A6:A266 with your date range, and A273 with your month-start cell. Press Enter and check the total.

Use the First Day of the Next Month as an Exclusive Boundary
Alternative upper boundary: If A273 is the first day of the month with no time component, EDATE($A273,1) can replace EOMONTH($A273,0)+1.
Calculate monthly totals

Calculate Complete Monthly Totals in WPS Spreadsheet

Use SUMIFS and an exclusive next-month boundary in WPS Spreadsheet to include entries from every time on the last day of the month.

  1. 1. Open the workbook: Open WPS Spreadsheet and select Open to load your workbook.
  2. 2. Check the source cells: Select A273 and confirm it holds the first day of the month without a time component. Check that column A contains dates and column E contains the values to sum.
  3. 3. Enter the formula: Select the monthly total cell and enter =SUMIFS($E$6:$E$266,$A$6:$A$266,">="&$A273,$A$6:$A$266,"<"&(EOMONTH($A273,0)+1)). Adjust the references to match your worksheet.
  4. 4. Review and save: Press Enter, check that final-day entries are included, and use File > Save to save the workbook.
Include date-and-time entries from the full final day of each monthOpen and save Microsoft Excel XLSX and XLS filesUse familiar spreadsheet formulas and a familiar interfaceWork with spreadsheets using the free version of WPS Office
microsoft office alternative - wps office

Frequently Asked Questions

Why does SUMIFS miss dates on the last day of the month?

A last-day date used as an upper limit represents midnight at the start of that day. Date cells with later times exceed that limit, even if they display the same date.

Can I use EDATE instead of EOMONTH?

Yes. If A273 contains the first day of the month with no time component, use "<"&EDATE($A273,1) as the upper-bound criterion.

How can I check whether a date is stored as text?

In an empty cell, enter =ISNUMBER(A6), replacing A6 with a date cell. TRUE indicates a numeric value; check its date formatting to confirm it represents the intended date.

Does changing the date format remove the time?

No. Changing a cell's display format can hide the time, but the stored time remains. Use an exclusive next-month boundary to include those entries.