How to Delete a Pivot Table in Excel [4 Scenarios]

At times, it may be necessary to remove a Pivot Table in Excel. Since a Pivot Table occupies storage space on your device, deleting it can free up space. Furthermore, removing a Pivot Table once your work is complete can enhance Excel’s performance. Excel offers various options for deleting a Pivot Table, including deleting only the dataset, only the Pivot Table, both the Pivot Table and data ranges or the entire Pivot Table with a single click. In this article, I will show you how to delete a Pivot Table in Excel with ease.

Delete the Summarized Pivot Table with Data

Here I have a Pivot Table that I created earlier. However, I want to delete this summarized table.

Created summarized Pivot Table data to delete dataset in Excel

To delete the Pivot Table summary with the dataset, follow the steps:

  1. Select any cell on the Pivot Table.
  2. Go to PivotTable Analyze tab.
  3. Hit on the dropdown of Select under the Actions group.
  4. Select Entire PivotTable option.
    Selected Entire PivotTable to delete summarized Pivot Table in Excel
    After selecting Entire PivotTable, you will see the following interface in your worksheet:
    Selected Pivot Table interface to delete Pivot Table in Excel
  5. Press the DELETE key.

Finally, you will see that you have cleared the summarized Pivot Table.

Remove the Pivot Table Only But Keep the Data

If you want to delete the Pivot Table only but keep the data, copy the data and paste them as a value.

To delete the Pivot Table only, go through the guide below:

  1. Select a random cell on the Pivot Table.
  2. Navigate to PivotTable Analyze tab.
  3. Go to Select dropdown > Entire PivotTable option.
    Chose Entire PivotTable to delete Pivot Table but keep the data in Excel
  4. After selecting the entire Pivot Table, press CTRL+C.
  5. Go to Home tab > Paste dropdown > Paste Values option.
    Copied data and clicked Paste Values to delete Pivot Table but keep data

See the result. You have pasted the values and deleted the Pivot Table.

Deleted Pivot Table but data are kept in Excel using Paste Values

Remove the Dataset Only but Keep the Pivot Table

Situations may arise where you have a specific requirement to delete only the data within the Pivot Table while leaving everything else unaffected. This could be due to a need to recreate and rearrange the dataset.

To delete the dataset of Pivot Table only, follow these steps:

  1. Choose any cell in the Pivot Table.
  2. Go to PivotTable Analyze tab.
  3. Click the dropdown of Clear.
  4. Select Clear All command.
    Clicked Clear All to delete the data but keep the Pivot Table
    As you can see in the image, you have cleared the dataset. However, the Pivot Table is still present. You can choose fields and summarize the data.
    Removed dataset but kept the Pivot Table in Excel

Delete the Entire Pivot Table Using VBA

Go through the process below to delete the entire Pivot Table in Excel using the VBA:

  1. Right-click on the sheet’s name and select View Code command to open Visual Basic Editor window.
    Chose View Code to insert VBA code to delete Pivot Table
  2. Now, go to Insert tab > Module command.
    Insert Module to delete Pivot Table with VBA code in Excel
  3. Copy the code below and paste it into the module.
    Sub DeleteEntirePivotTable()
    
    On Error Resume Next
    Dim pt As PivotTable
    For Each pt In ActiveSheet.PivotTables
    pt.TableRange2.Clear
    
    Next pt
    On Error GoTo 0
    End Sub

    Copied VBA code and Pasted it into module to delete Pivot Table in Excel

  4. Go back to the workbook. Then, press ALT+F8 to open the Macro window.
  5. Click Run command.
    Opened Macro to run VBA code to delete Pivot Table in Excel

Finally, you have removed the entire Pivot Table in just one click. Keep in mind to have a backup of the file if it’s important. Otherwise, you won’t be able to recover the Pivot Table.

Conclusion

To sum up, you will face situations by mistake or necessity to delete a Pivot Table in Excel. To delete any Pivot Table, you can use different Excel features in the Pivot Table. In this article, I have added guidelines to delete the Pivot Table in Excel using 4 cases. You can remove the summarized data Pivot Table only or only the dataset or both the Pivot Table and dataset or the entire Pivot Table. I hope you have a detailed guideline in your hand. Now, you can delete the Pivot Table when needed.

Frequently Asked Questions

Can I edit or delete Pivot Table cell?

You cannot edit individual cells within a Pivot Table directly. Pivot Table cells contain summarized data based on the source data, and they are automatically generated by Excel. To make changes, you need to edit the source data or adjust the Pivot Table’s structure and calculations. Deleting specific cells in a Pivot Table is not a typical operation either. You can, however, delete or modify the Pivot Table itself, fields, or items, which indirectly affects the data displayed in the cells.

How do I remove fields in the Pivot Table?

To remove fields from a pivot table in Excel:

  1. Click within the Pivot Table to select it.
  2. Go to PivotTable Fields on the right.
  3. In the field list, uncheck the fields you want to remove from the Filters, Columns, Rows, or Values areas.

The deselected fields will be removed from the Pivot Table. This process allows you to easily remove fields from your Pivot Table, streamlining your data analysis.

How do I delete old Pivot Table data?

To delete old PivotTable data in Excel, follow these steps:

  1. Click anywhere within the Pivot Table to select it.
  2. Go to the PivotTable Analyze tab on the Excel ribbon.
  3. In the Data group, click on Change Data Source command.
  4. In this Change PivotTable Data Source dialog box, you can either edit the range formula in the Table/Range field to exclude the old data or select a new range in your worksheet to update the PivotTable.
  5. Click OK to confirm the changes and the old data will be deleted from the Pivot Table.

By following these steps, you can easily remove old data from your Pivot Table and ensure it’s up-to-date with the latest information.

How to delete a Pivot Table in Excel using the shortcut key?

In Excel, there isn’t a specific built-in shortcut key for deleting a Pivot Table. To delete a PivotTable, you can typically use the following steps:

  1. Click anywhere within the Pivot Table to select it.
  2. Go to the PivotTable Analyze tab on the Excel ribbon.
  3. In the Actions group, click Select tool, and then choose Entire PivotTable option.
  4. Press the Delete key on your keyboard.

These steps will allow you to delete the selected Pivot Table. Remember that keyboard shortcuts for these actions can vary depending on your Excel version and settings.

5/5 - (1 vote)

Leave a Reply

Your email address will not be published. Required fields are marked *