Pivot Table remove extra lines

SammiBoi

Board Regular
Joined
Jun 1, 2007
Messages
77
I generated a pivot table from my excel data set (roughly 100 fields and 1000 unique records and really should be an Access project in the future). After I have put all of the pivot table filters/creterias in, I will double click to drill down on certain things. I really don't need to see all of the information on the drilldown (ie: I really need about 10 of the 100 fields).

Is there a macro that would let me delete all of the unneeded columns after the drill down? Just to keep in mind, I might have to add a few more column in the data set so using the macro recorder to delete certain rows probably won't work for me.

Thanks
Sam
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,358
Office Version
  1. 365
Platform
  1. Windows
Sam

If you don't want the data in the drilldown why is it in the pivot table?:confused:
 
Upvote 0

SammiBoi

Board Regular
Joined
Jun 1, 2007
Messages
77
You are right, they probably shouldn't be in the pivot table. I kept them in the pivot table data set because it was easier to make the pivot table that way..... Furthermore, a lot of the fields are only for sorting purposes and are not useful to me after I run the drilldown.

This is why I want the macro to help me delete some of these columns.
 
Upvote 0

Forum statistics

Threads
1,190,798
Messages
5,982,976
Members
439,810
Latest member
phobo3s

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
Top