How to Calculate Weekly Average by Formula in Excel

In our daily life we often create tables for recording the money we spend for lunch or dinner or something else per date. This can help us know the total cost or average cost per date or other unit clearly via some statistic related functions in excel, and then we can cut back on unnecessary expenses and save our money.

Normally, one method for statistic in excel is creating pivot table. we can create a pivot table to auto calculate the total cost or average cost base on the values recorded in original table, and we can do filter by date or month or quarter to show different average cost for different period. Details see below screenshot.

Calculate Weekly Average 1

Obviously, Week is not listed in default grouping date list.

If you want to know the method for counting average data by week (without using pivot table), you can read below article, it can help you to solve your question.

Calculate Weekly Average by Formula in Excel

In Pre-Condition:

Prepare a simple table for demonstration. See screenshot below. You can see that we spend 10 or 5 or other values for lunch on different dates, some dates are included in one week. We want to count the weekly average for spend.

Calculate Weekly Average 2

Step 1: Create another table with three columns Week No., Year and Average. This table is used for recording the week number, year and the weekly average for launch spend.

Calculate Weekly Average 3

Step 2: In E2, enter the formula =WEEKNUM(C2,2).

Calculate Weekly Average 4

For function WEEKNUM, we set the second parameter as 2, that means week begins on Monday.

Calculate Weekly Average 5

Step 3: Click Enter to get returned value. We get 2 in this case. That means the date belongs to the second week in year 2019.

Calculate Weekly Average 6

Step 4: In F2, enter the formula =Year(C2). We can get Year 2019.

Calculate Weekly Average 7

Step 5: In G2, enter the formula =IF(AND(E2=E1,F2=F1),””,AVERAGEIFS($B$2:$B$10,$E$2:$E$10,E2,$F$2:$F$10,F2)). Then we get the returned value 10.

Calculate Weekly Average 8

Comment: In this formula, we use AVERAGEIFS function to calculate the average by specific criteria, and use IF function to classify dates by week and then get according average. If (E2=E1,F2=F1) is true, then we get blank value, otherwise we will get the weekly average.

Step 6: Drag the fill handle to fill the following cells in the table. We get weekly average values for all weeks.

Calculate Weekly Average 9

Comment: If you want to ignore Year, you can just enter the formula =AVERAGEIFS($B$2:$B$10,$E$2:$E$10,E2). Then we can get below table. You can depend on your requirement to determine whether add or remove criteria.

Calculate Weekly Average 10

Related Functions

  • Excel WEEKNUM function
    The Excel WEEKNUM function returns the week number of a specific date, and the returned value is ranging from 1 to 53.The syntax of the WEEKNUM function is as below:=WEEKNUM (serial_number,[return_type])…
  • Excel IF function
    The Excel IF function perform a logical test to return one value if the condition is TRUE and return another value if the condition is FALSE. The IF function is a build-in function in Microsoft Excel and it is categorized as a Logical Function.The syntax of the IF function is as below:= IF (condition, [true_value], [false_value])….
  • Excel AND function
    The Excel AND function returns TRUE if all of arguments are TRUE, and it returns FALSE if any of arguments are FALSE.The syntax of the AND function is as below:= AND (condition1,[condition2],…)…



Related Posts

Calculate Days Open in Excel

If you want to know how to Calculate days in Excel, there are some formulas that you can use to do so. For example, you can use the DAYS function in Excel to find the number of days between two ...

Add Row Numbers And Skip Blanks in Excel

Do you ever have to input a list of numbers into a spreadsheet, and some of the cells are blank? It can be difficult to keep track of what number is in which cell when you have to scroll up ...

Assigning Points based on Late Time

It is shown in this lesson how to utilize the IF function in Excel to allocate points based on the amount of time that has passed. If you intend to pursue along this guide, you may do so by downloading ...

Check Dates in chronological order

Assume you have a date list that has different date formats, as seen in the accompanying picture. In this instance, Excel's Sort function will fail to sort them appropriately. However, you may convert all various date formats to a particular ...

Check If a Cell is Blank or Empty

The article demonstrates how to check if a range of cells is blank or empty by ISBLANK and other functions to recognize empty cells in Excel and take appropriate action based on their status. There are several circumstances in which ...