Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

SUMIFS Less Than Date in Google Sheets: How-To

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To sum values where a date is less than a cutoff in Google Sheets, use SUMIFS with a date criterion written as a text comparison. For example: =SUMIFS(B2:B100, A2:A100, "<"&DATE(2025,1,1)) sums column B where column A is before January 1, 2025. The key is to concatenate the less-than operator with a real date value using &, not to type the date inside quotes. The steps below show the exact syntax, how to point the cutoff at a cell, and how to avoid the errors that make SUMIFS return 0 or a #VALUE! error.

What You'll Need

  • A Google Sheet with at least one column of dates and one column of numbers to sum.
  • Dates stored as real dates (not plain text). You can check by selecting a date cell and looking at the formula bar: a real date shows a serial number or a date, while text shows the typed string.
  • A cutoff date you want to compare against, either typed into the formula or held in a separate cell.

Step-by-Step

  1. Confirm your date column is real dates. Click a date cell and look at the formula bar. If it shows something like 1/15/2025 as text with a leading apostrophe, or the cell is left-aligned by default, it is text and SUMIFS will not compare it correctly. Convert it with DATEVALUE or re-enter the date in a recognized format. Labels and menus can differ slightly by version and region, but the date behavior is the same on desktop and mobile.
  2. Write the basic SUMIFS formula. The syntax is SUMIFS(sum_range, criteria_range1, criterion1, ...). Put the numbers you want to add in sum_range and the dates in criteria_range1. For a fixed cutoff of January 1, 2025, enter:
    =SUMIFS(B2:B100, A2:A100, "<"&DATE(2025,1,1))
  3. Understand the criterion. The criterion is a single text string built from three parts: the operator in quotes ("<"), the concatenation ampersand (&), and the date value. Do not write "<1/1/2025" because Google Sheets may read that as text and return 0. Do not write "<"&"1/1/2025" because the quoted date is also text. Use DATE(year, month, day) or a cell reference.
  4. Use a cell reference for a flexible cutoff. If the cutoff date is in cell D1, the formula becomes:
    =SUMIFS(B2:B100, A2:A100, "<"&D1)
    Changing D1 updates the total without editing the formula. This is the most reliable pattern for dashboards and recurring reports.
  5. Decide whether the cutoff date itself should be included. The < operator excludes the cutoff date. Use <= to include it:
    =SUMIFS(B2:B100, A2:A100, "<="&D1)
    This matters when your cutoff is the first day of a month and you want that day counted in the prior period or the new one.
  6. Add more criteria if needed. SUMIFS accepts additional range/criterion pairs. For example, to sum only rows where the date is before D1 and the region in C is "North":
    =SUMIFS(B2:B100, A2:A100, "<"&D1, C2:C100, "North")
    All criteria must be true for a row to be included.
  7. Press Enter and check the result. If the total is 0, first verify the date column contains real dates and that the ranges are the same size. If you see #VALUE!, check for mismatched range sizes or a criterion that is not a valid comparison string.
  8. Copy the formula down or across safely. Use absolute references ($A$2:$A$100, $D$1) for ranges and the cutoff cell if you plan to fill the formula into other cells. Relative references will shift and break the comparison.

Common Mistakes

  • Quoting the date inside the criterion. "<1/1/2025" is treated as text, not a date comparison. Always concatenate a date value.
  • Using text dates in the data column. SUMIFS compares serial numbers. Text dates are ignored or compared as strings, which gives wrong totals.
  • Mismatched range sizes. sum_range and every criteria_range must be the same height and width. A one-row difference returns #VALUE!.
  • Forgetting the ampersand. "<"DATE(2025,1,1) is invalid syntax. The & joins the operator and the date.
  • Assuming < includes the date. It does not. Use <= if the cutoff day should count.
  • Cutoff cell formatted as text. If D1 contains text that looks like a date, the comparison fails. Format D1 as a date or use DATEVALUE(D1).

Tips

  • Use DATE() for fixed cutoffs and a cell reference for anything that changes monthly or weekly.
  • Name your cutoff cell (for example, CutoffDate) to make formulas easier to read: =SUMIFS(B2:B100, A2:A100, "<"&CutoffDate).
  • To sum a rolling window such as "before today," use "<"&TODAY(). The result recalculates when the sheet opens.
  • Keep the date column and the number column free of blank rows inside the range; blanks are simply skipped, but stray text in the number column can cause errors.
  • If you need to sum between two dates, use two criteria: ">="&StartDate and "<"&EndDate.

Troubleshooting

The formula returns 0. Check that the date column is real dates and that the cutoff is a real date. Select a date cell and confirm the formula bar shows a date or serial number, not text. Also confirm the ranges line up and that the sum range contains numbers, not text-formatted numbers.

You see #VALUE!. This usually means the ranges are different sizes or the criterion is malformed. Rebuild the criterion as "<"&DATE(2025,1,1) and make every range the same number of rows.

The total looks too high or too low. Check whether you used < versus <=. Also check for duplicate rows or hidden rows inside the range; SUMIFS includes hidden rows unless they are filtered out of the range itself.

A cell reference cutoff stops working after you copy the formula. Lock the cutoff cell with dollar signs ($D$1) so it does not shift.

Dates imported from another system do not compare. Imported dates are often text. Convert them with DATEVALUE in a helper column, then point SUMIFS at the helper column.

Frequently Asked Questions

Can I use SUMIFS with a date in another cell?

Yes. Write "<"&D1 where D1 holds the cutoff date. This is the most flexible approach and updates automatically when D1 changes.

Why does "<1/1/2025" return 0?

Because the date inside the quotes is treated as text, not a date value. Use "<"&DATE(2025,1,1) or reference a date cell instead.

Does SUMIFS include the cutoff date with <?

No. The < operator excludes the cutoff date. Use <= to include it.

Can I sum values before today's date?

Yes. Use "<"&TODAY(). The total recalculates when the sheet recalculates, such as when it opens or when a change is made.

What if my dates are stored as text?

SUMIFS will not compare them correctly. Convert them to real dates with DATEVALUE in a helper column, or re-enter them in a recognized date format, then point the criteria range at the converted column.

Can I use SUMIFS with more than one date condition?

Yes. Add a second date range and criterion, for example ">="&StartDate and "<"&EndDate, to sum a date range.