ElyxAI
formulas

How to How to Use SUMIFS Between Two Dates

Excel 2016Excel 2019Excel 365Excel 2021

Learn to use SUMIFS to sum values within a specific date range. This advanced formula technique filters data by multiple criteria, including start and end dates, enabling dynamic financial analysis, project tracking, and sales reporting without manual sorting or complex nested functions.

Why This Matters

This skill is essential for financial analysts, project managers, and business professionals who need to analyze time-specific data efficiently. It eliminates manual filtering and enables automated reporting dashboards.

Prerequisites

  • Understanding of basic Excel functions (SUM, IF)
  • Familiarity with cell references and ranges
  • Knowledge of date formatting in Excel

Step-by-Step Instructions

1

Set up your data structure

Organize data with columns for amounts, dates, and criteria (e.g., Column A: Amounts, Column B: Transaction Dates, Column C: Categories). Ensure dates are formatted as dates, not text.

2

Define your date range variables

Click on empty cells to create start and end date references (e.g., E1 for start date, E2 for end date). Enter your desired date range in these cells for easy modification.

3

Click on the result cell

Select the cell where you want the SUMIFS result to appear (e.g., F4). This is where your formula will calculate the sum.

4

Enter the SUMIFS formula

Type: =SUMIFS(A:A, B:B, ">="&E1, B:B, "<="&E2) where A:A is the sum range, B:B is the date column, and E1/E2 are your start/end dates. Press Enter to execute.

5

Add additional criteria if needed

Extend the formula with more criteria pairs: =SUMIFS(A:A, B:B, ">="&E1, B:B, "<="&E2, C:C, "Sales") to sum only specific categories within the date range.

Alternative Methods

SUMPRODUCT with date criteria

Use =SUMPRODUCT((B:B>=E1)*(B:B<=E2)*A:A) for a flexible alternative that handles multiple conditions without SUMIFS syntax.

Helper column approach

Create a helper column with IF statements to identify rows within the date range, then SUM the results; useful for complex multi-criteria scenarios.

Tips & Tricks

  • Use cell references (E1, E2) for date criteria instead of hard-coding dates, enabling dynamic date range updates.
  • Wrap date criteria with & concatenation operator to convert cell values into comparison strings properly.
  • Test your formula with a simple two-criteria setup before adding complex conditions.
  • Use DATE() function to ensure consistency: DATE(2024,1,15) instead of typing dates manually.

Pro Tips

  • Combine SUMIFS with IFERROR to handle empty date ranges gracefully: =IFERROR(SUMIFS(...),0).
  • Use absolute references ($E$1, $E$2) when copying formulas across multiple cells to maintain consistent date criteria.
  • For performance on large datasets (100K+ rows), avoid full column references (A:A) and specify exact ranges (A2:A10000) instead.
  • Leverage named ranges for date criteria to make formulas more readable: =SUMIFS(Amount,Date,">="&StartDate,Date,"<="&EndDate).

Troubleshooting

Formula returns 0 instead of expected sum

Check that date criteria cells (E1, E2) are formatted as dates, not text. Verify column B dates match the format in E1/E2 using DATE() function. Ensure the comparison operators >= and <= are correctly placed outside quotes.

Getting #VALUE! error

Date formatting mismatch is the most common cause. Go to Home > Number Format and ensure all date columns and criteria cells are formatted as Date. If error persists, replace date cells with DATE(year,month,day) syntax.

Formula works but includes unintended data

Verify your date range boundaries are correct—use >= for start date and <= for end date. Double-check that date criteria in E1 and E2 are the exact dates you want (inclusive).

Formula is slow on large datasets

Replace full column references (A:A, B:B) with specific ranges (A2:A10000, B2:B10000). Avoid using entire columns in SUMIFS as it recalculates unnecessarily for every row.

Related Excel Formulas

Frequently Asked Questions

Can I use SUMIFS with multiple date columns?
Yes, you can add additional date criteria pairs to your SUMIFS formula. For example: =SUMIFS(A:A, B:B, ">="&E1, B:B, "<="&E2, D:D, ">="&F1, D:D, "<="&F2) sums values where both date ranges are satisfied.
What's the difference between >= and > for date comparisons?
>= includes the date specified (inclusive), while > excludes it. Use >= for start dates and <= for end dates to include both boundary dates in your range.
How do I sum data for just one specific date?
Use two criteria: =SUMIFS(A:A, B:B, ">="&E1, B:B, "<="&E1) where E1 contains your target date. Alternatively, use: =SUMIFS(A:A, B:B, E1) for exact date matching.
Can SUMIFS handle text criteria alongside date criteria?
Absolutely. Add text criteria pairs like SUMIFS(A:A, B:B, ">="&E1, B:B, "<="&E2, C:C, "Product A") to sum values within a date range for a specific category.
Why does my formula fail when copying it to other cells?
Use absolute references for date criteria ($E$1, $E$2) so they don't change when copied. Use relative references (A:A, B:B) for data ranges if they should shift with each copy.

This was one task. ElyxAI handles hundreds.

Sign up