Table of Contents
Start with the detail you remember best. Use from: for a sender, subject: for a subject word, or filename: for an attachment. Combine filters to narrow the results. For example, from:boss@example.com after:2025/06/01 before:2025/07/01 filename:pdf looks for PDF attachments from that sender during the date window.

Copy a search that matches the job
| To find… | Try this search |
|---|---|
| Unread messages with a subject word | is:unread subject:update |
| Excel files from one sender | from:amos@example.com filename:xlsx |
| Messages containing an exact phrase | "meeting agenda" |
| Messages with attachments from the past week | has:attachment newer_than:7d |
| Contract references under the Work label | label:work contract |

Combine conditions without losing useful matches
Spaces generally combine conditions. To accept either of two senders and also require an attachment, use {from:alex@example.com from:rachel@example.com} has:attachment. You can also use uppercase OR to express alternatives, or put a minus sign before a condition to exclude it, such as -from:news@example.com.

If there are no results, remove one condition at a time
First widen the date range or remove the extension. A shared Drive link may not be an ordinary PDF attachment. If you think the message was deleted or marked as spam, try adding in:anywhere. Check Google’s search operator reference for more options, or see attachment-specific Gmail searches.
Reader Comments 0
Sign in with email or Google to join the discussion.