Office 365: How to Search and Query


In Outlook and Teams there are multiple commands you can use to narrow down searches to help locate and organize your emails and messages. Commands are shortcuts for performing common task in Teams or Outlook such as filtering names or senders/recipients, updating statuses, changing teams or channels or viewing saved messages.



There are keywords to use when narrowing searches in outlook. Listed below are the most common queries and what they do.




Searches the Subject of all emails for what is specified after the colon


Searches the From line aka sender of emails Ex;


Searches the To line. Ex;


Searches the cc line for specified receivers. Ex:

received: <, <=, >=, >
sent: <, <=, >=, >

Searches for emails sent or received before the given date. Ex; received<01/01/2018 or sent<01/01/2018
Searches for emails send or received after the given date. Ex; received>10/31/2020


Searches for mail in the given folder. Ex; folder:archive will look at emails in the Archive folder.


Searches mail messages with attachments if you don’t want attachments, enter hasattachment:false


Combines terms in the search so both must be present. But not in the order entered. Ex: “Brutus AND buckeye”, or “football game AND tickets”


Combines search terms so that either words can be in the email but doesn’t need both. Ex: “Brutus OR Buckeye” displays results of either.

( )

Used to specify ranges like date, date range, address, or something else.

Ex: from:Brutus (received:08/01/21 or received:09/02/21) searches the from line for messages from Brutus that were received on August 1st 2021 or on September 2nd 2021.



Search current location quickly with Ctrl+F

To search your current location in teams (be it a direct message or Teams channel) click Ctrl+F (cmd+F on macOS) to search messages within a particular chat or channel in Teams. Here are the steps below

  1. Choose the area you want to search—like a direct one-on-one chat or the General channel within a team.
  2. Press Ctrl+F (or cmd+F for mac) followed by your search word(s), then press Enter. The results will be displayed from within that chat or channel conversation instead of the sidebar.
  3. Choose one of the available results and Teams will scroll up to the location of that message.

Advanced Search Bar Commands

Teams has many ways to search past chats or files shared with you. To use any of theses commands, click into the search bar located at the top middle of the Teams window. when you type a word or name, Teams will show a list of suggested results relating to the words entered. The search results will appear on the left sidebar of the Teams window. (Keep in mind Teams chats and team messages will expire.)




Will show messages only from given name. Ex; From:brutus.1


Show messages in given channel or group. Ex; In:StaffTeam


Keyword from a channel message with a subject line


Messages from a certain date. Ex Sent:01/12/2020


Used to get results for any words matching prefixes. Ex; serv* will get results on words that start with those letters (ie; server, service, etc.)


Search from messages with exact match on word or phrase

You can also set commands with the search bar. These can change your status, look for files, go directly to a team or channel or find shortcuts. Most will appear as auto complete when you type them so make sure to look at the drop down for certain options.






See someone’s activity


Join a team


Set your status to available


See keyboard shortcuts


Set your status to away


See all your @mentions


Set your status to busy


See your saved messages


Call a phone or teams contact


Check your call quality


Set status to do not disturb


See all your unread activity


See your recent files


See whats new in Teams


Go to a team or channel


Just to view all options/descriptions


Get help with teams





Article ID: 138926
Mon 10/25/21 2:36 PM
Fri 1/21/22 2:05 PM

Related Articles (1)

This article is a short overview of Microsoft Teams. Teams has team chat, messaging, meetings, calling, to do lists, and file storage features.