Skip to main content

4 easy ways to quickly remove Multiple Blank or empty rows in Excel

If there are hundreds of blank rows needed to be removed through the whole worksheet or workbook, you will be frustrated. Here this tutorial will list some speedy methods to handle this job for you step by step.


Method A: Remove blank rows with the Go To Special command

Now please do as below steps to remove empty rows with Go To Special rows:

1. Select the range you want to remove blank rows, click Home tab, then in Editing group, click Find & Select > Go To Special.
doc delete blank row 2

2. In the Go To Special dialog, check Blanks option.
doc delete blank row 3

3. Click OK, now all blank cells in the selection have been selected.
doc delete blank row 4

4. Click Home tab, in the Cells group, click Delete > Delete Sheet Rows.
doc delete blank row 5

Now the rows with blank cells have been removed.
doc delete blank row 6

Note:

There is a fatal flow while you using the Go To Special command to delete blank rows:
All rows contain blank cells (even if the row contains one blank cell and other columns contain data) will be removed as below screenshot shown.

doc delete blank row 1


Do You Want To Have A Pay Raise and Much Time To Accompany With Family?

Office Tab Enhances Your Efficiency By 50% In Microsoft Office Working Right Now

Unbelievable, working at two or more documents is easier and faster than working at one.

Compareed with well-known browsers, the tabbed tool in Office Tab is more powerful and more efficient.

Reduce hundreds of mouse-clicks and keyboard typing every day for you, say goodbye to the mouse hand now.

If you usually work at multiple documents, Office Tab will be a great time-saver for you.

30-day free trial, no credit card required.

Read MoreDownload Now


Method B: Remove blank rows in range/sheet/workbook with Kutools

If you want to quickly and easily remove all blank rows in selection, active sheet, selected sheets or the whole workbook without any wrong deletion,you can try the Delete Blank Rows tool of Kutools for Excel, which can handle jobs with one click without VBA code and helper column.

However, before you using this tool, you need to free installing Kutools for Excel firstly.

Click Kutools > Delete > Delete Blank Rows, then in the sub drop-down list, choose one operation as you need.
doc delete blank row 17

Demo: Remove all the blank rows with only one click


Method C: Remove blank rows with the VBA code

1. Press Alt + F11 key to enable Microsoft Visual Basic for Applications window.

2. Click Insert > Module to create a new Module script, copy and paste below code to the script.

VBA: Remove empty rows

Sub DeleteBlankRows()
'Update 20190107
Dim Rng As Range
Dim WorkRng As Range
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
xRows = WorkRng.Rows.Count
Application.ScreenUpdating = False
For I = xRows To 1 Step -1
    If Application.WorksheetFunction.CountA(WorkRng.Rows(I)) = 0 Then
        WorkRng.Rows(I).EntireRow.Delete XlDeleteShiftDirection.xlShiftUp
    End If
Next
Application.ScreenUpdating = True
End Sub

doc delete blank row 7

3. Press F5 key to run the code, then select a range you use to remove blank rows in the popping KutoolsforExcel dialog.
doc delete blank row 8

4. Click OK. Now the empty rows in selection have been removed.
doc delete blank row 9

Note:

With this VBA code, you’d better remove blank rows in a range but not in the whole worksheet, or Microsoft Excel may get stuck.


Method D: Remove blank rows with the helper column and Filter function

1. Insert one column before your data range, take inserting Column A as instance, then type this formula =B3&C3&D3 into A3 to combine data in row3, see screenshot:

Tip: If your data across Column B3 to Column N, adjust the formula to =B3&C3&D3&E3&…&N3.
doc delete blank row 10

2. Then fill the formula to cells by dragging the auto fill handle down.
doc delete blank row 11

3. Then click Data > Filter.
doc delete blank row 12

4. Then click the Filter icon at the helper column, check Blanks option only in the drop-down list. See screenshot:
doc delete blank row 13

5. Click OK, the all blank rows have been filtered out.
doc delete blank row 14

6. Select the filtered rows, click Home > Delete > Delete Sheet Rows to remove the blank rows.
doc delete blank row 15

7. Then click Data > Filter again to disable Filter function.
doc delete blank row 16

Note:

Compare to method A and method C, this method can exactly remove blank rows and easy-to-handle for every Excel users. However, if there are dozens of columns in your data, this method will be a little tedious.


Relative operation: Insert blank rows in every other row

