PC Review


Reply
Thread Tools Rate Thread

Deleting blank lines between data lines

 
 
Phenom
Guest
Posts: n/a
 
      21st Nov 2003

Hi Everyone!

I have a worksheet with about 2,000 lines of data. The problem is tha
every other line is blank. I cannot sort here because some
information is carried over to the third line.

1 data 1a
2 blank -->
3 data 1b
4 blank -->
5 data 2

How can I eliminate just the blank lines and maintain the order
that the data list is currently in?

Thanks! :

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

 
Reply With Quote
 
 
 
 
Dan E
Guest
Posts: n/a
 
      21st Nov 2003
Phenom,

One method that may help you.

Say you had data in rows 1, 3, 5, 7 etc...

In a blank column ie Z put the following
Z1 = 1, Z3 = 2
Select Cells Z1:Z4, and drag down. You should get
Z5 = 3, Z7 = 4, Z9 = 5, etc...

Select all of your data including your new column
From the menu select Data -> Sort
in the Sort By column choose Column Z and Ascending
Hit OK

Delete Column Z

At this point you may want to scroll to the bottom of your
data select all of the blank rows from that point up and
choose Edit -> Delete. Even though they contain no data
excel may still think their part of the used range.

Dan E

"Phenom" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
>
> Hi Everyone!
>
> I have a worksheet with about 2,000 lines of data. The problem is that
> every other line is blank. I cannot sort here because some
> information is carried over to the third line.
>
> 1 data 1a
> 2 blank -->
> 3 data 1b
> 4 blank -->
> 5 data 2
>
> How can I eliminate just the blank lines and maintain the order
> that the data list is currently in?
>
> Thanks!
>
>
> ------------------------------------------------
> ~~ Message posted from http://www.ExcelTip.com/
> ~~View and post usenet messages directly from http://www.ExcelForum.com/
>



 
Reply With Quote
 
Peo Sjoblom
Guest
Posts: n/a
 
      21st Nov 2003
Select the range, press F5, select special and blanks, do edit>delete and
select entire row

--

Regards,

Peo Sjoblom


"Phenom" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> Hi Everyone!
>
> I have a worksheet with about 2,000 lines of data. The problem is that
> every other line is blank. I cannot sort here because some
> information is carried over to the third line.
>
> 1 data 1a
> 2 blank -->
> 3 data 1b
> 4 blank -->
> 5 data 2
>
> How can I eliminate just the blank lines and maintain the order
> that the data list is currently in?
>
> Thanks!
>
>
> ------------------------------------------------
> ~~ Message posted from http://www.ExcelTip.com/
> ~~View and post usenet messages directly from http://www.ExcelForum.com/
>



 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      21st Nov 2003
try this
Sub delblanks()
With Selection
..SpecialCells(xlBlanks).EntireRow.Delete
End With
End Sub

--
Don Guillett
SalesAid Software
(E-Mail Removed)
"Phenom" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> Hi Everyone!
>
> I have a worksheet with about 2,000 lines of data. The problem is that
> every other line is blank. I cannot sort here because some
> information is carried over to the third line.
>
> 1 data 1a
> 2 blank -->
> 3 data 1b
> 4 blank -->
> 5 data 2
>
> How can I eliminate just the blank lines and maintain the order
> that the data list is currently in?
>
> Thanks!
>
>
> ------------------------------------------------
> ~~ Message posted from http://www.ExcelTip.com/
> ~~View and post usenet messages directly from http://www.ExcelForum.com/
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting Blank lines with VBA =?Utf-8?B?VmV4ZWRGaXN0?= Microsoft Excel Discussion 4 5th Apr 2007 06:49 PM
Outlook 03 puts extra blank lines between Signature Lines when Rep =?Utf-8?B?RGF3ZWI=?= Microsoft Outlook Discussion 0 4th Apr 2005 05:41 PM
Creating blank lines in a form with labels underneath lines =?Utf-8?B?RG9ubmE=?= Microsoft Word Document Management 1 5th Dec 2003 04:28 AM
Re: Deleting blank lines in a range Alan Beban Microsoft Excel Programming 2 9th Sep 2003 07:33 PM
Re: Deleting blank lines in a range David McRitchie Microsoft Excel Programming 0 9th Sep 2003 06:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:57 PM.