Search Contextures Sites
Excel Pivot Table -- Dynamic Data Source
- Getting Started with Pivot Tables
- Set Up a Dynamic Data Source
- Create a Pivot Table
- Download the Sample File
- Pivot Table Tutorial List
The first step in creating a Pivot Table is to organize your data in a list of rows and columns. Make sure that there is a heading in every column, and no rows that are completely blank.
In the screen shot below,
- the list headings are in row 3
- the data is in rows 4 to 9, from column A to column H.
Next, set up the data range as a dynamic range, using one of the 3 options shown below.
Advantages of using a dynamic range as a data source:
- A dynamic range will automatically expand or contract, if data is added or removed.
- You can base a pivot table on the dynamic range. Then, when you refresh the pivot table, it will include all of the data in the range, even if new rows have been added.
In Excel 2007 and later versions, you can format your list as a Named Table, and use that as the dynamic source for your Pivot Table.
There are detailed instructions here: Excel Tables -- Creating an Excel Table.
To see the steps in creating an Excel Table, please watch this short video tutorial.
In Excel 2003, use the List feature to create a dynamic list. It is a built-in tool that will create a List object on the worksheet.
To create a List:
- Select a cell in the list
- Click the Data menu, click List, then click Create List
- In the Create List dialog box, check that the range is correct, and fix the range, if necessary
- Add a check mark to the "My List has Headers" option.
- Click OK
When a cell in the List is selected, the list has a solid blue border around it, and there are filter drop down arrows in the heading row. There is also a blank row at the end, where you can add new items.
If you prefer not to use a named table or list, you can use a formula to create a dynamic range. This formula can use the INDEX or OFFSET functions to create the range.
The written instructions are here: Create a Dynamic Named Range in Excel 2003
This video shows the steps for using the OFFSET function, in Excel 2007.
Once you have the dynamic range set up, you can create a pivot table, based on that range.
- Excel 2013 -- Follow the instructions here.
- Excel 2010 / 2007 -- Follow the instructions here
- Excel 2003 -- follow the instructions below
Create a Pivot Table in Excel 2003
- Select a cell in the database
- Choose Data>PivotTable and PivotChart Report
- Select 'Microsoft Excel List or Database', click Next.
- For the range, type your range name, e.g. Database
- Click Next
- Click the Layout button
- Drag field buttons to the row, column and data areas
- Click OK, click Finish
You can download the zipped sample file used for this tutorial.
Xtreme Pivot Table Course
Pivot table skills are essential, if you want to be an Excel master. To raise your skills to the expert level, I recommend the Xtreme Pivot Table course, from John Michaloudis, at My Excel Online.
This course has more than 200 videos -- beginner, intermediate and advanced level -- along with practice workbooks, finance business cases, and 12 months of personal support. Each short lesson is clear, and easy to follow. Work through the lessons at your own pace, and track your progress. The course is an excellent value, at a surprisingly low price.
See the course details, and watch sample videos here: Xtreme Pivot Table Course. When you buy the course, use the coupon code CONTEXTURES for a 10% discount.
- Add-In: PivotPower Premium
- Beginning Pivot Tables Book
- Pivot Tables Recipe Book
- Xtreme Pivot Table Course - Use code CONTEXTURES for 10% discount.
- FAQs - Pivot Tables
- Pivot Table Introduction
- Grouping Data
- Multiple Consolidation Ranges
- Running Totals
- Summary Functions
- Clear Old Items in Pivot Table
Contextures Inc., Copyright ©2014
All rights reserved.
Search Contextures Sites
Last updated: August 9, 2014 3:47 PM