• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Outlook Tips

Learning Microsoft Outlook One Tip At A Time

Diane Poremsky [Outlook MVP]

  • Home
  • Tips Archive
  • How to...
  • Beginner
  • Outlook.com

Tip 993: How 'doesn't contain' filters work with multiple conditions

A lot of users end up frustrated and confused when they try to use multiple "doesn't contain" rules in a filter (even I sometimes have trouble with the logic.)

When you use "doesn't contain" with two different values, such as "From doesn't contain Mary or Bob", you are asking the filter to do something if either of the conditions are true:

If From doesn't contain Mary

OR

If From doesn't contain Bob

and since everything except Mary's message are not from Mary, and everything, including Mary's messages, are not from Bob (except Bob's messages), the condition is always going to be TRUE. Outlook is processing the rules as "(if not Mary) OR (if not Bob)", not "if not (Mary or Bob)".

You need to use 'if not in Team1 AND not in Team2' – but when you use the same field twice, it is always OR'd. You need to use AND when you are using 'not' operator.

If you need a better filter, you can enable Query Builder.

Use Query Builder to create a doesn't contain rule

Categories add a special twist since they are a text field. Normally, you can use two or more values in the Value field – mary OR joe – or mary, joe – but because categories is a text field, if you use OR, it thinks you are looking for the phrase 'A OR B', not A or B.

Published June 5, 2012. Last updated on May 8, 2014.

Share this:

  • Twitter
  • Facebook
  • LinkedIn
  • More
  • Print
  • Tumblr
  • Reddit
  • Pocket
  • Pinterest

Related posts:

Create a filterUsing Microsoft Outlook's Advanced Filters How to do a Boolean Search in Outlook Outlook has a very powerful filter available to use with Advanced Find, Views, Automatic Formatting or Search Folders. You can addTip 49: Creating Advanced Filters An Outlook user asked how to create a search for a messages sent to or from a domain (eg "@company.com") and include notTip 943: Search for Email Sent To or From a Domain
Subscribe
Notify of
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Primary Sidebar

Search OutlookTips

Training and one-on-one assistance

Do you need help setting up Outlook or want some one-on-one training? I'm available for hire. See Training and one-on-one assistance for fees and to check availability.

All-Time Most Popular Posts

  • Windows 7 and Vista Start Search field
    How to start Outlook in safe mode
  • outlook.com icon
    Delete a message stuck in Outlook's Outbox
  • How to use Outlook's Command line switches
  • Use Cleanviews switch to reset all views
    How to Reset the View on Outlook folders
  • Where are my Outlook Files?
  • Folder paths
    How to Find Folder Paths in Outlook Mailboxes
  • How to use Scanpst.exe to repair Outlook data files
  • Outlook's Missing Holidays
  • backstage page
    Where is File tab in Outlook?
  • Icons found in the Inbox, Message Headers, and Toolbars

Footer

Recent Posts

  • Log into multiple Outlook on the web accounts
  • Keeping Hackers out of Microsoft accounts
  • Microsoft Account Closure Email
  • Outlook on the web Quick Actions moved to the right
  • Automatically sign out of Outlook.com

Recent Bug List

Microsoft keeps a running list of issues affecting recently released updates at Fixes or workarounds for recent issues in Outlook for Windows.

Office Update History

Update history for supported Office versions is at Update history for Office

Resources

Ask questions and share your knowledge in Outlook Forums.

You Might Like

Where is File tab in Outlook?
Using Two-factor authentication
Where are my Outlook Files?
How to use Outlook's Command line switches

© 2003–2026 ยท Outlook Tips

wpDiscuz
You are going to send email to

Move Comment