How to Delete Blank Rows in Excel: 14 Steps (with Pictures)

Table of contents:

How to Delete Blank Rows in Excel: 14 Steps (with Pictures)
How to Delete Blank Rows in Excel: 14 Steps (with Pictures)

Video: How to Delete Blank Rows in Excel: 14 Steps (with Pictures)

Video: How to Delete Blank Rows in Excel: 14 Steps (with Pictures)
Video: Creating Easy Data Entry Forms in Excel 2024, May
Anonim

If your Excel spreadsheet is filled with a lot of blank rows, manually deleting all of them can be tedious. It's easy enough for you to delete a single line, but deleting a lot of blank lines might be quite a burden for you. Fortunately, there are several tools you can use to make the process of removing blank lines easier.

Step

Method 1 of 2: Deleting One Line

Delete Empty Rows in Excel Step 1
Delete Empty Rows in Excel Step 1

Step 1. Find the row you want to delete

If you only have a line or two that need to be deleted, you can do this quickly with your mouse.

Delete Empty Rows in Excel Step 2
Delete Empty Rows in Excel Step 2

Step 2. Right click on the row number you want to delete

The start to the end of the line will be selected when you right click on the line number.

If there are several blank rows next to each other, click and hold on the number of the first blank row, then drag the mouse until you reach the last row you want to delete. Right click on the selected region

Delete Empty Rows in Excel Step 3
Delete Empty Rows in Excel Step 3

Step 3. Select "Delete"

The blank row will be deleted, and the rows below it will move up to fill the blank space. The numbers of all rows below will be readjusted.

Method 2 of 2: Deleting Multiple Rows

Delete Empty Rows in Excel Step 4
Delete Empty Rows in Excel Step 4

Step 1. Back up the worksheet

Whenever you drastically change a worksheet, it's always a good idea to back up the worksheet first so you can restore the worksheet next time. You can do this by simply copying and pasting the worksheets into the same directory for a quick backup.

Delete Empty Rows in Excel Step 5
Delete Empty Rows in Excel Step 5

Step 2. Add a column far at the far right of the worksheet labeled "Blank"

This method works by quickly filtering out blank rows so you can be sure that you don't accidentally delete rows that contain unseen data. This method is very useful, especially for large worksheets.

Delete Empty Rows in Excel Step 6
Delete Empty Rows in Excel Step 6

Step 3. Add the blank row counter formula to the first cell in the new column

Enter the formula =COUNTBLANK(A2:X2). Replace X2 with the last column in the worksheet that is in the position before the "Blank" column. If the worksheet does not start from column A, replace A2 with the starting column of the worksheet. Make sure that the row numbers match the initial data on the worksheet.

Delete Empty Rows in Excel Step 7
Delete Empty Rows in Excel Step 7

Step 4. Apply the formula to the entire column

Click and drag the small square in the corner of the cell to apply the formula to all "Blank" columns, or double-click to apply it automatically. Each cell in the column will be filled with the number of blank cells in each row.

Delete Empty Rows in Excel Step 8
Delete Empty Rows in Excel Step 8

Step 5. Select the entire "Blank" column, then click "Sort and Filter" → "Filter"

You will see a drop-down arrow in the head cell section.

Delete Empty Rows in Excel Step 9
Delete Empty Rows in Excel Step 9

Step 6. Click the drop down arrow to open the Filter menu

The menu allows you to choose how to filter the displayed data.

Delete Empty Rows in Excel Step 10
Delete Empty Rows in Excel Step 10

Step 7. Uncheck the "Select All" box

That way, all data with different values will not be selected, and the data will be selected automatically.

Delete Empty Rows in Excel Step 11
Delete Empty Rows in Excel Step 11

Step 8. Check the boxes that have values that correspond to the number of columns in your worksheet

Click "OK". By checking the box, the rows that are displayed are only rows with blank cells in each cell. This way, you can be sure that you won't delete rows that have useful data at the same time as empty cells.

Delete Empty Rows in Excel Step 12
Delete Empty Rows in Excel Step 12

Step 9. Select all blank rows

You should only see rows with blank cells. Select all rows to delete.

Delete Empty Rows in Excel Step 13
Delete Empty Rows in Excel Step 13

Step 10. Delete the selected blank rows

After selecting all blank rows, right click on all selected rows, then select "Delete". Blank rows will be deleted from within the worksheet.

Delete Empty Rows in Excel Step 14
Delete Empty Rows in Excel Step 14

Step 11. Turn off the filter

Click the Filter button on the "Blank" row, then select "Clear Filter". Your worksheet will return to the way it was before, and all blank rows will disappear. Other data will remain in the worksheet.

Recommended: