How to Sum Revenue Between Two Dates in Excel Using SUMIFS

📅 May 26, 2026 📝 Sarah Miller

Consolidating transactional revenue across custom timeframes in Excel often leads to tedious manual filtering and calculation errors. While standard static reports and pivot tables offer traditional overviews, they lack the agility needed for fluid, date-specific analysis. Mastering the SUMIFS formula grants financial analysts immediate, error-free visibility into dynamic cash flows. However, this approach carries one vital stipulation: your source date columns must be strictly formatted as standardized date values, not text. For example, applying =SUMIFS(C:C, A:A, ">="&E1, A:A, "<="&E2) seamlessly aggregates revenue between dates in cells E1 and E2. Below, we will explore the exact syntax and variations to streamline your financial reporting.

How to Sum Revenue Between Two Dates in Excel Using SUMIFS

Excel Formula to Sum Revenue Between Two Dates

In financial analysis, sales tracking, and business reporting, calculating total revenue over a specific timeframe is one of the most common tasks. Whether you need to determine the total revenue generated in the first quarter, evaluate the success of a holiday marketing campaign, or prepare monthly financial statements, knowing how to sum data between two dates in Microsoft Excel is an essential skill.

Fortunately, Excel provides several powerful functions to accomplish this. The most efficient and widely used method is the SUMIFS function. In this comprehensive guide, we will explore how to use SUMIFS to sum revenue between two dates, look at alternative methods like SUMPRODUCT, walk through a step-by-step practical example, and troubleshoot common errors.

The Core Method: Using the SUMIFS Function

The SUMIFS function is designed to sum values in a range that meet multiple criteria. To sum revenue between a starting date and an ending date, we must apply two conditions: the date must be greater than or equal to (>=) the start date, and less than or equal to (<=) the end date.

Syntax of SUMIFS

The basic syntax for the SUMIFS function is:

=SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)

To apply this to our date range scenario, we map the arguments as follows:

  • sum_range: The column containing the revenue or sales figures you want to add up.
  • criteria_range1: The column containing the dates.
  • criteria1: The start date condition, expressed as ">="&start_date.
  • criteria_range2: The column containing the dates (again).
  • criteria2: The end date condition, expressed as "<="&end_date.

Understanding the Syntax Nuance

One of the most common tripping hazards in Excel is how logical operators are joined with date values. In Excel, when you reference a cell containing a date, you must enclose the logical operator in double quotes (e.g., ">=") and use the ampersand (&) to concatenate it with the cell reference. For example, if your start date is in cell E2, your criteria will look like ">="&E2.

A Step-by-Step Practical Example

Let's walk through a practical scenario. Suppose you have a sales ledger in a worksheet with dates in Column A (A2:A9) and the corresponding revenue in Column B (B2:B9). You want to find the total revenue generated between January 15, 2023, and March 15, 2023.

Here is our sample dataset:

Row A (Date) B (Revenue)
22023-01-05$1,200
32023-01-15$1,500
42023-02-01$2,300
52023-02-18$1,800
62023-03-10$3,100
72023-03-15$2,000
82023-03-20$1,400
92023-04-05$2,500

Assume we set up our criteria input cells elsewhere in the worksheet:

  • Cell E2 contains the Start Date: 2023-01-15
  • Cell F2 contains the End Date: 2023-03-15

The Formula

In the cell where you want the total revenue to appear (e.g., G2), enter the following formula:

=SUMIFS(B2:B9, A2:A9, ">="&E2, A2:A9, "<="&F2)

How It Works

Excel evaluates each row in the dataset against the criteria:

  1. It checks if the date in column A is on or after January 15, 2023 (>=E2).
  2. It checks if the date in column A is on or before March 15, 2023 (<=F2).
  3. If both criteria are TRUE for a given row, the corresponding revenue value from Column B is included in the sum.

In our dataset, the rows matching these conditions are rows 3, 4, 5, 6, and 7. The calculation Excel performs is:

$1,500 + $2,300 + $1,800 + $3,100 + $2,000 = $10,700

Using Hardcoded Dates inside SUMIFS

While referencing cells (like E2 and F2) is the best practice because it keeps your spreadsheets dynamic and easy to update, you can also hardcode the dates directly into the formula. To do this safely and avoid regional format issues, use the DATE function.

