Free Subscription to CFO Magazine

Today in Finance for September 9, 2010

You are here: Home : Today in Finance : Article

Six Magic Clicks to Roll Up Daily Records

The grouping feature in Excel pivot tables allows you to turn a large data set of daily records into a report showing year-over-year figures by month or quarter.

September 2, 2010

Editor's Note: To read more about spreadsheets, share a tip with other readers, or suggest a topic for Bill Jelen to cover in an upcoming column, click here to visit CFO.com's Spreadsheet Tips page.

Every company is swimming in data. Your financial-analysis team undoubtedly has many Excel workbooks with thousands of rows of detailed invoice data. Using the techniques in this article, you can turn that ugly data into a useful report using just a dozen mouse clicks. While the first six clicks create a ho-hum pivot table, it is the second half-dozen clicks that provide the magic.

Find a Suitable Data Set
You should have an invoice register or similar data. There should be no blank rows or blank columns, and you do not want totals or subtotals in the data. You can use any number of columns, but you want to have one column that contains an invoice date and another column that contains revenue. Ideally, the data set will include two (or more) years of data.

First Six Clicks Create a Pivot Table
Select any cell in the data set. In Excel 2003 or older, choose Data, Pivot Table, or Pivot Chart Report, and click Finish. In Excel 2007 or newer, choose Insert, Pivot Table, and click OK. You will now have a blank pivot table.

Add your date field to the Row Labels area of the pivot table. Add the revenue field to the Data area (Excel 2003) or the Values area (Excel 2007). You will now have more than 500 rows of daily dates running down the left side of the report.

Magic Six Clicks Roll Up to Months and Years
Click on one of the cells that contain a date in the left column of your pivot table. In Excel 2007 or Excel 2010, choose the Group Field icon from the PivotTable Tools Options tab of the ribbon. In Excel 2003, right-click the date cell and choose Group and Show Detail, Group. You will now see the Grouping dialog box offering to let you group to Seconds, Minutes, Hours, Days, Months, Quarters, or Years. Choose both Months and Years as shown in Figure 1. Click OK.


Fig. 1

MrExcel001-A

 

You will now have a report with years in column A, months in column B, and revenue in column C. In a clever move, Microsoft has added a new "Years" field to the Pivot Table Field List.

Drag this field to the Column area in order to compare last year to this year as shown in Figure 2.


Fig. 2

MrExcel001-B

 

Bill Jelen is the author of 32 books, including Pivot Table Data Crunching, and is the host of MrExcel.com. Suggest a topic for his next column at CFO.com's Spreadsheet Community Center (right) and if your suggestion is chosen, you'll receive a copy of one of Jelen's new books.


Reader Comments» Post a comment

advertisement

Community Center

    Share your tips with CFO.com readers here. No trick or hint is too small. Or take five minutes to browse tips from other readers. Who knows how many hours they might save you?


    9 readers have shared spreadsheet tips on CFO.com
    Latest Reader Posts
    123
    posted at 10:13 am ET on June 7, 2011
    by Amanda Funderburke
    The formulas should read (A2:D2) instead of (A2:C2). Sorry for the confusion, but an edit function would be nice. :)
    posted at 10:07 am ET on February 12, 2011
    by Nicholas Cammarata
    Regarding pivot tables, I recommend that you always select empty cells to show zeros. The following example will illustrate why: First, consider … more
    posted at 10:02 am ET on February 12, 2011
    by Nicholas Cammarata

    » See all tips

    Suggest a topic or ask a question that you want Mr. Excel to address in an upcoming column. If your suggestion is published on CFO.com, we'll send you one of Jelen's most popular books as a thank you.


    65 CFO.com readers have suggested a column topic
    Latest Reader Posts
    Concatenate and place in specified length: Bill, Greetings. I have a very tricky issue. We are trying to set up an excel based journal entry … more
    posted at 12:37 am ET on November 2, 2011
    by shrikant cpa
    Just as you can select to repeat rows at the top of a page as you print it, is there a way to repeat rows at the bottom of a page as you print … more
    posted at 8:23 am ET on August 22, 2011
    by David Horn
    Using the "Find" feature in Excel is nice to locate items quickly, but is there a way to use this or another function that will expand the search to … more
    posted at 11:10 am ET on August 19, 2011
    by David Horn

    » See all suggestions

advertisement

We Deliver

Newsletters

Webcasts

Enter your email address to begin receiving updates on these topics.