Excel Delete Pivot Table (Table of Contents)
Delete Pivot Table in Excel
Pivot table plays a pivotal role in analyzing and extracting the story out of a large amount of data in Excel. More often we need pivot tables to tell the story dynamically as the data keeps adding on. However, sometimes occasionally we need the story from the pivot table does not require a pivot table for our future references. In such cases, we need to remove or delete pivot tables in Excel.
We usually see the default pivot table as shown in the below image.
A typical pivot table includes Pivot Table Fields to drag and drop the headings of the data to our fields according to our wish. Typically, we can remove or delete the excel pivot table from the worksheet in two ways. Follow this article to learn one by one.
I will start by applying the pivot table. You can download this workbook to practice along with me to get practical experience on the go. I have sales data country-wise which includes many other fields but as of now, I am considering only two columns i.e. Country and Units Sold.
Data is there from the range A1 to H701. I need to summarise the data, what is the total units sold by country-wise. Let us start the process of applying a pivot table.
- Select the entire data to range i.e. A1:H701.
- Go to insert and Click on the Pivot Table.
4.9 (287 ratings)
- Once you click on this it will insert a new worksheet.
- Drag and drop Country heading to ROWS and Units sold to VALUES.
- Now your summarised should be like this.
How to Delete a Pivot Table in Excel?
Deleting or Removing a Pivot Table in Excel is very simple and easy to use. Let us understand the working of Deleting Pivot Table in Excel by some Methods.
Method #1 – Remove the pivot table by copy and paste as values
Now I can remove or delete the excel pivot table in two ways.
Step 1: Select the pivot table range.
Step 1.1: We can select the pivot table like this also. Place a cursor inside the pivot table > Go to Options > Select > Entire Pivot Table.
Step 2: Once the entire pivot table is selected press Ctrl + C to copy the data.
Step 3: Once you copied the pivot table do not change your cursor. Press ALT + E + S this would open up the Paste Special dialogue box instantly. Select Values from here and Click Ok.
Step 4: Now pivot table data is pasted as values. An Excel pivot table is removed.
If you observe all the formatting like background color, font style, font name and even the pivot table fields are removed from the list in excel.
Method #2 – Remove the pivot table by using Clear Option
Step 1: Select the pivot table range.
Step 1.1: We can select the pivot table like this also. Place a cursor inside the pivot table > Go to Options> Select > Entire Pivot Table.
Step 2: Once you have selected the pivot table range you click on delete option to delete or remove the excel pivot table.
Step 2.1: Once you have selected the pivot table range go to Options > Clear > Clear All.
This will remove only the existing pivot table fields but the actual sheet with pivot table options to drag and drop remains same.
Ok, in these two methods we can remove the excel pivot table.
Method #3 – Delete All Pivot Tables in One Shot
We have learned the easy way of removing or deleting the pivot table in Excel. But the problem is deleting many pivot tables in a workbook is not that easy.
We need VBA code to remove the pivot table. I have already written the VBA code to delete all the existing pivot tables in the workbook.
Copy and paste the below code to your VBA module and save the workbook as a macro-enabled workbook.
Dim Wb As Workbook, Ws As Worksheet, Pt As PivotTable
If MsgBox(“Do you want to delete all the pivot tables?”, _
vbYesNo + vbDefaultButton2, “DELETE ALL?”) = vbNo Then Exit Sub
On Error Resume Next
For Each Ws In ActiveWorkbook.Worksheets
For Each Pt In Ws.PivotTables
Step 1: Open the VBA editor by pressing ALT + F11.
Step 2: Go to Insert > Module
Step 3: Once the module is inserted copy and paste the above code and save the workbook as a macro-enabled workbook.
Things to Remember about Delete Pivot Table in Excel
- We can remove or delete the excel pivot table and pivot worksheet as well.
- Once the excel pivot table is removed by using VBA code we cannot undo the action so it is safe to have a backup copy.
- Once the excel pivot table is removed any changes in the database will not reflect on the removed field.
You can download this Delete Pivot Table Excel Template here – Delete Pivot Table Excel Template
This has been a guide to Delete Pivot Table in Excel. Here we discuss how to Delete a Pivot Table in Excel with three different Methods and downloadable excel template. You can also go through our other suggested articles –