eliminating blank lines from a page

drcvlastra

New Member
Joined
Sep 10, 2006
Messages
1
I have an excel table that has plenty of blank lines included in it. How can I get rid of them?
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
I have an excel table that has plenty of blank lines included in it. How can I get rid of them?
drcvlastra

Welcome to the Mr Excel board!

Here are a couple of suggestions.

If the table is like the green table (that is, the rows are either completely empty or completely full) then try this:
1. Select A1:C8
2. Data|Filter|AutoFilter
3. Click on any of the little AutoFilter drop-down arrows and choose (Blanks) from near the bottom of the list.
4. Click in the top visible blank row and drag down to the bottom blank row.
5. Edit|Delete Row|OK
6. Data|Filter|AutoFilter to remove the filter mechanism.
You should be left with the non-blank rows.

If the table is like the blue table (that is, rows may be completely empty, completely full or partially full and you want to delete the rows that are completely empty) then try this:
1. Add a 'helper' column. Formula in D12 (copied down) is: =IF(COUNTA(A12:C12)=0,"Del","")
2. Select D11:D17
3. Data|Filter|AutoFilter
4. Filter column D to "Del" from the drop-down.
5. Again, click & Drag to select all visible rows.
6. Edit|Delete Row|OK
7. Data|Filter|AutoFilter to remove the filter mechanism.
You should be left with the required rows.

If neither of these is what you want, post back with more details.
Mr Excel.xls
ABCDE
1NameAgeTeam
2Sue15A
3
4Don18B
5Ann16A
6
7Ken15A
8Jen16A
9
10
11NameAgeTeamDelete?
12Sue15A 
13Del
14DonB 
15Ann16A 
16Del
17Ken15A 
18
Blank Lines

1.
 
Upvote 0

Forum statistics

Threads
1,224,271
Messages
6,177,609
Members
452,785
Latest member
3110vba

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top