Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default displaying data that does not meet criteria


Is there a way (in VBA) to display/filter data that does NOT meet a lis
of criteria. Autofilter only lets me do 2 conditions, I have about 30.
Bottom line is I want to delete all rows that don't belong. I know wha
should belong but don't have a list of what doesn't. Thanks

--
jerrysta
-----------------------------------------------------------------------
jerrystan's Profile: http://www.excelforum.com/member.php...fo&userid=2857
View this thread: http://www.excelforum.com/showthread.php?threadid=49769

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default displaying data that does not meet criteria

What you could do is to create a list of all valid criteria, and then add a
formula to check if an item is in that list. For instance, the list is in
column A, valid criteria in column J, so in B2 add a formula of

=MATCH(A2,J:J,0)

Then AUtofilter column B, and filter on the #N/A values, and delete the
visible rows.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"jerrystan" wrote
in message ...

Is there a way (in VBA) to display/filter data that does NOT meet a list
of criteria. Autofilter only lets me do 2 conditions, I have about 30.
Bottom line is I want to delete all rows that don't belong. I know what
should belong but don't have a list of what doesn't. Thanks.


--
jerrystan
------------------------------------------------------------------------
jerrystan's Profile:

http://www.excelforum.com/member.php...o&userid=28573
View this thread: http://www.excelforum.com/showthread...hreadid=497694



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
EXCEL - Meet 2 criteria, then find next case of third criteria Elaine Excel Worksheet Functions 3 December 1st 08 10:43 PM
need to move data to certain column if they meet criteria klafert Excel Worksheet Functions 0 May 17th 08 12:41 AM
Add text to meet criteria Keyrookie Excel Worksheet Functions 3 October 9th 07 10:55 PM
How do I count 2 columns of data that meet a certain criteria? RonJon Excel Discussion (Misc queries) 2 September 15th 06 03:51 PM
Delete data in cells that don't meet criteria SITCFanTN New Users to Excel 1 June 10th 06 09:03 PM


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