Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Outlook 365 Advanced Search Syntax: A How-To Guide

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Outlook 365 advanced search syntax lets you find messages by sender, subject, date, attachment, and more using simple operators like from:, subject:, and received:. You can type these directly into the search box in Outlook on the web, new Outlook for Windows, or classic Outlook—no add-ins required. The syntax works the same across platforms, though the search box location varies slightly.

What You'll Need

  • An active Outlook 365 account (work, school, or personal).
  • Access to Outlook on the web, new Outlook for Windows, or classic Outlook for Windows. The steps below focus on the web and new Outlook; classic Outlook uses the same operators but the search box is at the top of the message list.
  • Basic familiarity with typing in the search box—no coding skills needed.

Step-by-Step

  1. Open the search box. In Outlook on the web, click the search bar at the top of the page. In new Outlook for Windows, click the search box at the top of the window. In classic Outlook, click the search box above the message list. (Labels may differ slightly by version or region.)
  2. Start with a simple operator. Type from:alice@example.com and press Enter. This finds all messages from that address. You can also use from:alice to match any sender containing “alice”.
  3. Combine operators. Add a space between conditions to require all of them. For example: from:alice subject:report finds messages from Alice with “report” in the subject. Use uppercase OR to broaden: from:alice OR from:bob.
  4. Search by date. Use received:today, received:this week, or a range like received:>=01/01/2024 AND received:<=31/01/2024. The exact date format depends on your region settings; use the format shown in your calendar.
  5. Search for attachments. Type hasattachment:yes to find messages with any attachment. Combine with a filename: hasattachment:yes filename:budget.xlsx (filename operator may vary; if it does not work, use attachment:budget).
  6. Search by subject or body. Use subject:invoice to search only the subject line. Use body:meeting to search message text. Without a prefix, Outlook searches both subject and body.
  7. Use quotation marks for exact phrases. Type subject:"quarterly report" to find that exact phrase. Without quotes, Outlook may split the words.
  8. Exclude terms. Add NOT before a term: from:alice NOT subject:spam. You can also use the minus sign: from:alice -subject:spam.
  9. Search by folder or category. Use folder:inbox to limit to the Inbox, or category:red to find items with a red category. Folder names must match exactly.
  10. Press Enter to run the search. Results appear in the message list. You can refine by editing the query and pressing Enter again.
  11. Save a search for later. In classic Outlook, after running a search, click the “Search” tab and choose “Save Search” to create a Search Folder. In Outlook on the web and new Outlook, you can pin a search or use the Favorites section, but a dedicated “save search” button may not exist—use the search history instead.

Common Mistakes

  • Forgetting spaces around operators. Write from:alice subject:report, not from:alicesubject:report.
  • Using lowercase “or”. Boolean operators must be uppercase: OR, AND, NOT.
  • Assuming all operators work everywhere. Some operators (like filename:) may not be supported in every Outlook version. If a query returns nothing, try a simpler operator.
  • Mixing date formats. Use the date format your region uses; if unsure, try received:today first.
  • Searching the wrong mailbox. By default, search covers the current folder. Use folder: or the search scope dropdown to change it.

Tips

  • Use from: with a partial name to quickly narrow by sender.
  • Combine hasattachment:yes with a date range to find recent files.
  • Use subject: with quotes for exact subject lines.
  • Press Ctrl+E (Windows) to jump to the search box quickly.
  • Check the search scope—Outlook may search only the current folder by default. Use the dropdown to search all mailboxes.
  • If results are missing, try searching in Outlook on the web, which often indexes faster than desktop.

Troubleshooting

  • No results at all. Check that you are searching the correct mailbox and folder. Try a simple keyword without operators. If still nothing, the mailbox may still be indexing—wait a few minutes and retry.
  • Operator not recognized. Ensure there is no space after the colon. Use from:alice, not from: alice. Also confirm the operator is supported in your Outlook version; try an alternative like attachment: instead of filename:.
  • Search is slow or times out. Narrow the date range or add more specific terms. Large mailboxes may take longer; try searching a specific folder.
  • Results include unrelated items. Use quotes for exact phrases and combine operators with AND (space) to require all terms.
  • Saved search not updating. Search folders update automatically, but if not, right-click the search folder and choose “Update Folder” (classic Outlook). In web, re-run the search manually.

Frequently Asked Questions

Can I use advanced search syntax in Outlook mobile?

The mobile app has a simplified search that does not support all operators. For full syntax, use Outlook on the web or desktop.

Does search cover all folders by default?

No, Outlook typically searches the current folder first. Use the search scope dropdown or add folder: to search elsewhere.

How do I search for emails with a specific attachment type?

Use hasattachment:yes and then a filename or extension if supported, e.g., hasattachment:yes pdf. The exact operator for file type varies; try attachment:pdf.

Can I search by sender and date range together?

Yes: from:alice received:>=01/01/2024 AND received:<=31/01/2024. Adjust the date format to your region.

Why does subject: not find a word I know is in the subject?

Check for typos and ensure no space after the colon. Also, search may be limited to the current folder—change the scope to All Outlook Items.

Is there a way to save a complex search?

In classic Outlook, use Search Folders (Search tab > Save Search). In web and new Outlook, use search history or pin the search—dedicated save may not be available.