"Change Data Source" Pivot Table Excel 2016

mark91345

Board Regular
Joined
Feb 11, 2011
Messages
113
I first Create Table (where the data is =$A:$B, incl headers).
ABC
DateAnimal
11/01/17Dog
11/02/17Dog
11/03/17Cat
11/04/17Dog
11/05/17Cat

<tbody>
[TD="align: center"]1[/TD]

[TD="align: right"][/TD]

[TD="align: center"]2[/TD]

[TD="align: right"][/TD]

[TD="align: center"]3[/TD]

[TD="align: right"][/TD]

[TD="align: center"]4[/TD]

[TD="align: right"][/TD]

[TD="align: center"]5[/TD]

[TD="align: right"][/TD]

[TD="align: center"]6[/TD]

[TD="align: right"][/TD]

</tbody>


Then, I create the Pivot Table.

DEFGHI
Count of AnimalColumn Labels
Row Labels
11/1/2017
11/2/2017
11/3/2017
11/4/2017
11/5/2017
(blank)
Grand Total

<tbody>
[TD="align: center"]2[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]3[/TD]

[TD="align: center"]Cat[/TD]
[TD="align: center"]Dog[/TD]
[TD="align: center"](blank)[/TD]
[TD="align: center"]Grand Total[/TD]
[TD="align: right"][/TD]

[TD="align: center"]4[/TD]

[TD="align: center"][/TD]
[TD="align: center"]1[/TD]
[TD="align: center"][/TD]
[TD="align: center"]1[/TD]
[TD="align: right"][/TD]

[TD="align: center"]5[/TD]

[TD="align: center"][/TD]
[TD="align: center"]1[/TD]
[TD="align: center"][/TD]
[TD="align: center"]1[/TD]
[TD="align: right"][/TD]

[TD="align: center"]6[/TD]

[TD="align: center"]1[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]1[/TD]
[TD="align: right"][/TD]

[TD="align: center"]7[/TD]

[TD="align: center"][/TD]
[TD="align: center"]1[/TD]
[TD="align: center"][/TD]
[TD="align: center"]1[/TD]
[TD="align: right"][/TD]

[TD="align: center"]8[/TD]

[TD="align: center"]1[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]1[/TD]
[TD="align: right"][/TD]

[TD="align: center"]9[/TD]

[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]10[/TD]

[TD="align: center"]2[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"][/TD]
[TD="align: center"]5[/TD]
[TD="align: right"][/TD]

</tbody>

Next, in Columns A & B, I add a couple more dates and animals, but it is NOT reflected in the Pivot Table.
ABCDEFGHI
Date
11/01/17Count of AnimalColumn Labels
11/02/17Row Labels
11/03/1711/1/2017
11/04/1711/2/2017
11/05/1711/3/2017
11/20/1711/4/2017
11/21/1711/5/2017
(blank)
Grand Total

<tbody>
[TD="align: center"]1[/TD]

[TD="align: right"]Animal[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]2[/TD]

[TD="align: right"]Dog[/TD]
[TD="align: right"][/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]3[/TD]

[TD="align: right"]Dog[/TD]
[TD="align: right"][/TD]

[TD="align: center"]Cat[/TD]
[TD="align: center"]Dog[/TD]
[TD="align: center"](blank)[/TD]
[TD="align: center"]Grand Total[/TD]
[TD="align: right"][/TD]

[TD="align: center"]4[/TD]

[TD="align: right"]Cat[/TD]
[TD="align: right"][/TD]

[TD="align: center"][/TD]
[TD="align: center"]1[/TD]
[TD="align: center"][/TD]
[TD="align: center"]1[/TD]
[TD="align: right"][/TD]

[TD="align: center"]5[/TD]

[TD="align: right"]Dog[/TD]
[TD="align: right"][/TD]

[TD="align: center"][/TD]
[TD="align: center"]1[/TD]
[TD="align: center"][/TD]
[TD="align: center"]1[/TD]
[TD="align: right"][/TD]

[TD="align: center"]6[/TD]

[TD="align: right"]Cat[/TD]
[TD="align: right"][/TD]

[TD="align: center"]1[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]1[/TD]
[TD="align: right"][/TD]

[TD="align: center"]7[/TD]

[TD="align: right"]Dog[/TD]
[TD="align: right"][/TD]

[TD="align: center"][/TD]
[TD="align: center"]1[/TD]
[TD="align: center"][/TD]
[TD="align: center"]1[/TD]
[TD="align: right"][/TD]

[TD="align: center"]8[/TD]

[TD="align: right"]Cat[/TD]
[TD="align: right"][/TD]

[TD="align: center"]1[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]1[/TD]
[TD="align: right"][/TD]

[TD="align: center"]9[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]10[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]2[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"][/TD]
[TD="align: center"]5[/TD]
[TD="align: right"][/TD]

</tbody>


So, when I look online, it says to click on the Analyze tab, then Choose Data Source, and make the proper change. I already have the "ants" surrounding the full Columns A & B, so there is nothing to change. So, I changed the table to $A$1:$B$20 and now it works. Is this a bug? Sometimes, I might know how far to go down to; other times, I just want the whole column.

Lastly, how can I remove the "blank" column from the pivot table?
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hi Mark,

Any changes that you make to cells in your datasource range aren't reflected in the PivotTable until it is Refreshed.

You can Right-Click anywhere on a PivotTable, then pick Refresh.
 
Upvote 0
The Blank is there as you are selecting a Row with no data in it. Your data is A1:B8 but you are selecting A1:B20. You need to change it or filter the blanks out.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,287
Members
452,631
Latest member
a_potato

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top