Google Sheets: Filter Multiple Columns with ‘Select All’ Drop-Downs

If you use drop-down criteria in the FILTER function, you might want to include a ‘Select All’ option to optionally exclude any specific column from the filtering criteria.

For example, imagine you have three columns and three drop-downs corresponding to them.

From the drop-down menus, you can either select a specific value or the “All” option.

  • If you choose a specific value, the FILTER function will filter for that value in that column.
  • If you choose “All,” the filter excludes that column from the filtering condition.

If you select “All” in all three drop-downs, the formula will return the data as-is, without any filtering.

Here’s how you can filter multiple columns with “Select All” drop-downs in Google Sheets:

Step 1: Set Up the Data

Suppose you have the following sample data in A1:C:

ItemSupplierStock (m3)
Gravel 20-40 mmSupplier 11000
Gravel 20-40 mmSupplier 21000
Gravel 20-40 mmSupplier 31000
Gravel 20-40 mmSupplier 42500
Gravel 10-20 mmSupplier 12500
Gravel 10-20 mmSupplier 21000
Gravel 10-20 mmSupplier 3400
Gravel 10-20 mmSupplier 41000

Step 2: Create Drop-Downs with “All” Options

Based on the sample data, you need three drop-down menus for columns A, B, and C — each containing:

  • All the unique values from that column
  • An additional “All” option

We’ll create the drop-downs in E2, F2, and G2.

Using 'Select All' in drop-downs to filter multiple columns in a Google Sheets dataset

To create a drop-down manually:

  1. Navigate to cell E2.
  2. Click Insert > Drop-down.
  3. Manually enter all the unique values from column A.
  4. Add “All” as an extra option.
  5. Click Done.

Repeat this process for F2 and G2 (for columns B and C).

Tip: If you prefer to create the drop-downs dynamically from a range (including an “All” option), follow this guide: Google Sheets: Add an ‘All’ Option to a Drop-down from Range

Step 3: Apply the Formula to Filter Multiple Columns with ‘Select All’ Drop-Downs

In cell E4, insert the following formula:

=FILTER(A2:C, 
    IF(E2="All", ROW(A2:A), A2:A=E2), 
    IF(F2="All", ROW(B2:B), B2:B=F2), 
    IF(G2="All", ROW(C2:C), C2:C=G2)
)

How Does This Formula Work?

Normally, if you were just filtering based on direct matches, you’d use something like:

=FILTER(A2:C, A2:A=E2, B2:B=F2, C2:C=G2)

However, when using “All” in the drop-downs, we need the formula to ignore that column’s filter if “All” is selected.

Here’s the trick:

Each IF statement checks if the corresponding drop-down value is “All”.

For example:

IF(E2="All", ROW(A2:A), A2:A=E2)
  • If E2 = “All”, the condition becomes ROW(A2:A) — meaning all rows are included.
  • Otherwise, it checks if A2:A = E2.

Is ROW(A2:A) a valid filter condition?

Yes! It returns a number for each row, which is treated as TRUE in logical tests — just like LEN(A2:A), but without ignoring empty cells.

ConditionMeaning
ROW(A2:A)Includes all rows (even blanks)
LEN(A2:A)Includes only rows with non-blank cells

Tip: If you want to select all but exclude blank cells, you can replace ROW(A2:A) with LEN(A2:A) instead.

Example Walkthrough:

  • In E2, select “Gravel 10-20 mm”
  • In F2, select “Supplier 2”
  • In G2, select 1000

The formula will return all rows matching these selections.

If you select “All” in any of the drop-downs, that column will be excluded from filtering.

Example Sheet

Sample Sheet

Conclusion

That’s it! Now you know how to filter multiple columns with ‘Select All’ options in Google Sheets using a smart FILTER formula.

Enjoy building dynamic, user-friendly filters!

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.

How to Sort Pie Slices in Google Sheets

To sort pie slices in a pie chart, you need to sort the data...

Filter Items Unique to Groups in Google Sheets

In this tutorial, we'll learn how to filter items unique to groups in Google...

Find Common Items Across Multiple Columns in Google Sheets

This tutorial explains how to find common items across multiple columns in Google Sheets....

Sort Column by Length of Text in Google Sheets

To sort a column by length of text, you can either use the QUERY...

More like this

How to Sort Pie Slices in Google Sheets

To sort pie slices in a pie chart, you need to sort the data...

Filter Items Unique to Groups in Google Sheets

In this tutorial, we'll learn how to filter items unique to groups in Google...

Find Common Items Across Multiple Columns in Google Sheets

This tutorial explains how to find common items across multiple columns in Google Sheets....

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.