Microsoft Excel is one of the popular programs that is used by billions of people to manage their data and bills. It is used by businesses to keep track of their finances, inventory and more.
The fact that businesses are relying on the application to manage their data, they often need to delete multiple records from Excel documents.
One of the users who experienced problems while deleting multiple rows reported on forums.
How can I delete multiple rows in Excel? If I mark everything and try to delete, it just deletes a single row. Even if I right-click and select delete, it still deletes one row at a time. I need to delete all rows separately selected with Ctrl in one go.
Fortunately, there are many ways that you can use to delete multiple rows from an Excel sheet in one go.
How can I delete multiple rows in Excel?
1. Delete Multiple Rows through Contextual Menu
- Open the Excel sheet and select all the rows that you want to delete.
- Right-click the selection and click Delete or Delete rows from the list of options.
- Alternatively, click the Home tab, navigate to the Cells group, and click Delete.
- A drop-down menu will open on your screen.
2. Delete multiple Rows using a Shortcut key
- Select the targetted rows from your excel sheet to delete multiple rows in a single attempt.
- Press Ctrl and – keys to delete the selection.
This method applies to both multiple consecutive and non-consecutive rows.
3. Delete multiple rows through cell selection
- First and foremost, select all the cells in the corresponding rows that you want to delete.
- Right-click on one of the selections and select Delete.
- Click Entire Row from the delete dialogue box and click the OK button.
4. Delete multiple Rows by running a Macro
- Select the targetted rows that you want to delete.
- Open the VBA editor by pressing Alt+F11 keys from your keyboard.
- Click the first project from the left-hand pane.
- Navigate to the menu bar and select Insert >> Module.
- Paste the following code in the new window to select multiple cells for deletion:
- Sub Delete_Rows()
- ‘delete multiple rows (rows 4, 5 and 6)
- End Sub
Change the row number references (“C4:C6”) to choose the specific rows that you want to delete. For instance, if you want to delete nonconsecutive rows (3,7,8), you can specify the range as (“C3,C7,C8”). Specify the name of your worksheet by changing Sheet1.
Finally, click the Run button or press F5 to run the script.
Which of the following method worked for you? Let us know in the comments section below.
FAQ: Learn more about Microsoft Excel
- What is Microsoft Excel?
Microsoft Excel is the dedicated spreadsheet tool of the Microsoft Office suite.
- Are there any Microsoft Excel alternatives?
Yes, there are plenty of Microsoft Excel alternatives, including Google Sheets, or the spreadsheet tool for Libre Office.
- What file formats can Microsoft Excel open?
Besides xls files, there are plenty of file formats that Microsoft Excel can handle.