Outlook 365 Advanced Search Syntax: A How-To Guide
In this article
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
- 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.)
- Start with a simple operator. Type
from:alice@example.comand press Enter. This finds all messages from that address. You can also usefrom:aliceto match any sender containing “alice”. - Combine operators. Add a space between conditions to require all of them. For example:
from:alice subject:reportfinds messages from Alice with “report” in the subject. Use uppercaseORto broaden:from:alice OR from:bob. - Search by date. Use
received:today,received:this week, or a range likereceived:>=01/01/2024 AND received:<=31/01/2024. The exact date format depends on your region settings; use the format shown in your calendar. - Search for attachments. Type
hasattachment:yesto find messages with any attachment. Combine with a filename:hasattachment:yes filename:budget.xlsx(filename operator may vary; if it does not work, useattachment:budget). - Search by subject or body. Use
subject:invoiceto search only the subject line. Usebody:meetingto search message text. Without a prefix, Outlook searches both subject and body. - Use quotation marks for exact phrases. Type
subject:"quarterly report"to find that exact phrase. Without quotes, Outlook may split the words. - Exclude terms. Add
NOTbefore a term:from:alice NOT subject:spam. You can also use the minus sign:from:alice -subject:spam. - Search by folder or category. Use
folder:inboxto limit to the Inbox, orcategory:redto find items with a red category. Folder names must match exactly. - Press Enter to run the search. Results appear in the message list. You can refine by editing the query and pressing Enter again.
- 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, notfrom: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:todayfirst. - 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:yeswith 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, notfrom: alice. Also confirm the operator is supported in your Outlook version; try an alternative likeattachment:instead offilename:. - 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.