Fix Excel SUMIFS Formulas Excluding the Last Day of a Month
Question details
Correct a monthly SUMIFS formula that excludes values from the final day when date cells contain times.

- 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.
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.
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.
Select cell A273 and confirm it contains the first day of the month without a time component.
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)).
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.

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. Open the workbook: Open WPS Spreadsheet and select Open to load your workbook.
- 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. 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. Review and save: Press Enter, check that final-day entries are included, and use File > Save to save the workbook.

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.




