To delete multiple rows in Excel, select the rows you want to remove by clicking and dragging over the row numbers on the left, right-click any selected row header, and select Delete. This process permanently removes the selected rows and shifts the remaining data upward to fill the gap, ensuring your spreadsheet remains compact and organized without leaving empty holes in your dataset.

What You'll Need

  • A computer with Microsoft Excel installed (Windows or macOS).
  • An open workbook containing the data you wish to clean.
  • A backup of your file or an active AutoSave session, as deleting rows is a permanent action once the file is saved.

Step-by-Step

Depending on whether your rows are next to each other (contiguous) or spread across the sheet (non-contiguous), the method changes slightly. Note that menu labels may vary slightly depending on your version of Excel or operating system.

Method 1: Deleting Adjacent Rows (The Click-and-Drag Method)

  1. Locate the row numbers on the far left side of the Excel window. These are the grey boxes containing numbers (1, 2, 3, etc.).
  2. Click on the row number of the first row you wish to delete. This highlights the entire row across all columns.
  3. While holding the left mouse button, drag your cursor down (or up) to highlight all the subsequent rows you want to remove.
  4. Right-click anywhere within the highlighted row headers.
  5. Select Delete from the context menu. The rows will disappear, and the rows below them will shift up automatically.

Method 2: Deleting Non-Adjacent Rows (The Ctrl/Cmd Method)

  1. Hold down the Ctrl key on Windows or the Command (⌘) key on macOS.
  2. Click the row number of the first row you want to delete.
  3. Continue holding the key and click the row numbers of every other row you wish to remove. You will see multiple separate rows highlighted in blue.
  4. Once all target rows are selected, right-click on any one of the highlighted row numbers.
  5. Select Delete. All selected rows will be removed simultaneously.

Method 3: Deleting Rows Based on Specific Criteria (The Filter Method)

  1. Click anywhere inside your data range.
  2. Go to the Data tab on the top ribbon and click the Filter button. You will now see drop-down arrows in the header of each column.
  3. Click the drop-down arrow in the column that contains the criteria for deletion (e.g., a column named "Status" where you want to delete all rows marked "Cancelled").
  4. Uncheck Select All, then check only the box for the value you want to delete. Click OK. Excel will now hide all rows that do not match your selection.
  5. Highlight all the visible rows by clicking and dragging over the row numbers on the left.
  6. Right-click on the selected row numbers and select Delete Row. Excel will warn you that it is deleting the visible rows.
  7. Go back to the Data tab and click Filter again to turn off the filter. Your remaining data will reappear, and the filtered rows will be gone.

Method 4: Using the "Go To Special" Tool for Blank Rows

  1. Select the entire range of data or the specific columns where you suspect blank rows exist.
  2. Press F5 on your keyboard or go to the Home tab, click Find & Select, and choose Go To Special....
  3. In the dialog box that appears, select the radio button for Blanks and click OK. Excel will now highlight every empty cell within your selection.
  4. Without clicking anywhere else (to avoid losing the selection), go to the Home tab.
  5. In the Cells group, click the arrow next to Delete and select Delete Sheet Rows.

Common Mistakes

One of the most frequent errors users make is confusing "Clear Contents" with "Delete." If you select multiple rows and press the Delete key on your keyboard, Excel only clears the data inside the cells; it does not remove the rows themselves. This leaves you with large gaps of empty white space in your spreadsheet, which can break sorting functions and make the document difficult to navigate. To truly remove the row, you must use the right-click menu or the ribbon's delete command.

Another common mistake is deleting rows while a filter is active without realizing it. If you select a range of rows and hit delete while a filter is on, you might accidentally delete hidden rows that were not visible on your screen. Always double-check that you are selecting the row headers (the numbers) rather than just the cells within the rows to ensure the entire horizontal slice of the sheet is removed.

Finally, users often forget to check for formulas that reference the deleted rows. If Row 10 is deleted and a formula in Row 20 was calculating =SUM(A1:A10), that formula may return a #REF! error because the cell it was looking for no longer exists. Always review your totals and summaries after a bulk deletion.

Tips

To speed up the process of selecting large blocks of rows, use the Shift key. Click the first row number, hold Shift, and click the last row number in the range. Excel will automatically select everything in between, saving you from dragging the mouse through thousands of rows.

If you are working with a massive dataset (tens of thousands of rows), converting your data range into an official Excel Table (Ctrl + T) makes filtering and deleting much faster and more stable. Tables handle data boundaries more intelligently than standard ranges, reducing the risk of accidentally deleting data outside your intended area.

For those who frequently perform the same deletion tasks, consider using the Find and Replace tool to highlight specific text first. By searching for a term and selecting "Find All," you can then press Ctrl + A in the Find dialog to select all occurrences across the sheet, then use the Delete command from the Home tab to remove those rows.

Troubleshooting

If the Delete option is greyed out and unavailable, it is likely because your worksheet is protected. To fix this, go to the Review tab and click Unprotect Sheet. If a password was set, you will need to enter it before you can modify the structure of the rows.

If you find that deleting rows is causing your computer to freeze or Excel to stop responding, you may have too many volatile formulas or conditional formatting rules applied to the sheet. Try saving your work, closing Excel, and reopening the file. If the problem persists, try copying the data to a new workbook using Paste Values to strip away the heavy formatting before performing the deletions.

If you accidentally deleted the wrong rows, do not save the file. Immediately press Ctrl + Z (Windows) or Cmd + Z (Mac) to undo the action. If you have already saved and closed the file, you may be able to recover a previous version via File > Info > Version History if the file is stored on OneDrive or SharePoint.

Frequently Asked Questions

Can I delete multiple rows using a keyboard shortcut?

Yes. Select the rows you want to delete by using Shift + Space to select a row, then hold Shift and use the arrow keys to highlight more. Once selected, press Ctrl + Minus (-) on Windows or Cmd + Minus (-) on Mac to delete them instantly.

Will deleting rows affect my charts?

Yes, if your charts are linked to the specific cells in those rows, the data points will disappear from the chart. If the chart uses a dynamic named range or a Table, it will simply shrink to fit the remaining data.

Is there a limit to how many rows I can delete at once?

There is no specific numerical limit other than the maximum row limit of Excel (1,048,576 rows). However, deleting hundreds of thousands of rows at once can cause significant lag depending on your RAM and CPU.

How do I delete every other row?

The fastest way is to create a "helper column" next to your data. Type 1 in the first cell and 2 in the second, then drag that pattern down to the bottom. Filter the helper column for all "2s," select those visible rows, and delete them. Then, delete the helper column.

Why does my row number not shift up after deleting?

If the numbers on the left are not shifting, you likely used "Clear Contents" (the Delete key) instead of the "Delete Row" command. Ensure you are right-clicking the row header and selecting the specific Delete option.