Quick, clean, and to the point

Sum by week

Excel formula: Sum by week
Generic formula 

To sum by week, you can use a formula based on the SUMIFS function. In the example shown, the formula in F4 is:


This formula uses the named ranges "amount" (C4:C21) and "date" (B4:B21).

How this formula works

The SUMIFS function can sum ranges based on multiple criteria.

In this problem, we configure SUMIFS to sum amounts by week using two criteria: (1) dates greater than or equal to the date in column E, (2) dates less than the date in column E plus 7 days:


When this formula is copied down, SUMIFS generates a sum for each week.

The dates in column E are Mondays. The first date is hard-coded, and the rest of the Mondays are calculated with a simple formula:


Pivot Table solution

A pivot table is an excellent solution when you need to summarize data by year, month, quarter, and so on, because they will do this kind of grouping for you without any formulas at all. For a side-by-side comparison of formulas vs. pivot tables, see this video: Why pivot tables.

Dave Bruns

Excel Formula Training

Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.