Hi,
Select in the PT, and activate the PT wizard.
Click the BACK button. Now the Data Source Range is displayed. You can from here adjust the range to include ALL rows of data. That's the HARD way, but it's a way.
Here's one of the ways that I use. Not in the PT, select the sheet with the source data.
Make sure that the data table is ISOLATED, that is, data that is not part of the source data is NOT adjacent to the table at any point.
Pick a column in your data that has and will ALWAYS have a value in every row of the source data. There must be no data ABOVE or BELOW the table in that column. There must be no data in the ROW containing the table headings to the right of the table.
Insert/Name/Define - Opens the Define Name window.
In the
Names in Workbook: textbox, enter a name that will define your source data.
Database is a good name or maybe
dbMyData
In the
Refers to: textbox enter and follow these instructions...
[tt][highlight white]
=offset(
[/highlight][/tt]
then select the top left cell in your table
[tt][highlight white]
,0,0,counta(
[/highlight][/tt]
then select the COLUMN that you picked above
[tt][highlight white]
), counta(
[/highlight][/tt]
then select the HEADING ROW
[tt][highlight white]
))
[/highlight][/tt]
You should end up with a formula that liks similar to this...
[tt][highlight white]
=OFFSET(Sheet1!$A$1,0,0,COUNTA(Sheet1!$A:$A),COUNTA(Sheet1!$1:$1))
[/highlight][/tt]
Here's what the OFFSET fuction does.
Argument 1: The anchor reference for the range
Argument 2: The ROW offset for the range to start (in this instance NONE)
Argument 3: The COLUMN offset for the range to start (in this instance NONE)
Argument 4: The NUMBER OF ROWS in the range (the count of data items in the column)
Argument 5: The NUMBER OF COLUMNS in the range (the count of data items in the row)
Skip,
[red][/red]
![[tongue] [tongue] [tongue]](/data/assets/smilies/tongue.gif)