#1   Report Post  
Charles
 
Posts: n/a
Default Delete Blank Lines

Hi All:

I have a file with many blank lines. I don't want to delete them by hands
because this is a huge file. Is there any way I can delete these blank
lines wisely? Any advice and suggestions will be highly appreciated.

Thanks.


Charles


  #2   Report Post  
Ken Hudson
 
Posts: n/a
Default

Charles,
How about sorting the file and then "mass" highlighting and deleting them?
--
Ken Hudson


"Charles" wrote:

Hi All:

I have a file with many blank lines. I don't want to delete them by hands
because this is a huge file. Is there any way I can delete these blank
lines wisely? Any advice and suggestions will be highly appreciated.

Thanks.


Charles


  #3   Report Post  
fiona nelson
 
Posts: n/a
Default

Charles,

As well as what Ken suggests, if your data is ordered specifically for
purpose (ie sorting would destroy that ordering), you can use autofilters for
the same result.

Highlight your first row, go to Data/Filter/Autofilter, this forces excel to
use the first row as the heading row, use one of the arrows that appear in
your cells and choose "blank". All the rows in that column that are blank
will be displayed. You can then choose all of these rows and delete them
without ruining the ordering of your data.

Be Warned: Filtering needs to have at least one column "full", so if you
have entire blank lines, add a column that has nonsense (such as a
consecutive number) in it that runs the entire length of the data field, and
use that as the full column. This will allow the filtering to work properly.

To display your data again go to Data/Filter/Show All. Voila - all your
data is displayed again. Before I got comfortable with using fitlers and
deleting a whole heap of things, I would save a copy of my spreadsheet just
in case!

HTH
Fiona Nelson

"Charles" wrote:

Hi All:

I have a file with many blank lines. I don't want to delete them by hands
because this is a huge file. Is there any way I can delete these blank
lines wisely? Any advice and suggestions will be highly appreciated.

Thanks.


Charles


  #4   Report Post  
Charles
 
Posts: n/a
Default

Hi Ken and Fiona:
Thank you very much. Both ways are working well. Thanks for your help
again.

Charles


"fiona nelson" wrote:

Charles,

As well as what Ken suggests, if your data is ordered specifically for
purpose (ie sorting would destroy that ordering), you can use autofilters for
the same result.

Highlight your first row, go to Data/Filter/Autofilter, this forces excel to
use the first row as the heading row, use one of the arrows that appear in
your cells and choose "blank". All the rows in that column that are blank
will be displayed. You can then choose all of these rows and delete them
without ruining the ordering of your data.

Be Warned: Filtering needs to have at least one column "full", so if you
have entire blank lines, add a column that has nonsense (such as a
consecutive number) in it that runs the entire length of the data field, and
use that as the full column. This will allow the filtering to work properly.

To display your data again go to Data/Filter/Show All. Voila - all your
data is displayed again. Before I got comfortable with using fitlers and
deleting a whole heap of things, I would save a copy of my spreadsheet just
in case!

HTH
Fiona Nelson

"Charles" wrote:

Hi All:

I have a file with many blank lines. I don't want to delete them by hands
because this is a huge file. Is there any way I can delete these blank
lines wisely? Any advice and suggestions will be highly appreciated.

Thanks.


Charles


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to delete blank rows John Mansfield Excel Discussion (Misc queries) 3 April 27th 05 11:48 PM
?? Extra blank lines in 'address' cell after exporting to Excel Hadyn Pkok Excel Discussion (Misc queries) 4 April 15th 05 11:34 PM
how do I print grid lines for blank rows gailrolfe Excel Discussion (Misc queries) 3 February 25th 05 05:22 AM
how do I print grid lines for blank rows calrolfe Excel Discussion (Misc queries) 0 February 24th 05 07:33 PM
How do I delete filtered lines in Excel 2000? Nicola H Excel Worksheet Functions 1 February 8th 05 03:47 PM


All times are GMT +1. The time now is 05:36 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"