To change daily dates to weekly summaries in a pivot table, use the Grouping feature. In Excel or Google Sheets, you right-click a date cell in the pivot table, select Group, and choose "Days" with the number of days set to 7. This aggregates individual daily entries into seven-day blocks, allowing you to see trends over weeks rather than a cluttered list of every single calendar day.

What You'll Need

  • A dataset containing a column of dates formatted as actual date values (not text).
  • A created Pivot Table based on that dataset.
  • The date field placed in the "Rows" or "Columns" area of the Pivot Table.

Step-by-Step

  1. Prepare Your Data: Ensure your source data column is consistently formatted as a Date. If some cells are text and others are dates, the grouping feature will be disabled. Select the date column in your source table and set the format to "Short Date" from the Home tab.
  2. Create the Pivot Table: Select your data range, go to the Insert menu, and select Pivot Table. Place the Pivot Table on a new worksheet or a specific location on your existing sheet.
  3. Arrange the Fields: Drag your Date field into the "Rows" section of the Pivot Table Field List. You will initially see every single date listed individually, which often creates a very long, difficult-to-read table.
  4. Access the Grouping Menu: Right-click on any single date value within the actual Pivot Table (not in the field list, but in the table itself). From the context menu that appears, select Group. Note that menu labels can differ slightly depending on your software version or region.
  5. Configure the Weekly Setting: In the Grouping dialog box, you will see a list of options like Seconds, Minutes, Hours, Days, Months, Quarters, and Years. To get weeks, you must deselect everything except "Days".
  6. Set the Day Count: Once "Days" is the only option highlighted, look for the "Number of days" box at the bottom of the dialog. Change the value from 1 to 7.
  7. Define the Start Date: Check the "Starting at" date. The software usually suggests the first date in your dataset. If that date falls on a Wednesday, your "weeks" will run Wednesday to Tuesday. If you want your weeks to start on a specific day (like a Sunday), manually change the "Starting at" date to the nearest Sunday prior to your data start date.
  8. Confirm the Grouping: Click OK. Your pivot table will now collapse the daily entries into ranges (e.g., 1/1/2023 - 1/7/2023), effectively turning your daily view into a weekly view.

Common Mistakes

The most frequent error is attempting to group dates that are stored as text. If you right-click a date and the "Group" option is greyed out or returns an error saying "Cannot group that selection," it is almost always because there is a non-date value in that column. This could be a blank cell, a "N/A" string, or a date typed in a format the software doesn't recognize as a numerical date value.

Another common mistake is selecting multiple date cells before right-clicking. To trigger the grouping menu correctly, you should select only one single date cell. Selecting a range of cells can sometimes confuse the software, leading it to believe you are trying to create a manual group rather than a chronological date group.

Users also frequently forget to check the "Starting at" date. If you simply set the days to 7 without checking the start date, your weekly reports may not align with your company's fiscal week or the standard calendar week, making the data difficult to compare with other reports.

Tips

To make your weekly report more readable, you can change the field name. Instead of the default "Date" header, click the cell and type "Week Ending" or "Weekly Period." This clarifies to anyone viewing the report that the data is aggregated.

If you need to switch between daily, weekly, and monthly views frequently, consider creating a "Slicer" for your date field. While grouping locks the table into one view, using a Timeline Slicer (available in newer versions of Excel) allows you to visually toggle between days, months, and quarters without having to re-enter the Grouping menu.

For advanced reporting, you can group by both Weeks and Years. To do this, select both "Days" (set to 7) and "Years" in the grouping dialog. This prevents a single long list of weeks that spans multiple years, instead creating a nested hierarchy where you can collapse or expand specific years to see the weeks within them.

Troubleshooting

The "Group" option is missing or greyed out: This happens when the software detects non-date data. To fix this, go back to your source data. Use the "Find and Replace" tool to remove any text errors or blanks in the date column. Alternatively, use a formula like =DATEVALUE() to convert text dates into real dates, then refresh the pivot table and try grouping again.

The dates are grouping by month instead of week: This occurs if you left "Months" selected in the Grouping dialog. Ensure that "Days" is the only highlighted option before changing the number of days to 7. If both are selected, the software will prioritize the larger unit (Months) over the smaller unit (Days).

The week ranges look strange (e.g., starting on a Tuesday): This is a result of the "Starting at" date. To fix this, right-click the date again, go back to Group, and change the start date to the most recent Sunday or Monday. This resets the 7-day anchor point for the entire table.

The Pivot Table won't refresh after data changes: If you add new dates to your source data, the pivot table does not update automatically. Right-click anywhere in the pivot table and select "Refresh." If the new dates fall outside the original data range, you must go to PivotTable Analyze > Change Data Source and expand the range to include the new rows.

Frequently Asked Questions

Can I group by 2-week or 4-week periods?

Yes. In the Grouping dialog, simply change the "Number of days" from 7 to 14 for bi-weekly reports or 28 for a standard 4-week lunar cycle. The software will aggregate the data based on whatever number you enter in that box.

Does this change the original source data?

No. Grouping in a pivot table is a visual aggregation. It does not alter the dates in your original spreadsheet; it only changes how those dates are displayed and summed within the pivot table summary.

How do I undo the weekly grouping?

Right-click any of the grouped date ranges in the pivot table and select "Ungroup." This will immediately return the table to its original state, showing every individual date again.

Why does my pivot table automatically group dates into months?

Many modern versions of spreadsheet software have an "Auto-grouping" feature that automatically organizes dates into Years, Quarters, and Months the moment you drag the field into the Rows area. You can override this by right-clicking and using the Group menu to select "Days" and setting it to 7.

Can I group dates by a custom work-week (e.g., Mon-Fri)?

The built-in grouping tool only supports fixed day counts (like 7 days). If you need a specific work-week excluding weekends, you must create a "Helper Column" in your source data using a formula like =WEEKNUM() or =TEXT(A2, "ww") to assign a week number to each date, then use that helper column as your pivot table row.