Forum Discussion

LisaR1959's avatar
LisaR1959
Copper Contributor
Mar 19, 2021

Delete Empty Rows Quick?

I have a worksheet with thousands of rows and a blank row between each row with data.  Is there a way to remove all those blank rows quickly?  I need to sort by a column and I can't right now.  I assume that is because of the blank rows.

 

  • LisaR1959 

    If without shortcuts - select any column within range, on ribbon Find&Select->Go to Special->Blanks->Ok

    All blank cells will be selected. With that Cells->Delete->Delete Sheet Rows

  • LisaR1959 

    Select the entire sheet (or its used range), then use the Tab key to move to the column you want to sort on, if necessary. You should then be able to sort the sheet, causing the empty rows to move to the bottom.

  • JimGarrison's avatar
    JimGarrison
    Copper Contributor

    LisaR1959 

    Old post I know but this answer may be useful to someone.

    Easiest way:
    Select all cells with data in them - exclude headers if you have them.
    On the ribbon bar (Home tab), select Sort & Filter
    Select Sort A to Z
    Done!  All the blank rows have been moved below the data.

     

    • SergeiBaklan's avatar
      SergeiBaklan
      MVP

      JimGarrison 

      With that you loss initial rows order. If do such way it's more reliable to add helper column with sequential numbers from top to down, sort on any other columns, remove rows with blanks from down, sort again on helper column, remove helper column.

      IMHO, on the range F5->Special->Blanks->Delete Sheet rows not very complex.

  • Sandras1's avatar
    Sandras1
    Copper Contributor

    To quickly delete empty rows in Excel, select your data range (Ctrl + A), press F5 or Ctrl + G, click "Special," and choose "Blanks." This will highlight all empty cells. Right-click one of the highlighted cells, select "Delete," then choose "Entire Row" and click "OK" to remove all empty rows. And for activate Windows 11 pro , Microsoft partners like S2keys

    • sbernard1550's avatar
      sbernard1550
      Copper Contributor

      Hi Sandra, thanks for this. The problem i have is that in my data table, I also have a single cell that is blank on another row. So when I do 'go to special/blank/delete entire row', it removes the blank row that i want removed, but ALSO removes the row that has 1 blank cell. It removes that whole row as well, which is not what I want. Would you know why it does that ? Perhaps you can try yourself to see ?  Thanks  

  • Sandras1's avatar
    Sandras1
    Copper Contributor

    To quickly delete empty rows in Excel, select your data range (Ctrl + A), press F5 or Ctrl + G, click "Special," and choose "Blanks." This will highlight all empty cells. Right-click one of the highlighted cells, select "Delete," then choose "Entire Row" and click "OK" to remove all empty rows. And for activate Windows 11 pro , Microsoft partners like S2keys

Resources