Excel templates and practical guides

Excel problem solving

SUMIFS Not Working With Dates? Fix Text Dates and Timestamps

Auditably.co · Published 29 November 2026 · 3 minute read

A monthly SUMIFS total can miss transactions even when the date column looks correct. Two common causes are dates stored as text and timestamps on the last day of the month. They need different fixes.

The practice workbook makes the second problem visible: a December transaction at 16:30 is excluded by a condition ending at midnight on 31 December. The correct example total is 600, while the midnight-boundary version returns 300.

In this guide
SUMIFS dates and timestamps: actual workbook preview with fictional example entries
Actual preview of the Dates sheet. Open the full-size image to inspect the figures.

Use the start of the next month as the upper boundary

Excel represents a date and time with a numeric value that includes a fractional day. A cell formatted to show only the date can still contain a time. Testing <=31 December can therefore mean “on or before the start of 31 December”, not the whole day.

With amounts in B and numeric dates in D:

=SUMIFS(B9:B58,D9:D58,">="&DATE(2026,12,1),D9:D58,"<"&DATE(2027,1,1))

This includes the first instant of December and excludes the first instant of January. It avoids inventing an end-of-day time such as 23:59:59, which may still miss values with finer precision.

Compare the expected results

Transaction time Amount Included in December?
1 December 2026, 00:00 100 Yes
31 December 2026, 00:00 200 Yes
31 December 2026, 16:30 300 Yes
1 January 2027, 00:00 400 No
Text reading 2026-12-15 500 Not until converted and validated

The workbook's correct total is 600 for the numeric-date rows. The text-date amount remains excluded deliberately. Once that source date is correctly converted, the December total should become 1,100.

Check whether the dates are really numeric

Use ISNUMBER(A9) in a helper column. A genuine Excel date/time returns TRUE. Text that merely looks like a date returns FALSE. Changing the number format does not establish that the value has been converted.

The file keeps the source in column A and uses column D as a numeric-date helper. Text entries are visibly labelled for conversion. That prevents a mixed source column from silently looking complete.

Confirm the source date order before converting. 03/04/2027 could mean 3 April or March 4. If the export includes a timezone, decide which reporting timezone applies before grouping transactions into months. The workbook does not convert timezones.

Four other checks when the total is wrong

Range sizes: the amount range and every criteria range must cover corresponding rows. Do not sum B9:B58 while filtering dates only through row 50.

Amount types: valid dates do not help if the amounts are stored as text. Check the amount column separately and preserve genuine zero values.

Criteria construction: join operators and date cells with &, for example ">="&F2. Typing a cell address inside quotation marks creates text rather than a reference.

Filters: SUMIFS does not mean “sum only the rows currently visible after filtering”. If your requirement is a visible-row total, use an appropriate different method.

Microsoft's SUMIFS documentation explains how the sum and criteria ranges are paired. The date boundary is a condition you choose, so test it with known first-day and last-day records.

Make the monthly formula reusable

Put the first day of the reporting month in an input cell, such as F2. The lower condition becomes ">="&F2, and the upper condition can use "<"&(EOMONTH(F2,0)+1). Confirm that F2 is a numeric date representing the first day.

Keep a small boundary test beside an important report: one record at the start, one late on the last day and one at the start of the next period. Those examples can reveal a date logic problem before it affects a larger reconciliation.