How can I calculate the sum by date in Excel? 2

How can I calculate the sum by date in Excel?

To calculate the sum by date in Excel, you can use the SUMIF function. This function allows you to specify a criteria, in this case a specific date, and then adds all the values that meet that criteria. Simply enter the date as the criteria and the range of cells containing the values you want to add. This will provide you with the total sum for that specific date. Additionally, you can also use the SUMIFS function to calculate the sum by multiple dates or by using more than one criteria. This allows for a more customized and precise calculation of the sum by date in Excel.

Calculate Sum by Date in Excel


You can use the following formula to calculate the sum of values by date in an Excel spreadsheet:

=SUMIF(A1:A10, C1, B1:B10)

This particular formula calculates the sum of values in the cell range B1:B10 only where the corresponding cells in the range A1:A10 are equal to the date in cell C1.

The following example shows how to use this formula in practice.

Example: Calculate Sum by Date in Excel

Suppose we have the following dataset that shows the sales of some product on various dates:

Now suppose we’d like to calculate the sum of sales by date.

To generate a list of unique dates, we can use the following formula:

=SORT(UNIQUE(A2:A15))

We’ll type this formula into cell D2:

By default, Excel converts the date to the number of days since 1/1/1900.

To convert these numbers to a recognizable date format, simply highlight the cell range D2:D6, then click the format dropdown arrow and click Short Date:

The dates will be converted to a recognizable date format:

=SUMIF($A$2:$A$15, D2, $B$2:$B$15)

We’ll type this formula into cell E2, then copy and paste it into each remaining cell in column E:

Excel sum by date

From the output we can see:

  • The sum of sales on 1/4/2022 is 15.
  • The sum of sales on 1/7/2022 is 19.
  • The sum of sales on 2/7/2022 is 19.

And so on.

Additional Resources

The following tutorials explain how to perform other common tasks in Excel:

Cite this article

stats writer (2024). How can I calculate the sum by date in Excel?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-calculate-the-sum-by-date-in-excel/

stats writer. "How can I calculate the sum by date in Excel?." PSYCHOLOGICAL SCALES, 28 Jun. 2024, https://scales.arabpsychology.com/stats/how-can-i-calculate-the-sum-by-date-in-excel/.

stats writer. "How can I calculate the sum by date in Excel?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-calculate-the-sum-by-date-in-excel/.

stats writer (2024) 'How can I calculate the sum by date in Excel?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-calculate-the-sum-by-date-in-excel/.

[1] stats writer, "How can I calculate the sum by date in Excel?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.

stats writer. How can I calculate the sum by date in Excel?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.

Download Post (.PDF)
Slide Up
x
PDF
Scroll to Top