How to Delete a Pivot Table in Excel

We can delete the pivot table in Excel in four ways:

  • Remove the pivot table completely
  • Delete pivot table data but Keep the Pivot Table
  • Delete pivot table but its data remains
  • Delete all pivot tables in the entire workbook

In the following article, we will examine every 4 methods.

How to remove the pivot table completely

  1. Open the student.xlsx spreadsheet.

2. Create a pivot table in excel.

3. Select any cell in the Pivot Table (for example A4).

4. In the PivotTable Analyze Tab.

5. Choose Select .

6. Select Entire pivotTable.

7. Finally Hit the Delete key.

How to remove the pivot table completely

How to delete pivot table data but Keep the Pivot Table

  1. Open the student.xlsx spreadsheet.

2. Create a pivot table in excel.

3. Select any cell in the Pivot Table (for example B5).

4. In the PivotTable Analyze Tab.

5. Select Clear.

6. Select Clear All.

How to delete pivot table data but Keep the Pivot Table

How to delete pivot table but its data remains

  1. Open the student.xlsx spreadsheet.

2. Create a pivot table in excel.

3. Select any cell in the Pivot Table (for example B5).

4. From the PivotTable Analyze Tab.

5. Choose Select .

6. Select Entire pivotTable.

How to delete pivot table but its data remains

7. copy PivotTable (press Ctrl/cmd +C).

8. In the Home Tab.

9. Select Paste.

10. Select Paste Value.

How to delete pivot table

Delete all pivot tables in all sheets (VBA CODE)

DELETE ALL PIVOT TABLES IN All SHEETS (VBA CODE)
  1. Press (ALT+F11) to open Microsoft Visual Basic for Applications.
  2. Select the Insert Tab.
  3. Choose Module.
  4. Paste the following code in the module window:
Sub ClearPivotTables()
Dim Ws As Worksheet, Pt As PivotTable
On Error Resume Next
For Each Ws In ActiveWorkbook.Worksheets
    For Each Pt In Ws.PivotTables
        Pt.TableRange2.Clear
    Next Pt
Next Ws
End Sub

5. Press F5 to run the macro.

6. In the macro window, Select Run.

VBA CODE for DELETE PIVOT TABLES IN excel

Leave a Reply

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