How to Sum by Week in Excel

At the end of work on Friday, we often summarize data based on daily report and create a weekly report, so sometimes we need to sum values by week for summary. Like sum data by month, we can use a formula contains SUMIFS function to sum data by week properly. This tutorial will show you the way with simple descriptions and screenshots, and let you know how to use SUMIFS function to sum data per your requirement clearly.

EXAMPLE:

FORMULA:

In F3, enter the formula below:

=SUMIFS($C$3:$C$14,$B$3:$B$14,”>=”&$E3,$B$3:$B$14,”<“&$E3+7)

HOW THIS FOMULA WORKS:

This formula is based on SUMIFS function. For SUMIFS function, it sum data with multiple criteria, the syntax is =SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], …).

In this case, $C$3:$C$14 is the sum range, it provides matching values for sum, as it is an absolute range, so we add $ before row and column number, so when copying formula to other cells, this range is fixed.

$B$3:$B$14 is the criteria range, it provides all dates, it is an absolute range in this case as well, so we add $ before row and column number; as we want to find out date from this range belongs to week of E3 (date 5-Oct-20), so we must find out date greater than or equals to E3,so we enter ‘$B$3:$B$14,”>=”&$E3’ here. We add $ before E to lock E column, so even row is changed when coping the formula for other date in E column, the column is locked at that time.

Unlike sum data by month, the start date and end date are not fixed for weeks, so if we want to sum data by week, we must make sure the first date is Monday in the formula. In this instance, 5-Oct-20 is Monday, and a week has 7 days, so just use E3+7 as then end of the week. So, we enter $B$3:$B$14,”<“&$E3+7 as another criteria.

RESULT:

Let’s see if this formula works correctly.

NOTES:

1.If you are consumed about the range in the formula, you can name range firstly, for example

$C$3:$C$14=Amount;

$B$3:$B$14=Date;

Then update formula to =SUMIFS(Amount,Date,”>=”&$E3,Date,”<“&$E3+7). It looks clearly now.

2. Make sure the date is Monday in Week column. If you want to set Friday as date in Week column, you can use $E3-5 as the start of week, $E3 as the end of week.

Update formula to =SUMIFS($C$3:$C$14,$B$3:$B$14,”>=”&$E3-5,$B$3:$B$14,”<=”&$E3). See example below:

Related Functions


  • Excel SUMIFS Function
    The Excel SUMIFS function sum the numbers in the range of cells that meet a single or multiple criteria that you specify. The syntax of the SUMIFS function is as below:=SUMIFS (sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], …)…
Related Posts

How to Sum if Equal to Many Items or A Range in Excel
How to Sum if Equal to Many Items 12

If we want to sum numbers from a range with criteria, we often select SUMIF of SUMIFS functions as the first choice to create a formula. The criteria can be a number or an array or a collection of some ...

How to Sum if Equal to X or Y in Excel
How to Sum if Equal to X or Y 19

In daily work, if we want to sum numbers from a range, and only sum the numbers which being equal to X or Y in the range, we can create a formula with Excel build-in functions to get the result. ...

How to Sum if Contains an Asterisk
How to Sum in Last N Days 14

In our daily life, we may want to sum amounts or sales for a specific period, for example in last N days. Sum numbers in Excel is easy to run, we can apply SUM function. But if we want to ...

How to Sum if Contains an Asterisk
How to Sum if Contains an Asterisk 7

To add numbers together we need to apply SUM function. And if we want to add numbers based on some conditions, we can add criteria with the help of SUMIFS function, SUMIFS can filter data with multiple criteria effectively. If ...

How to Sum in Vertical Range
How to Sum in Vertical Range 8

If we want to add numbers based on some conditions in Excel worksheet, we can add criteria with the help of SUMIFS function, SUMIFS can filter data with multiple criteria effectively. In this article, we will introduce you the method ...

How to Sum in Horizontal Range
How to Sum in Horizontal Range9

To add numbers together we need to apply SUM function. But if we want to add numbers based on some conditions, we can add criteria with the help of SUMIFS function, SUMIFS can filter data with multiple criteria effectively. In ...

How to Sum with Criteria and Or Logic in Excel
How to Sum with Criteria and Or Logic in Excel 8

To add numbers together we need to apply SUM function. And if we want to add numbers based on some conditions, we can add criteria with the help of SUMIFS function, SUMIFS can filter data with multiple criteria effectively. If ...

How to Subtotal Values for Groups and Only Keep One Subtotal for A Group in Column
How to Subtotal Values for Groups and Only Keep One Subtotal for A Group in Column14

Sometimes we may meet the case that subtotal values for different groups and only record a subtotal value for one group in a column, for other cells in this group, keep them blank. Today we will introduce you how can ...

How to Sum by Formula If Cells Are Not Blank in Criteria Range
How to Sum by Formula If Cells Are Not Blank in Criteria13

Sometimes we may meet the cases that some blank cells exist in criteria range or sum range. In most situations we will ignore them, so we need to filter data by ‘not blank/not empty’. Today we will introduce you how ...

How to Sum by Formula if Cell Ends with in Excel
How to Sum by Formula if Cell Ends with in Excel14

We have introduced the method of sum numbers based on criteria “sum if cell begins with” (you can refer to ‘How to Sum Data if Begins with in Excel’ on our website). In this article, we will show you the ...

Sidebar