Pinterest Pixel

Group Sales by Weeks With Excel Pivot Tables

I am sure that your boss has asked you to come up with Total Sales numbers per week... read more

Download Excel Workbook
Bryan
Posted on

Overview

I am sure that your boss has asked you to come up with Total Sales numbers per week at least once in your current role!  If not, he will….very very soon!

Now your data has only sales for each individual day, which makes you scramble to come up with a solution.   How will you be able to group them together and get the sales report your boss needs?

Formulas?  Maybe…well NO!  Too difficult.

Macros?  Don´t know how to code!

Pivot Tables?  HELL YEAH BABY!

Yes, Pivot Tables are quick and reduce the risks of making any errors….ah yeah, I almost forgot…it is also easy to add new data to your sales report!

In the example below I show you how to get the Sales Grouped by Date:

Group Sales by Weeks With Excel Pivot Tables | MyExcelOnline

DOWNLOAD EXCEL WORKBOOK

 

STEP 1: Insert a new Pivot table by clicking on your data and going to Insert > Pivot Table > New Worksheet or Existing Worksheet

Group Sales by Weeks With Excel Pivot Tables

 

STEP 2: In the ROWS section put in the Order Date field.

See also  Repeat All Item Labels In An Excel Pivot Table

Notice that in Excel 2016 it automatically groups dates into Years & Quarters.  We do not need this expansion.

Click the Undo button:

Group Sales by Weeks With Excel Pivot Tables

 

After clicking Undo, you will only have the Order Date in the Rows area:

Group Sales by Weeks With Excel Pivot Tables

 

STEP 3: Right click on any date in your Pivot Table and select Group

Group Sales by Weeks With Excel Pivot Tables

 

STEP 4: It was able to determine our date range (minimum date and maximum date).

Deselect Months and make sure only Days is selected (depicted by the blue color).

Set the Number of days to 7.

This will group our dates by a weekly range (every 7 days).

Click OK.

Group Sales by Weeks With Excel Pivot Tables

 

STEP 5: Notice that we have Date Ranges now which are 7 days long each :

Group Sales by Weeks With Excel Pivot Tables

 

STEP 6: In the VALUES area put in the Sales field.

This will get the total of the Sales for each 7-day date range you have defined:

Group Sales by Weeks With Excel Pivot Tables

 

You now have your total sales for each 7-day period!  If you like you can insert a Pivot Chart to visually show the data to your miserable boss!

See also  Data Model and Relationships In Microsoft Excel Pivot Tables

Group Sales by Weeks With Excel Pivot Tables

 

PIVOT BANNER

If you like this Excel tip, please share itEmail this to someone

email

Pin on Pinterest

Pinterest

Share on Facebook

Facebook

Tweet about this on Twitter

Twitter

Share on LinkedIn

Linkedin

Group Sales by Weeks With Excel Pivot Tables | MyExcelOnline
Bryan

Bryan is a best-selling book author of the 101 Excel Series paperback books.

Get Video Training

Advance your Microsoft Excel & Office Skills with the MyExcelOnline Academy!

Dramatically Reduce Repetition, Stress, and Overtime!
Exponentially Increase Your Chances of a Promotion, Pay Raise or New Job!

Learn in as little as 5 minutes a day or on your schedule.

Learn More!