Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default select and delete specific rows


I have a text report I import into excel that has headers and blank rows
between the headers.

I need some code to delete rows that begin with specific words, such as
"subscriber", or "Payment type", and also deletes any blank rows.

Thanks


--
Paulg
------------------------------------------------------------------------
Paulg's Profile: http://www.excelforum.com/member.php...o&userid=36077
View this thread: http://www.excelforum.com/showthread...hreadid=574204

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default select and delete specific rows


without code try this:

suppose your data is in column B (if not add a column at right of your
data column), put 1 in column A to the right of cells that you want to
delete (whole row) and also put 1 on right of cells that are empty,
when you have entered 1 in the right of cells that you want to delete,
select column A and press F5 to open Go To window press Special tab
and click Constants and then Ok. it will select cells that contain 1
(actually these cells are in rows that you want to remove) now press
Ctrl+- (Ctrl and minus sign) it will open a Delete window, select
Entire row and click Ok. All rows will be deleted which contain 1 in
col A.

hope this would serve your purpose.

Paulg Wrote:
I have a text report I import into excel that has headers and blank rows
between the headers.

I need some code to delete rows that begin with specific words, such as
"subscriber", or "Payment type", and also deletes any blank rows.

Thanks



--
starguy
------------------------------------------------------------------------
starguy's Profile: http://www.excelforum.com/member.php...o&userid=32434
View this thread: http://www.excelforum.com/showthread...hreadid=574204

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
select and delete all blank rows Bill from UniqueAuction.com Excel Discussion (Misc queries) 1 October 11th 05 09:06 PM
how do i prevent a #REF! error when i delete non adjacent rows? ChuckSF Excel Worksheet Functions 1 August 5th 05 05:08 AM
Select rows, then sort David Excel Discussion (Misc queries) 2 April 30th 05 04:36 AM
How to delete blank rows John Mansfield Excel Discussion (Misc queries) 3 April 27th 05 11:48 PM
Insert rows Mr. G. Excel Worksheet Functions 3 March 31st 05 03:49 AM


All times are GMT +1. The time now is 03:22 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"