How to Delete a Data Table in Excel (4 Methods)

Dataset Overview

We’ll use the below dataset to demonstrate the steps to be taken to delete a data table.

how to delete a data table in excel


Method 1 – Using a Peripheral Device to Remove a Table from the Data Model in Excel

  • Select the data table (from B4 to E13 in our dataset).

Use Peripheral Device to Remove a Table from Data Model in Excel

  • Right-click your mouse.
  • Choose Table Columns under the Delete option.

  • This will delete the data table.

Use Peripheral Device to Remove a Table from Data Model in Excel

Notes
  • You can delete table data without changing the table format by selecting the data range and pressing the Delete button on your keyboard.


Method 2 – Using Design Tab to Delete a Data Table Without Deleting Data in Excel

  • Select the range B4:E13 of the data table.
  • Go to Table Design → Tools → Convert to Range.

Utilize Design Tab to Delete a Data Table Without Deleting Data in Excel

  • Confirm the conversion when the Microsoft Excel warning box appears.

  • This will delete the table while preserving formatting and data.

Utilize Design Tab to Delete a Data Table Without Deleting Data in Excel


Method 3 – Applying Clear Command to Delete a Data Table in Excel

  • Select the range B4:E13.
  • Go to Home → Editing → Clear All.

Apply Clear Command to Delete a Data Table in Excel

  • This will delete the data table, including data and formatting.


Method 4 – Running an Excel VBA Code to Delete a Data Table

  • Open a module.
  • Go to the Developer tab → Visual Basic.

Run an Excel VBA Code to Delete a Data Table

  • Insert a module (go to Insert → Module).

  • Enter the following VBA code in the module:
Sub delete_data_table()
Cells.Range("B4:E13").Delete
End SubRun an Excel VBA Code to Delete a Data Table
  • Run the VBA code (go to Run → Run Sub/UserForm).

  • This will remove the data table.

Run an Excel VBA Code to Delete a Data Table


Bottom Line
  • To open the Microsoft Visual Basic for Applications window, press Alt + F11 simultaneously.
  • You can also use the ALT + L + V shortcut to open the Microsoft Visual Basic Applications window.
  • If the Developer tab is not visible in your ribbon, you can make it visible by going to File → Options → Customize Ribbon.

Download Practice Workbook

You can download the practice workbook from here:


Related Articles


<< Go Back to Data Table in Excel | What-If Analysis in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Md. Abdur Rahim Rasel
Md. Abdur Rahim Rasel

MD. ABDUR RAHIM is a marine engineer proficient in Excel and passionate about programming with VBA. He views programming as an efficient means to save time while managing data, handling files, and engaging with the internet. His interests extend to Rhino3D, Maxsurf C++, AutoCAD, Deep Neural Networks, and Machine Learning, reflecting his versatile skill set. He earned a B.Sc in Naval Architecture & Marine Engineering from BUET, and now he has become a content developer, creating technical content... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo