HomeGoogle DocsSpreadsheetCreate a Drop-Down to Filter Data From Rows and Columns

Create a Drop-Down to Filter Data From Rows and Columns

Published on

When you want to see part of a table you can use the built-in Filter menu in Google Sheets. Also, you can create your own drop-down to filter data from a table horizontally or vertically.

The latter will be useful to extract data from a table to a new range and perform additional calculations.

In this Google Sheets tutorial, I am going to share with you how to create a drop-down menu to filter data from not only rows but also from columns.

What more! I have included how to do horizontal and vertical filtering using a drop-down menu.

Here is a visual representation of what I am going to do in this tutorial.

1.Drop-Down Menu to Filter Rows in a Table:

Drop Down to Filter Data From Rows


2. Drop-Down Menu to Filter Columns in a Table:

Drop Down to Filter Data From Columns

3. Drop-Down to Filter Data From Rows and Columns:

Drop Down to Filter Data From Rows and Columns

1. Drop Down to Filter Data From Rows in Google Sheets

If you don’t like the filter command in Google Sheets, then there is the Filter function. It offers complete flexibility in filtering.

First, let me show you how to use drop down to Filter data from rows. Then we can move to columns and columns+rows.

How to Create a Drop-Down Menu for Filtering Rows

In the first example, you can find the drop-down in cell E2. How to create that drop-down containing unique values in the range C2:C11?

Create Drop Down to Filter Data

Go to the menu Data > Data Validation. Choose the criteria as “List form a range”. Select the range C2: C11 and click Save.

You May Like: The Best Data Validation Examples in Google Sheets.

Even if there are multiple occurrences of values in the range, Google Sheets data validation rule will only consider the unique values.

Your drop-down menu to Filter data from Rows is ready. Now use this Filter formula in cell E3. That’s all.

=filter(A2:C,C2:C=E2)

2. Drop Down to Filter Data From Columns in Google Sheets

You can search across the first row of a table to find a specific title. Then you can extract the data in that specific column. That is what I have demonstrated in the second example.

How to Create a Drop-Down Menu for Filtering Columns

The drop-down for column filtering is in cell G1. Just follow the above screenshot to create a drop-down menu for filtering in Google Sheets.

Here there is one difference. Choose the criteria as “List form a range” and select the range B1: E1. Yes! The range is obviously different this time.

This time I am not going to use the Filter function. The best formula to filter columns is Query. But what we want is to search the header and then filter.

So here my recommended function is the popular Index-Match combo. Just use this formula in cell G2.

=index(A2:E,0,match(G1,A1:E1,0))

Follow the above instructions to Filter data from columns in Google Sheets.

3. Drop Down to Filter Data From Rows and Columns in Google Sheets

The third example is the compilation of the above two examples. That means there would be two drop-down menus.

The drop-down menu in cell H4 is for filtering rows and the one in H6 for filtering columns.

Actually, As mentioned, I have used two drop-down menus for filtering data from Rows and Columns. But there is only one formula in cell J4.

See that magical formula and details here – Two-way Filter in Google Sheets.

Related Reading:

1. Lookup and Retrieve the Column Header in Google Sheets.
2. Two-way Lookup and Return Multiple Columns in Google Sheets.

Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Guide Prashanth KV brings a wealth of experience in Google Sheets and Excel, cultivated through years of work with multinational corporations in Mumbai and Dubai. As a recognized Google Product Expert in Docs Editors, Prashanth shares his expertise through insightful blogging since 2012. Explore his blog for practical tips and guidance on maximizing your spreadsheet skills.

Creating Sequential Dates in Equally Merged Cells in Google Sheets

Do you know how to create sequential dates in equally merged cells across a...

Running Total By Month in Excel

This tutorial demonstrates how to calculate the running total by month in a range...

SORT and SORTBY – Excel Vs Google Sheets

While Excel offers the SORT and SORTBY functions for sorting a table, Google Sheets...

Get Top N Values Using Excel’s FILTER Function

When using the FILTER function in Excel to extract the top N values, it's...

More like this

Creating Sequential Dates in Equally Merged Cells in Google Sheets

Do you know how to create sequential dates in equally merged cells across a...

Interactive Random Task Assigner in Google Sheets

You have multiple tasks and multiple people. Here's a fun way to randomly assign...

Google Sheets Bar and Column Chart with Target Coloring

To color each data point in the column or bar chart according to the...

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.