Skip to main content

Kutools for Office — One Suite. Five Tools. Get More Done.

How to calculate weekly average in Excel?

Author Kelly Last modified

Previously, we have shared how to calculate averages per day, month, quarter, and hour using a pivot table in Excel. However, that approach does not directly support calculating averages by week. Weekly averages are often needed in business and data analysis scenarios—such as summarizing weekly sales, tracking project hours, or monitoring weekly expenses. Calculating the average per week enables you to observe trends and make decisions based on more meaningful time periods than just daily or monthly data. In the following sections, we'll cover practical methods to calculate weekly averages using helper columns, built-in Excel functions, advanced add-ins like Kutools for Excel, as well as VBA automation and pivot table grouping. These solutions can be applied depending on your data volume, required automation, and personal preference for Excel tools.


Calculate weekly averages with Excel functions

Suppose you have a purchase table similar to the screenshot below. This example illustrates how to calculate weekly averages in detail using Excel's helper columns and built-in functions. This method is suitable for most users who prefer step-by-step manual operations and want full visibility into the calculation process.

Purchase table

Step 1: Add a helper column to label each row by its week number:

Enter WeekNUM in Cell D1, and then in Cell D2 enter the formula =WEEKNUM(A2,2). (Here, A2 refers to your purchase date in the Date/Time column. The second argument 2 tells Excel to consider weeks starting on Monday, which fits most business scenarios. If your week starts on Sunday, you can use 1). Then, drag the fill handle down to fill the week numbers for the whole data range. Now you'll see which week each row belongs to.
=WEEKNUM(A2,2) entered in Cell D2

Step 2: This step allows grouping data by week, but you may want to distinguish identical weeks from different years. In this case, add an extra helper column for the year:

Enter Year in Cell E1. In Cell E2, input =YEAR(A2) (again, A2 is your purchase date cell). Drag the fill handle down, and your data now contains week and year columns for more accurate grouping.
=YEAR(A2) entered in cell E2

Step 3: Now, calculate the weekly average. In Cell F1, enter Average. In Cell F2, enter the following formula: =IF(AND(D2=D1,E2=E1),"",AVERAGEIFS($C$2:$C$39,$D$2:$D$39,D2,$E$2:$E$39,E2)). After that, drag the fill handle down through the intended range.
Formula entered in cell F2

This formula calculates the average for amounts in the same week of the same year, and only displays the result at the first instance of each unique (week, year) combination (other rows in the same group show blanks).
Purchase table with week and year numbers extracted and weekly average calculated

Notes:
(1) If multiple entries appear for one week in the same year, only the first corresponding row displays the average value; other rows are left blank for clarity.
(2) D1 and D2 reference the week number columns, E1 and E2 reference the year columns, $C$2:$C$39 is the range with amount values you want to average, $D$2:$D$39 is the week number column, $E$2:$E$39 is the year column; adjust these ranges and references as needed for your dataset.
(3) If you do not need to consider years and want to average by week number only, in F2 use: =AVERAGEIF($D$2:$D$39,D2,$C$2:$C$39) and fill down. This will give the simple weekly average without distinguishing between years. Example result shown below:
The formula entered in cell F2

Tip: For very large datasets, copying formulas down can slow Excel. In such cases, see the VBA automation or pivot table approach below for a more scalable solution.

If you receive #DIV/0! errors, it usually means there are no matching entries for that week in your dataset. Ensure that your helper columns and amount columns have no blanks or mismatched data types.


Batch calculate all weekly averages with Kutools for Excel

This method introduces Kutools for Excel’s Advanced Combine Rows utilities, making it easy to batch-calculate all weekly averages without manually entering formulas. Kutools simplifies complex grouping and averaging tasks, saving time and reducing manual errors—especially when dealing with medium to large lists with repetitive grouping and calculations.

Kutools for Excel - Packed with over 300 essential tools for Excel. Enjoy permanently free AI features! Download now!

1. In a helper column, enter Week in Cell D1. Then in D2 type =WEEKNUM(A2,2) (A2 = date cell). Fill down to tag every record with its week number. This column allows Kutools to group records by week.
=WEEKNUM(A2,2) entered in cell D2

2. Select the table that includes the new Week column, then click Kutools > Content > Advanced Combine Rows. As Kutools operates on selected ranges, ensure your selection covers the relevant data, including the columns to combine and the weekly grouping column.
Advanced Combine Rows option on the Kutools tab on the ribbon

3. In the opened Combine Rows Based on Column dialog box, set up the following operations:
(1) Click the Fruit column and set it for Combine (using comma as delimiter) to keep fruit names together per week.
(2) For the Amount column, set the operation to Calculate > Average so it automatically provides the weekly average.
(3) Assign the Week column as the Primary Key so grouping is based on weeks.
(4) Click Ok to process.
Combine Rows Based on Column dialog box

Kutools will quickly group all records by week, list all related fruits, and display the average in a clean new table, as shown below:

Advantages: Fast processing for large tables, minimal manual error, and clear output. Notes: Ensure your helper columns are correct before starting, as mistakes there will affect the results. If week numbers are repeated for entries in multiple years, you may need to add a Year helper column and group by both Week and Year for accuracy.

Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy permanently free AI features! Get It Now


Group and average weekly data using Pivot Table

The Pivot Table method leverages Excel's interactive summarization capabilities to group your data by week and quickly calculate weekly averages. This approach is best for users who prefer visual drag-and-drop, flexible data exploration, and easily updating results when your source data changes. It's practical for large datasets and avoids manual formulas.

Step1: Add a helper column to your table for the week number. In the first cell of a blank column (e.g., D2), enter: =WEEKNUM(A2,2), referencing your purchase date. Fill it down to tag each row with its week of the year.

Step2: With your entire table selected (including the new Week column), go to Insert > PivotTable. In the dialog, confirm your range and choose a new or existing worksheet for placement.

Step3: In the Pivot Table Field List pane:

  • Drag the Week column to the Rows area.
  • Optionally, to separate data by year, also drag a Year column (created with =YEAR(A2)) to Rows above Week.
  • Drag the Amount column into the Values area. Click its dropdown > Value Field Settings and set to Average.

The Pivot Table will now display the average amount for each week or (year, week) group automatically. You can refresh the table any time after adding new data to update the results instantly. This method is especially flexible for exploring other summary statistics or re-grouping by different time periods as needed.

Tips: If your data spans more than one year, always include both Year and Week fields to avoid combining the same week from different years. If you want to present date ranges for weeks, you can add a calculated helper column that lists the start date of each week for clarity. If you see blank rows or unexpected results, check that your helper columns contain no gaps and that your table is formatted properly as an Excel table (Ctrl+T) for best results.

Advantages: No manual formulas, dynamic updating as data changes, supports large datasets smoothly. Limitations: Requires a helper column for week number; original dates must be in a recognized date format.


Demo: calculate weekly average in Excel

 
Kutools for Excel: Over 300 handy tools at your fingertips! Enjoy permanently free AI features! Download Now!

Related articles:

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!

All Kutools add-ins. One installer

Kutools for Office suite bundles add-ins for Excel, Word, Outlook & PowerPoint plus Office Tab Pro, which is ideal for teams working across Office apps.

Excel Word Outlook Tabs PowerPoint
  • All-in-one suite — Excel, Word, Outlook & PowerPoint add-ins + Office Tab Pro
  • One installer, one license — set up in minutes (MSI-ready)
  • Works better together — streamlined productivity across Office apps
  • 30-day full-featured trial — no registration, no credit card
  • Best value — save vs buying individual add-in