Remove blank rows

halcyoneus

Board Regular
Joined
Mar 26, 2003
Messages
147
Got a quick (and probably easy for most of you) question.

I have a spreadsheet that was imported into Excel. It's a couple thousand rows long, but there are many blank rows through out. is there an easy way to remove all these, other then manually going through each row?

~Hal
 

Some videos you may like

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

excelthong

Active Member
Joined
Jul 13, 2006
Messages
313
not sure is this a quick way but you can try this
select the column
press F5
Go to specials
select blank

by doing this you will highlight the blank row
then right click the blank row and select delete


hope this may help
 

dave3009

Well-known Member
Joined
Jun 23, 2006
Messages
7,002
Office Version
  1. 365
  2. 2016
Another alternative might be to use Autofilter.

Highlight column headings go to Data>>Filter>>Autofilter

Then select a column where it would only blank if the whole row was blank (perhaps an ID or date or something)

Filter the (Blanks) then Select All, Right Click then delete.
 

halcyoneus

Board Regular
Joined
Mar 26, 2003
Messages
147
Actually neither worked. When I first read excelthong's reply, I thought for sure it was going to work. When I do that, it goes to the first blank cell, even after selecting the whole row.

Dave3009, your way did not filter out the blank rows.

~Hal
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,201
Got a quick (and probably easy for most of you) question.

I have a spreadsheet that was imported into Excel. It's a couple thousand rows long, but there are many blank rows through out. is there an easy way to remove all these, other then manually going through each row?

~Hal

Run Data|Filter|Advanced Filter on the data...
Book2
ABCDEFGHIJ
1XYZXYZ
21w0.2TRUE1w0.2
3 30.7
430.7x0.4
5x0.4
6
Sheet1


with $G$1:$G$2 as the Criteria range, where

G1 is empty

G2:

=A2&B2&C2<>""
 

Watch MrExcel Video

Forum statistics

Threads
1,122,554
Messages
5,596,814
Members
414,104
Latest member
imamalidadashzada

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
Top