Google Sheets - Filter with Dropdown Menu

I’m seeking a way to create a dropdown menu directly in a cell that filters data within a Google Sheet. For instance:

Name  | Details | Group ▼
------------------------
John  | Sample | X
------------------------
Emma  | Example| Y
------------------------

My goal is that when I click on the dropdown arrow, I would like to see options X and Y. If I select X, the sheet should only display the row related to John. Furthermore, I wish to accomplish this filtering function in the same location because I attempted to use QUERY, but I couldn’t figure out how to show the results in the target cell.

Hey, you can use “Filter views” in Google Sheets for this. Create a filter view with dropdown for the “Group” and it will hide non-matching rows, so you don’t need QUERY for this. Just ensure you’re working in “Filter View” mode. Hope this helps! :blush:

You might also try leveraging Google Sheets’ built-in data validation feature combined with conditional formatting. Set up a dropdown in the “Group” cell using data validation from a separate list of groups like X, Y, etc. Then, apply conditional formatting rules that hide or visually gray out all rows that don’t match the selected group in the dropdown. This approach doesn’t require complicated formulas and can effectively filter your data visually without moving any data to a different location.