Skip to content

How to Use Search Operators in Outlook and Gmail

Applies toOutlookGoogle WorkspaceGmail
2 min fix Updated 20 Jul 2026
Quick Answer

Type specific words in the search bar to filter results instantly. For example, type from:"Jane" to find emails from Jane, hasattachments:yes to find emails with files, or subject:"invoice" to search only the subject lines.

Checked against Microsoft Learn - new Outlook for Windows, Google Workspace Updates and between 5 Aug 2026 and 12 Sep 2026. Nothing published in that period has been linked to this guide.

Estimated Time to Fix: 2 minutes

Summary

This article guides you through using advanced search operators to quickly find specific emails in Outlook and Gmail.

Before You Start

  • None required.

Instructions

1. Find Emails from a Specific Person

  1. Click into the search bar at the top of your inbox.
  2. In Outlook, type from:"Jane Doe" or from:[email protected] and press Enter.
  3. In Gmail, type from:[email protected] and press Enter.

2. Find Emails with Attachments

  1. Click into the search bar.
  2. In Outlook, type hasattachments:yes and press Enter.
  3. In Gmail, type has:attachment and press Enter. (You can combine operators, such as from:"Jane Doe" hasattachments:yes).

3. Search for an Exact Phrase

Quotation marks turn several words into one term, which is what you want when the words are common on their own.

  1. Click into the search bar.
  2. Type the words inside quotation marks, for example "Project Alpha update", and press Enter.
  3. Only messages containing those words in that order are returned — one mentioning Project and one mentioning update will not match.

4. Find Emails from a Specific Date Range

  1. Click into the search bar.
  2. In Outlook, type received:yesterday or received:>01/01/2026 and press Enter.
  3. In Gmail, type after:2026/01/01 before:2026/02/01 and press Enter.

5. Verify Success

  1. Review the search results. Only emails matching your specific criteria will appear.

Troubleshooting

WARNING

In Outlook, if your search results are incomplete, the search index might be broken or your mailbox might not be fully synced to your computer.

Symptom / ErrorPotential CauseSolution
Outlook search returns no resultsBroken search index or sync issueHow to Fix Outlook Search Not Finding Emails
Gmail search operator doesn't workTypo in the operatorEnsure there are no spaces after the colon (e.g., from:jane not from: jane).

Last updated:

Frequently asked questions

How do I search for an exact phrase instead of individual words?
Put the phrase in quotation marks. Searching for "Project Alpha update" will only find emails with those exact words in that exact order, ignoring emails that just contain 'Project' or 'update' separately.
Can I combine multiple search operators?
Yes. You can string them together. For example, typing from:"John" hasattachments:yes subject:"budget" will find all emails from John that contain the word 'budget' in the subject line and have a file attached.