Here is the formula with hardcoded dates:

=SUMIFS(B2:B9, A2:A9, ">="&DATE(2023,1,15), A2:A9, "<="&DATE(2023,3,15))

Avoid typing criteria like ">=1/15/2023" directly into your formula. If your system's regional settings change or if another user opens the sheet on a computer with different locale settings (e.g., DD/MM/YYYY vs MM/DD/YYYY), Excel might misinterpret the date or throw a #VALUE! error.

Alternative Method: Using the SUMPRODUCT Function

Before SUMIFS was introduced in Excel 2007, SUMPRODUCT was the go-to function for multi-criteria summing. It remains incredibly useful today, particularly when you need to perform calculations on closed external workbooks or when integrating more complex array-based logic.

The SUMPRODUCT formula for summing revenue between two dates looks like this:

=SUMPRODUCT((A2:A9>=E2) * (A2:A9<=F2) * B2:B9)

How SUMPRODUCT Works

The formula evaluates arrays of boolean values (TRUE and FALSE):

  • (A2:A9>=E2) returns an array of TRUE/FALSE values indicating whether each date is greater than or equal to the start date.
  • (A2:A9<=F2) returns a similar array for the end date limit.
  • Multiplying these two boolean arrays together acts as an AND logical gate. In Excel mathematics, TRUE * TRUE = 1, and any operation involving FALSE results in 0.
  • This resulting array of 1s and 0s is then multiplied by the corresponding values in the revenue range (B2:B9). Finally, SUMPRODUCT sums up all these products, ignoring any row that did not meet both date conditions.

Adding More Criteria (e.g., Summing Revenue by Date Range AND Product)

In real-world business scenarios, you rarely want to filter solely by date. Often, you need to dissect your data further-such as summing revenue for a specific product, department, or salesperson within a designated date range. The beauty of SUMIFS is its scalability; you can easily append more criteria ranges and conditions.

Suppose Column C contains product names, and you only want to sum the revenue for "Product A" between your start and end dates. Assuming "Product A" is written in cell H2, your formula would expand to:

=SUMIFS(B2:B9, A2:A9, ">="&E2, A2:A9, "<="&F2, C2:C9, H2)

This tells Excel to only sum the revenue if the date falls in the range AND the product in Column C matches the value in H2.

Troubleshooting and Best Practices

If your formula returns 0 or an unexpected error, check for the following common issues:

  1. Dates Stored as Text: Excel registers dates as serial numbers behind the scenes. If your dates are formatted as text, Excel cannot perform mathematical comparisons on them. To check, select your date column and change the format to "General". If the values do not change to five-digit numbers (like 44941), they are stored as text. Use the "Text to Columns" tool to convert them back to proper Excel dates.
  2. Mismatched Range Sizes: In SUMIFS, all ranges must be of equal size. If your sum_range is B2:B9, but your criteria_range is A2:A100, Excel will return a #VALUE! error.
  3. Incorrect Concatenation: Ensure your operators and cell references are correctly structured. Writing ">=E2" inside the formula tells Excel to look literally for the text "E2" rather than evaluating the date stored in cell E2. Always use the ampersand to join them: ">="&E2.
  4. Time Stamps in Dates: If your date column contains timestamps (e.g., 2023-03-15 14:30:00) and your criteria is strictly 2023-03-15, the record might be excluded if you use a simple less-than-or-equal-to comparison, because 2023-03-15 14:30:00 is mathematically greater than 2023-03-15 00:00:00. To account for timestamps, set your end date criteria to look for dates strictly less than the day after your target end date (e.g., "<"&(F2+1)).

Conclusion

Summing revenue between two dates is a fundamental technique for any data analyst, accountant, or business owner using Excel. Utilizing the SUMIFS function is the most robust, clean, and computationally efficient way to execute this task. By keeping your formulas dynamic with cell references, using the correct operator syntax, and knowing how to troubleshoot formatting errors, you can build reliable, highly interactive dashboards and financial reports that keep your business insights sharp.

Disclaimer:
The documents and templates provided on this page are for informational and illustrative purposes only. They do not constitute professional, legal, or financial advice, and should not be relied upon as such. Because individual circumstances and regulatory requirements vary, these materials may not be suitable for your specific needs. We recommend consulting with a qualified professional before adapting or using any of these examples for official or commercial purposes.