Advanced Filter: Multiple <> :: MrExcel Message Board



 FAQFAQ
   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   FavoritesFavorites   StatisticsStatistics 
 RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Online StoreOnline Store

MrExcel Message Board Forum Index -> Excel Questions

Advanced Filter: Multiple <>
Post new topic   Reply to topic
Last Thread | Next Thread  >   Printable version
  Author    Thread

Texas Longhorn
Board Master


Joined: 30 Sep 2003
Posts: 197

Flag: Blank

Status: Offline

 Reply with quote  

Advanced Filter: Multiple <>

I'm using advanced filter on a list, and I'm trying to use multiple "does not equals". Here's what I've got:

Microsoft Excel - Book4___Running: xl2002 XP : OS = Windows XP
(F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)bout
=

A
B
C
D
E
F
1
Int'lRegCountryDirMgr Rep 
2
   <>NA  
3
   <>DL  
4
      
5
      
6
      
7
DirMgrRep   
8
NXBSLGRGM   
9
NXBNBCGAL   
10
NXBSLGCLW   
11
DLDLMH   
12
DLDLGK   
13
PGOKACSBA   
14
NXBSLGERM   
15
NXBSLGJPB   
16
PGOKACBMM   
17
DLPMJR   
18
MJMMLWDXS   
19
PMPBLSCMS   
20
MJMJMMJMK   
21
PMPBLSBPB   
22
DLDLAM   
23
NANADAS   
24
PMP PAKHRM   
25
PMP DWBDTT   
26
PMPDWBJPB   
Sheet2 

[HtmlMaker 2.42] To see the formula in the cells just click on the cells hyperlink or click the Name box
PLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.


I'm not sure why this is failing to filter out DL and NA. When I enter just one criterion (e.g. <>DL), the filter works, but when I attempt multiple <>s, it does not.

What am I doing wrong?

Many thanks,

Bill

Post Tue Nov 18, 2003 7:33 pm 
 View user's profile Send private message

bjwillingham
Board Master


Joined: 17 Jun 2003
Posts: 113
Location: Houston
Flag: Usa

Status: Offline

 Reply with quote  

Re: Advanced Filter: Multiple <>

If the condition is an 'and' it must be contained in the same row.

Multiple rows are 'or's.

Try two 'DIR' columns with each having one of the criteria
_________________
Brad

Post Tue Nov 18, 2003 7:36 pm 
 View user's profile Send private message

Texas Longhorn
Board Master


Joined: 30 Sep 2003
Posts: 197

Flag: Blank

Status: Offline

 Reply with quote  

Re: Advanced Filter: Multiple <>

Brad - thanks. Your suggestion to use multiple DIR columns worked. I didn't realize I could do that - I thought my criteria headings had to match my source data headings. Definitely good to learn otherwise.

Thanks again,

Bill

Post Tue Nov 18, 2003 7:48 pm 
 View user's profile Send private message

Ekim
Board Master
Board  Master


Joined: 01 Jul 2002
Posts: 1075
Location: Perth, Australia
Flag: Australia

Status: Offline

 Reply with quote  

Re: Advanced Filter: Multiple <>

Bill,

If your criterion in row 2 is a formula, then row 1 must be blank. The following works too.

D2:
=AND(A8<>"NA",A8<>"DL")

Microsoft Excel - Book1___Running: xl2002 XP : OS = Windows XP
(F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)bout
=

A
B
C
D
E
F
G
H
1
Int'lRegCountry DirMgr Rep  
2
   TRUE    
3
        
4
        
5
        
6
     Output Range: 
7
DirMgrRep  DirMgrRep
8
NXBSLGRGM  NXBSLGRGM
9
NXBNBCGAL  NXBNBCGAL
10
NXBSLGCLW  NXBSLGCLW
11
DLDLMH  PGOKACSBA
12
DLDLGK  NXBSLGERM
13
PGOKACSBA  NXBSLGJPB
14
NXBSLGERM  PGOKACBMM
15
NXBSLGJPB  MJMMLWDXS
16
PGOKACBMM  PMPBLSCMS
17
DLPMJR  MJMJMMJMK
18
MJMMLWDXS  PMPBLSBPB
19
PMPBLSCMS  PMP PAKHRM
20
MJMJMMJMK  PMP DWBDTT
21
PMPBLSBPB  PMPDWBJPB
22
DLDLAM     
23
NANADAS     
24
PMP PAKHRM     
25
PMP DWBDTT     
26
PMPDWBJPB     
Sheet2 

[HtmlMaker 2.42] To see the formula in the cells just click on the cells hyperlink or click the Name box
PLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.


Regards,

Mike

Post Tue Nov 18, 2003 8:11 pm 
 View user's profile Send private message
  Display posts from previous:      

MrExcel Message Board Forum Index -> Excel Questions


Forum Jump:
Jump to:  

Post new topic   Reply to topic
Page 1 of 1



Add To Favorites

 


Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB: 2.0.4 © 2001 phpBB Group

Need help posting your first question? Read how to post

Need extra help ? Couldn't get the answer you needed ? Get a free quote from our Consulting Team

Download Colo's HTML Maker utility for displaying your Excel Worksheet on the board.

Download VB HTML Maker to post your code on the board


Check out our new index to 485 Excel Articles.


Return to MrExcel Consulting

All contents Copyright 1998-2004 by MrExcel.com
If you believe information posted here is from your copyrighted source, notify us per the Terms of Use
Excel is a registered trademark of the Microsoft Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.