Spreadsheet Practice

How to sum values by date in Excel

Formula (Excel and Google Sheets)

=SUMIF($A$2:$A$9,E2,$C$2:$C$9)

List each date once and use SUMIF against the date column: =SUMIF($A$2:$A$9,E2,$C$2:$C$9), filled down.

Result on the example
one result per row in F2, filled down to F4
Works in
Every current version
Google Sheets
Same formula

See it work

The formula is already in F2, filled down to F4. Change any input and the result updates, or edit the formula to experiment.

How it works

Dates are whole numbers underneath, so SUMIF can match a date exactly like any other value. Each row of the summary adds every order with that date, in any order in the list. The $ signs keep the data ranges in place while E2 moves down.

=SUMIF($A$2:$A$9,E2,$C$2:$C$9)

Result276.75

  1. $A$2:$A$98 rows × 1 col: 4/6/2026, 4/6/2026, 4/7/2026, 4/6/2026, …

    A range: 8 cells in one column.

  2. E24/6/2026

    The value in E2.

  3. $C$2:$C$98 rows × 1 col: $125.00, $89.50, $240.00, $62.25, …

    A range: 8 cells in one column.

  4. SUMIF($A$2:$A$9,E2,$C$2:$C$9)276.75

    SUMIF: Adds values where the range meets a condition.

    • range$A$2:$A$98 rows × 1 col: 4/6/2026, 4/6/2026, 4/7/2026, 4/6/2026, …
    • criteriaE24/6/2026
    • sum_range$C$2:$C$98 rows × 1 col: $125.00, $89.50, $240.00, $62.25, …

In Google Sheets

The same formula works in Google Sheets: =SUMIF($A$2:$A$9,E2,$C$2:$C$9). We ran it in Google Sheets mode on the same data and it returns the same results.

Other ways to do it

Each one was run on the same example sheet.

FormulaResultWhen to use it
=SUMIFS($C$2:$C$9,$A$2:$A$9,E2)$276.75, $287.80, $583.40SUMIFS puts the sum range first, ready for more conditions such as a region.

Common mistakes

  • If the dates include times (4/6/2026 9:15), no row equals the plain date and the total is 0. Use a one-day window: =SUMIFS($C$2:$C$9,$A$2:$A$9,">="&E2,$A$2:$A$9,"<"&E2+1).
  • Dates imported as text don't match real dates. Check that both columns are right-aligned or use DATEVALUE.

Try it yourself

Same data, empty answer cell. Your formula is graded instantly, then re-checked on changed data, so a typed-in number won't pass.

Sum values by date

In F2, total the orders placed on the date in E2, then fill down to F4.

Questions

How do I list each date once automatically?

In Excel 365 or Google Sheets: =SORT(UNIQUE(A2:A9)), then point SUMIF at the spilled list.

How do I sum the dates in one week or month?

Use a date window with SUMIFS; see summing by week and by month.

Checked by running on 2026-10-30: every formula and result on this page was calculated by the Spreadsheet Practice formula engine, in both Excel and Google Sheets modes.