SUMIF By Date (Sum Values Based on a Date)


- Written by Puneet

To use SUMIF to sum values based on date as criteria, you can refer to the cell where you have the date, or you can input the date inside the function directly. In SUMIFS, you have the criteria argument and in this argument; you need to specify the date for which you want to sum values.


In this tutorial, we will learn to use Excel’s SUMIF function on a date.

Use SUMIF by Date in Excel

  1. First, enter =SUMIF( the cell where you want the sum.
  2. After that, refer to the date column, range A2:A15.
  3. Next, in the criteria argument, refer to the cell where you have the date.
  4. Now, in the last argument, refer to the sum column, range B2:B15.
  5. In the end, enter the closing parentheses and hit enter to get the result.

With the formula above, you get the sum for the date “15-Oct-2022” in the result.


You can also enter the date within the function argument as a value.


SUM Before or After a Date using SUMIF

You can also use a logical operator with the date to sum before or after a specific date. In the following example, we have a greater than sign with the date.


When you hit enter, it returns, 2028, which is the total of the date 15-Nov-2022.


In the same way, you can use a lower than (<) operator to sum based on dates lower than the date in cell D4.


Here are some other operators that you can use:

Get the Excel File

Last Updated: March 24, 2024