How you can Delete Empty Rows in Excel In 2 Easy Steps


In most spreadsheets, clean rows are undesirable. Microsoft Excel makes use of blanks to find out knowledge ranges, and a clean row within the mistaken place will inhibit many built-in options. Happily, there’s a straightforward approach to take away clean rows from an information vary in Excel — however this system can probably destroy knowledge, so that you have to be cautious.

On this Excel tutorial, I’ll present you a fast and straightforward approach to delete clean cells, which you would possibly consider as rows, in the midst of a dataset with out by chance deleting adjoining knowledge. All through the article, I exploit the time period “row” to explain adjoining clean cells inside the dataset.

I exploit Microsoft 365 on a Home windows 11 64-bit system, however you should utilize earlier variations. Excel for the online helps this straightforward approach.

Step 1: Choose clean cells in Excel

When you understand that your dataset has clean rows (cells), you’ll most likely wish to delete them. Step one is to pick the clean rows, which is a tedious course of if accomplished manually. Happily, you don’t need to.

To pick out all of the clean rows in a dataset:

  1. Choose the information vary A3:E14 — or your personal knowledge vary for those who’re utilizing a special dataset.
  2. Press F5.
  3. Within the ensuing Go To dialog field, click on Particular.
  4. Click on the Blanks possibility, after which click on OK. Doing so selects the clean cells within the chosen vary. On this case, that’s A7:E7 and A10:E10.
Select the blank cells.
Choose the clean cells. (Screenshot: TechRepublic)

Excel’s Go To characteristic enables you to shortly choose all of the clean rows within the choice. Now, you’re able to delete these rows. Don’t do something to deselect the choice.

SEE: Discover these Excel suggestions each consumer ought to grasp.

Step 2: Delete clean rows in Excel

Now, you’re able to delete the chosen cells. Till now, I’ve used the time period rows, however deleting the precise rows will delete all the pieces in that whole row, not solely the chosen vary. This consists of knowledge that is perhaps off-screen.

To delete the chosen cells — not rows — click on Delete (not the dropdown) within the Cells group on the Dwelling tab. This could delete solely the chosen cells. However for those who don’t get the specified outcomes, press Ctrl + Z to undo the delete, after which strive the next:

  1. With the clean rows 7 and 10 nonetheless chosen, click on the Delete dropdown within the Cells group on the Dwelling tab, after which select Delete Cells.
  2. Within the subsequent dialog, click on Shift Cells Up.
You want to delete cells, not rows. 
You wish to delete cells, not rows. (Screenshot: TechRepublic)
  1. Click on OK.

Excel will then delete the clean cells from the chosen knowledge vary.

The blank cells in rows 7 and 10 are gone. 
The clean cells in rows 7 and 10 are gone. (Screenshot: TechRepublic)

SEE: Discover ways to parse time values in Microsoft Excel.

Selecting Delete Cells removes solely the clean cells within the chosen vary. If you happen to select Delete Sheet Rows in step two, you could possibly probably destroy knowledge to the proper. Select rigorously when utilizing this selection to delete clean rows once you actually wish to delete solely the clean cells. It’s straightforward to consider rows and select the mistaken possibility.

In such a small dataset, you could possibly simply delete every row individually, however think about doing so when you have dozens and even lots of of information to evaluation for clean cells. This technique will prevent effort and time, eradicating the potential for lacking blanks.

How you can keep away from catastrophe when deleting rows in Excel

Deleting rows, whether or not clean or not, may be hazardous. As an example, when you have knowledge off-screen and out of sight, you received’t understand you’re deleting it once you take away the empty cells or rows proper earlier than you. Additionally, be careful for hidden rows that may very well be inadvertently deleted.

As well as, many built-in options don’t work as anticipated when encountering clean rows. Let’s suppose you wish to convert the instance dataset to a Desk object, so that you click on contained in the dataset and press Ctrl + T. It simply so occurs that you simply click on D5, anticipating Excel to pick the total dataset. Nevertheless, it received’t. Excel selects the contiguous rows adjoining to the clicked cell, D5, which occurs to be A3:E6 — a partial choice.

The blank cells in rows 7 and 10 make it impossible to quickly select this whole data set. 
The clean cells in rows 7 and 10 make it unimaginable to shortly choose this entire knowledge set. (Screenshot: TechRepublic)

If you happen to’re lucky, you’ll discover that Excel doesn’t specify the complete knowledge vary. If you happen to miss out on, you received’t get the outcomes you anticipate when utilizing Desk options. You could delete clean rows to make use of a lot of Excel’s built-in options.

Can I additionally use keyboard shortcuts to delete clean rows in Excel?

Happily, there’s a approach to delete clean rows utilizing a mixture of keyboard shortcuts. As an alternative of following the steps above, you are able to do a number of the work along with your keyboard. Right here’s find out how to do it:

  1. Use Ctrl + A to pick all knowledge to keep away from manually highlighting the vary containing clean rows.
  2. Open the Go To dialog utilizing Ctrl + G, then hit Alt + S to pick Particular.
  3. You could choose Blanks and press Enter within the Go To Particular dialog field.
  4. Press Ctrl + – with the clean cells highlighted to attain the required deletion.

Is utilizing filters one other good approach to delete clean rows in Excel?

Filters are one other approach to obtain the identical intention in Excel. Right here is find out how to use filters to delete clean rows:

  1. Click on the Filter dropdown arrow in a column of your dataset the place some rows are clean.
  2. Within the Filter menu, deselect all choices by unchecking Choose All, then test solely Blanks.
  3. Click on OK to use the Filter, displaying solely rows with clean cells in that column.
  4. Spotlight the rows by dragging your mouse down or urgent Shift and choosing rows.
  5. Proper-click on any chosen row and select Delete Row, or press Ctrl + 1 and select Complete Row.

You’ll want to select a column the place a clean cell means the complete row is irrelevant. As at all times, rule of thumb is to again up your knowledge by saving a replica first earlier than deleting rows.

Leave a Reply

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