#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default deleting blank rorws

I imported some information from a web page and when it loaded it has huge
amounts of blank rows, how can I delete these without doing each small bunch
of rows individually. Ex: I have the company name and then 12 rows later I
get the phone number then five rows later there is the address. I might add
that it is not uniform in any way now of the blanks row amounts are the same.
All total there should be 101 company entries that should take up about 404
rows, but instead it takes up 19822. Oh and all this information is only in
column A (which is OK but most of your help answers say I need more than one
column of data). Please help, I know there has to be an easier way. I hope
that you understand this as it is hard to explain.
--
VRaybandb
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default deleting blank rorws

Try this small macro:

Sub rowkiller()
n = Cells(Rows.Count, "A").End(xlUp).Row
For i = n To 1 Step -1
If Cells(i, 1).Value = "" Then
Cells(i, 1).EntireRow.Delete
End If
Next
End Sub

--
Gary''s Student - gsnu200819


"VRaybandb" wrote:

I imported some information from a web page and when it loaded it has huge
amounts of blank rows, how can I delete these without doing each small bunch
of rows individually. Ex: I have the company name and then 12 rows later I
get the phone number then five rows later there is the address. I might add
that it is not uniform in any way now of the blanks row amounts are the same.
All total there should be 101 company entries that should take up about 404
rows, but instead it takes up 19822. Oh and all this information is only in
column A (which is OK but most of your help answers say I need more than one
column of data). Please help, I know there has to be an easier way. I hope
that you understand this as it is hard to explain.
--
VRaybandb

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default deleting blank rorws

OK Gary I am stupid, I am not sure where I am suppose to insert the macro?
Can you give me the "how to delete rows for dummies"?
Thanks
--
VRaybandb


"Gary''s Student" wrote:

Try this small macro:

Sub rowkiller()
n = Cells(Rows.Count, "A").End(xlUp).Row
For i = n To 1 Step -1
If Cells(i, 1).Value = "" Then
Cells(i, 1).EntireRow.Delete
End If
Next
End Sub

--
Gary''s Student - gsnu200819


"VRaybandb" wrote:

I imported some information from a web page and when it loaded it has huge
amounts of blank rows, how can I delete these without doing each small bunch
of rows individually. Ex: I have the company name and then 12 rows later I
get the phone number then five rows later there is the address. I might add
that it is not uniform in any way now of the blanks row amounts are the same.
All total there should be 101 company entries that should take up about 404
rows, but instead it takes up 19822. Oh and all this information is only in
column A (which is OK but most of your help answers say I need more than one
column of data). Please help, I know there has to be an easier way. I hope
that you understand this as it is hard to explain.
--
VRaybandb

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default deleting blank rorws

an option may be to use filters, then set the filter to blank rows and delete
them all that way. Select all the data by clicking on the block above 1 and
to the left of A. Then select data/Filter, then click on the pull-down and
select "blank rows". You can then just delet ALL the rows that are left, and
these will be the blank rows you want to get rid of

"VRaybandb" wrote:

I imported some information from a web page and when it loaded it has huge
amounts of blank rows, how can I delete these without doing each small bunch
of rows individually. Ex: I have the company name and then 12 rows later I
get the phone number then five rows later there is the address. I might add
that it is not uniform in any way now of the blanks row amounts are the same.
All total there should be 101 company entries that should take up about 404
rows, but instead it takes up 19822. Oh and all this information is only in
column A (which is OK but most of your help answers say I need more than one
column of data). Please help, I know there has to be an easier way. I hope
that you understand this as it is hard to explain.
--
VRaybandb

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default deleting blank rorws

Select column A then F5SpecialBlanks.

EditDeleteEntire Row.


Gord Dibben MS Excel MVP

On Tue, 9 Dec 2008 11:25:01 -0800, VRaybandb
wrote:

I imported some information from a web page and when it loaded it has huge
amounts of blank rows, how can I delete these without doing each small bunch
of rows individually. Ex: I have the company name and then 12 rows later I
get the phone number then five rows later there is the address. I might add
that it is not uniform in any way now of the blanks row amounts are the same.
All total there should be 101 company entries that should take up about 404
rows, but instead it takes up 19822. Oh and all this information is only in
column A (which is OK but most of your help answers say I need more than one
column of data). Please help, I know there has to be an easier way. I hope
that you understand this as it is hard to explain.




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default deleting blank rorws

Thank you so much, that was so easy and I just knew that there had to be an
EASY way and this was way too easy.
Thank you soooooo much,
--
VRaybandb


"Gord Dibben" wrote:

Select column A then F5SpecialBlanks.

EditDeleteEntire Row.


Gord Dibben MS Excel MVP

On Tue, 9 Dec 2008 11:25:01 -0800, VRaybandb
wrote:

I imported some information from a web page and when it loaded it has huge
amounts of blank rows, how can I delete these without doing each small bunch
of rows individually. Ex: I have the company name and then 12 rows later I
get the phone number then five rows later there is the address. I might add
that it is not uniform in any way now of the blanks row amounts are the same.
All total there should be 101 company entries that should take up about 404
rows, but instead it takes up 19822. Oh and all this information is only in
column A (which is OK but most of your help answers say I need more than one
column of data). Please help, I know there has to be an easier way. I hope
that you understand this as it is hard to explain.



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default deleting blank rorws

Good to hear.

Thanks for the feedback.


Gord

On Wed, 10 Dec 2008 07:21:01 -0800, VRaybandb
wrote:

Thank you so much, that was so easy and I just knew that there had to be an
EASY way and this was way too easy.
Thank you soooooo much,


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
deleting blank entries mikeyVo Excel Discussion (Misc queries) 1 August 4th 06 06:30 AM
Deleting blank worksheets Lvenom Excel Worksheet Functions 3 June 15th 06 12:28 AM
Deleting blank rows Yvette Excel Worksheet Functions 3 June 9th 06 10:30 AM
Deleting all but one blank row RealGomer Excel Discussion (Misc queries) 2 February 16th 06 06:55 PM
Deleting blank modules bj Excel Discussion (Misc queries) 0 June 2nd 05 07:52 PM


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

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"