Maybe in some times, you want to insert blank rows in every other row of a range as below screenshot shown:
doc delete blank row 18

In this case, you can apply the Insert Blank Rows & Columns utility of Kutools for Excel to quickly handle this job.

1. Select the range you want to insert blank rows or columns in every other row, then click Kutools > Insert > Insert Blank Rows & Columns.
doc delete blank row 19

2. In the Insert Blank Rows & Columns dialog, check Blank rows or Blank columns option as you need in Insert type section, then, in Options section, specify the Interval of and Rows/Columns.
doc delete blank row 20

3. Click Ok, blank rows have been inserted in every other row of the selection.

Demo: Insert Blank rows & columns


Download sample file

sampleClick to download sample file

Best Office Productivity Tools

Supercharge Your Spreadsheets: Experience Efficiency Like Never Before with Kutools for Excel

Popular Features: Find/Highlight/Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns     Move Columns   |   Unhide Columns   |   Compare Columns to Select Same & Different Cells ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolset12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   Many More...

Kutools for Excel boasts over 300 features, ensuring that what you need is just a click away...

Supports Office/Excel 2007-2021 & newer, including 365   |   Available in 44 languages   |   Enjoy a full-featured 30-day free trial.

kte tab 201905


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Comments (54)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
excelente me sirvio el punto uno para 40000 registros en 1 seg
This comment was minimized by the moderator on the site
Great!!! This helps a lot.
This comment was minimized by the moderator on the site
VERY NICE, THANKS
This comment was minimized by the moderator on the site
:lol: Good to share! Thank you!
This comment was minimized by the moderator on the site
Very Helpful :-) it helped me to reconcile big report.
This comment was minimized by the moderator on the site
Guys I recently had this issue. I realised that the F5 special blanks wouldn't work because some of my columns had merged data sharing some rows... I just selected the columns needed and make sure the merge button was unselected. From there, the F5 special blanks select worked! Hope it helps someone.
This comment was minimized by the moderator on the site
This is simple VBA code to delete the entire rows based on particular column:- Sub DeleletBlankrows() Range("A1:A10000").SpecialCells(xlCellTypeBlanks).EntireRow.Delete End Sub
This comment was minimized by the moderator on the site
only usefull if you want to delete ANY row with ONE blank cell, not delete rows with ALL cells being blank. Isn't this titled "How to remove blank or empty rows in Excel?" not "How to remove rows with blank cells?"
This comment was minimized by the moderator on the site
Ah, no, actually. The whole purpose of the sort & filter routine I demonstrated is to take out ONLY rows that are entirely blank across. The inquirer did not want any row removed that had some data in it... only rows that were completely blank. And the problem with the BLANK command was that it took out ANY rows entirely that had even one blank cell, erasing the rest of the data on the same row. Try it. It does the opposite of what you stated in your first sentence.... it takes out only entire blank rows, and leaves ALL the remaining data intact.
This comment was minimized by the moderator on the site
When you select multiple columns, then go to Find & Select -> Go To Special and choose blanks, it will highlight every blank cell within that range. If you then proceed to Delete -> Delete Sheet Rows, it will delete all rows that had a blank cell selected. Go try it.
This comment was minimized by the moderator on the site
oh bro thankyou very very much .....
This comment was minimized by the moderator on the site
thanks a lot, it saved lot of time
This comment was minimized by the moderator on the site
Thank You very much !!! It's really great help me :D
This comment was minimized by the moderator on the site
This really helped me in my testing activity. Thank you very much
This comment was minimized by the moderator on the site
THANK YOU!! That was really helpful
This comment was minimized by the moderator on the site
I have a spreadsheet which list 200 different problems in row 2, in row 1 there is an index, 1.1, 1.2, 1.3, 1.4, 2.1, 2.2 etc etc. I then have in row 3 4 and 5 the choice of, no action, low action and high action. I review the problems and enter an "x" in the appropriate column. I want to make a condensed list of only the items with an "x" in the high action column but I also need to keep the complete spreadsheet so can just filter. is there a reference/index/lookup type function I can use?
This comment was minimized by the moderator on the site
it very nice is use full for me
This comment was minimized by the moderator on the site
It doesnt work for me. I am using EXCEL 2013 and have this situation : my data are in range A1 to P2373. When I click Ctrl-End I come to cell AW7335. So I have all blank rows from 2374 to 7335. So, what for is Ctrl-End? I can upload my file so anybody can delete blank rows for me.
This comment was minimized by the moderator on the site
OK .
This comment was minimized by the moderator on the site
ok. i can try [quote]It doesnt work for me. I am using EXCEL 2013 and have this situation : my data are in range A1 to P2373. When I click Ctrl-End I come to cell AW7335. So I have all blank rows from 2374 to 7335. So, what for is Ctrl-End? I can upload my file so anybody can delete blank rows for me.By Darko Loncar[/quote] Ashwani
This comment was minimized by the moderator on the site
very easy way if you want to delete blank rows. go to first column insert a new column and fill the series, then go to filter option and now in next column select blank. its the very easy way to remove or delete blank rows
This comment was minimized by the moderator on the site
Thank you So much very useful
This comment was minimized by the moderator on the site
thank you it helped me
This comment was minimized by the moderator on the site
Great tips, so helpful
This comment was minimized by the moderator on the site
Hi, If i follow above the procedure, getting error message as 'Selection is too large'. Then how to remove empty cells for large list.
This comment was minimized by the moderator on the site
[quote]Hi, If i follow above the procedure, getting error message as 'Selection is too large'. Then how to remove empty cells for large list.By Karthik[/quote] The first thing I would try is selecting half the database, or a quarter. If that works, repeat on remaining sections. If it does not, see if your computer has enough RAM available for processing such a large chunk of data. Without actually seeing the file, it's hard to say.
This comment was minimized by the moderator on the site
Its awsome it was very help full for me thanks a lot.
This comment was minimized by the moderator on the site
great suggestion............... thanks :lol:
This comment was minimized by the moderator on the site
W. Halyn: your solution worked perfectly for me. Using Excel 2007 and 2013.
This comment was minimized by the moderator on the site
Deleting the blank rows using the special command "Blank" doesnt work correctly in case i have multiple rows and multiple columns with some blank columns in between.The operation is deleting the rows with data and providuing the unexpected result. Example : Columns : A to F having 5 rows of data as follows . When we do the blank operation we get unexpected reults (result doesn't show 5 rows..!!) A B C D E F Check1 Check2 Check3 Check4 Check6 Check7 Check1 Check2 Check3 Check4 Check7 Check1 Check2 Check3 Check4 Check7 Check1 Check2 Check3 Check4 Check6 Check7 Check1 Check2 Check3 Check4 Check6 Check7 any idea , why?
This comment was minimized by the moderator on the site
Nice tutorial --helped me greatly! Thanks!
This comment was minimized by the moderator on the site
Can you turn all of this into a macro that could be executed at the bottom of a spreadsheet when the data is fished being collected?
This comment was minimized by the moderator on the site
I tried this but when I used Kutools function: delete tools > In Selected Range I get message: "Successfully deleted 0 rows" and nothing changes.
This comment was minimized by the moderator on the site
Instead of using Kutools, try the method I described above. It uses plain old Excel, using the features available in all recent versions. (That's if you're trying to delete ONLY all-blank rows, not partially-blank ones.)
This comment was minimized by the moderator on the site
can you just do all of this with a macro to be executed at the bottom of a sheet once all the data is collected and analyzed? I am doing an "IF/THEN" analysis for some folks and sin=ce that works automatically the above solution, while elegant, may be beyond their capacity(maybe mine too ...) So, once the data is completed I was looking to point then to a cell and click "go" and the blank rows would be eliminated ..... any ideas?
This comment was minimized by the moderator on the site
It would take about ten times longer to write such a macro (which would have to auto-calc total columns, total vertical fill in ALL columns, then calc which column to do the counts in, then execute the operation, etc.) than to just do the steps. Really, the whole operation takes less than two minutes if you read over the instructions step by step. Maybe try displaying steps side-by-side with the work you're doing (or print the steps out, then follow along). Once you see it work the first time, you'll feel a lot more comfortable with it, and you'll definitely be wiser in the operation of the Filter function. Re the folks you're doing the work for, just bring them the results; they probably don't care "how", they just wanna know "what". A quickly-cleaned-up database will look more impressive than watching how it got that way, especially if you're just learning how. Give it a practice run or two. Oh, and make a backup copy, of course, just in case Undo fails or something while trying it out. (Mind you, at your first query, I envisioned a macro that would have to work in all environments. What YOU would find is that once you've got a fixed-structure data set going, you'll know exactly how the procedure works and could just record steps into a macro of your own, just for the speed factor.)
This comment was minimized by the moderator on the site
I can't delete. I am using Excel 2010 and I want to delete blank rows from A147533 to (after ctrl - End) T448140. What ever i did all rows stay undeleted in my spreadsheet. After ctrl-End I am again at T448140.
This comment was minimized by the moderator on the site
Darko. Your first step in the extra column (which should be "U" column for the filtering), the formula in U147533 should read (judging from your supplied data) =COUNTA(A147533:T147533) and then COPY that down to row 448140. You should get a column of numbers, SOME of which will be zeroes. Then click on the "U" letter at the top of the column (in the ruler margin) to highlight the entire column. Then select the Filter function (Data tab, Filter), click on the little pull-down triangle, and delete all the checkmark choices except the one beside the "0" choice (OR the "Blanks" choice, if visible). Click on OK. You should then see only rows that have zero data in them. Then as described previously, with the Filter function still active, highlight the rows from 147533 to 448140 that are containing those selected row numbers (by clicking/dragging down the left ruler margin OR clicking top one and shift-clicking last one), and DELETE them. (Right-click, Delete). When they vanish, turn the Filter function off and all other data will reappear. Good luck!
This comment was minimized by the moderator on the site
It doesnt work for me. Now I am using EXCEL 2013 and have this situation : my data are in range A1 to AF52222. When I click Ctrl-End I come to cell AG56367. So I have all blank rows from 52223 to 56367. After COUNTA(a2;af2) copied to row 56367 and highlighting rows 52223 to 56376 on Right-click EXCEL offers DELETE ROW and I deleted this rows. After that I turn off Filter: with Ctrl-Home I come to cell A1, with Crtl-End I come to cell AG56367. So all was the same
This comment was minimized by the moderator on the site
This is Cool!!! @ # W. Halyn. Thank You.
This comment was minimized by the moderator on the site
The visual basic route was new to me and did the trick. Many thanks!
This comment was minimized by the moderator on the site
You've just saved my life. :-)
This comment was minimized by the moderator on the site
This is awesome. Thank you very very very much Ned
This comment was minimized by the moderator on the site
Thank you very much for the advice. It was great.
This comment was minimized by the moderator on the site
"Blank rows deletion" is awkward by most methods. I had a set of three columns of data. The first column had title lines every five or six rows. The remaining two columns had random data at various rows all the way down. Sometimes a row in column two was blank, but the cell beside it in column three had data. Or vice versa. Only SOME of the rows (1,242 in this case) were blank all the way across. The PROBLEM was that selecting BLANK cells would DELETE ENTIRE ROWS that had data in other columns. I found a perfect solution. I created a fourth column in which I used the COUNTA function. The formula went =COUNTA(A1:C1) and then copied it down thru several thousand rows of data. So, my D column had a stack of 3s,2s,1s & 0s. Then I used the FILTER command on Column D to only show the rows that equalled 0. The result was a sheet of empty cells with 0s in column D... ONLY the totally blank rows had been selected! Then I clicked and dragged down the left-side ROW NUMBERS (those in the margin) to select those rows, right-clicked and selected DELETE. They all vanished. When I turned OFF the filter, I had a perfect set of cleaned data. In less than a minute! Done! = = = = = = = That was so easy, I then got fancy and changed the COUNTA function to only select items from the A column that had data in them. (Those rows happened to be "Title" rows for clumps of data below them.) It read =COUNTA(A1) and copied IT down the D column to the end. The result was a column of 1s and 0s. When I turned FILTER on again and selected for "1", only the Title rows appeared. I selected those rows and BOLDed them. Then turned the Filter off, and again, perfect formatting down thru thousands of lines. LOVE THAT FILTER FUNCTION!
This comment was minimized by the moderator on the site
Great some time Users provide more practical solution than developers and experts
This comment was minimized by the moderator on the site
great help this filter function is best solution if we think and use it
This comment was minimized by the moderator on the site
Excellent - perfect simple solution.
This comment was minimized by the moderator on the site
Perfect solution, it just worked out seamlessly. Thanks :-)
This comment was minimized by the moderator on the site
This is genius - thank you!
This comment was minimized by the moderator on the site
Great, Thank you very much
This comment was minimized by the moderator on the site
This is a great solution, thanks!
This comment was minimized by the moderator on the site
When I do this, the text gets deleted. Help please.
This comment was minimized by the moderator on the site
Don't know if you've solved the issue about additional text getting deleted, but I've posted a solution to what might be your problem. It's listed below your question.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations