#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Delete Rows

Hello,

I have a spreadsheet that imports a text file into the appropriate columns
and gets rid of all the junk.

I don't need someone the info that is imported, probably about 40 different
criteria.

What is the quickest way to delete these rows, do a lookup and then delete
or just enter a line of code for each criteria?

Thanks
Doug


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Delete Rows

Apply Data|Filter|Autofilter, filter for each value, and delete the visible
rows?

or...

Can you build a table of the bad text on another worksheet.

Then use a helper cell:

=isnumber(match(a1,sheet2!a:a,0))

drag down...

sort by that column and delete the rows that have a TRUE in them.

I'd bet the second way was quicker.



Doug Van wrote:

Hello,

I have a spreadsheet that imports a text file into the appropriate columns
and gets rid of all the junk.

I don't need someone the info that is imported, probably about 40 different
criteria.

What is the quickest way to delete these rows, do a lookup and then delete
or just enter a line of code for each criteria?

Thanks
Doug


--

Dave Peterson

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Delete Rows

Thanks

"Dave Peterson" wrote in message
...
Apply Data|Filter|Autofilter, filter for each value, and delete the

visible
rows?

or...

Can you build a table of the bad text on another worksheet.

Then use a helper cell:

=isnumber(match(a1,sheet2!a:a,0))

drag down...

sort by that column and delete the rows that have a TRUE in them.

I'd bet the second way was quicker.



Doug Van wrote:

Hello,

I have a spreadsheet that imports a text file into the appropriate

columns
and gets rid of all the junk.

I don't need someone the info that is imported, probably about 40

different
criteria.

What is the quickest way to delete these rows, do a lookup and then

delete
or just enter a line of code for each criteria?

Thanks
Doug


--

Dave Peterson



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
Hpw do I delete multiple empty rows found between filled rows? Bill Excel Worksheet Functions 2 November 15th 09 07:12 PM
How to Delete empty rows in excel in b/w rows with values Dennis Excel Worksheet Functions 3 August 28th 07 04:15 PM
Cut filtered rows, paste into next empty row of new sheet, and delete cut rows Scott Excel Worksheet Functions 0 December 13th 06 01:25 AM
How to delete rows when List toolbar's "delete" isnt highlighted? Linda Excel Worksheet Functions 1 May 26th 05 08:39 PM
delete empty rows between rows with text Paulo Baptista Excel Discussion (Misc queries) 2 February 28th 05 03:41 PM


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

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

About Us

"It's about Microsoft Excel"