温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.muo.com/use-filter-function-google-sheets/
点击访问原文链接

How to Use the FILTER Function in Google Sheets

How to Use the FILTER Function in Google Sheets Menu Sign in now Close Trending Submenu Productivity Android Smart TVs Networking Windows 11 Entertainment PC & Mobile Submenu Windows2 Linux Android Apple Technical Submenu Tech Explained Security Software Submenu Productivity Internet Creative Screen Submenu Entertainment Streaming Home Submenu Smart Home Home News Sign in Newsletter Menu Follow Followed Like More Action Sign in now Productivity Android Smart TVs Networking Windows 11 Entertainment Close
How to Use the FILTER Function in Google Sheets Follow Followed Like Link copied to clipboard Add us on By  Shan Abdul Published May 24, 2021, 9:30 AM EDT Shan Abdul is a Senior Writer at MUO and HTG. Having used Windows for over a decade, he's accumulated plenty of experience with the OS. He's been writing on a variety of Windows topics for over five years, incorporating his expertise to teach readers how to get the most out of their Windows devices and resolve issues with the operating system. 

He has been writing professionally since 2016. He joined MUO in 2021, and his work has been viewed over 20 million times since then. Outside of writing, he spends his time exploring the cryptocurrency market and gaining insights into general trading. Sign in to your MakeUseOf account

For small business owners and freelancers, Google Sheets is a suitable replacement for Microsoft Excel. It offers most of the features that work pretty similar to the ones in excel so switching to Google Sheets isn't a big deal.

Filter Function is one of the most powerful features Google Sheets has for handling the data. It filters out the data from multiple rows and columns of an array that meet a specified condition. Thus, it's not limited to filtering data from only a single row or column that increases its scope of use.

An Overview of the Syntax of Filter Function

By using this function, you can get multiple results of matches. And since your data is filtered with a function, the results will update automatically. Let's quickly go over the syntax of the Filter Function before moving forward on the formula implementation.

No Attribution Required

The filter function has three arguments; Range, Condition 1, and [Condition 2 ...]. The first two arguments are required, while the third argument is optional.

Do note that there is no limit to the number of conditions you can specify. So, you can continue to add conditions to the Filter functions for as long as needed. Let's discuss what this range and condition arguments represent:

Range: The range argument refers to the data you intend to filter from an array. It can contain any number of rows or columns. Test condition 1: The condition arguments correspond to a set of true or false values in a column or row, whether they are associated with the first column or row of 'range' or a formula evaluating true or false. [Condition 2....]: It refers to additional rows or columns containing the boolean value TRUE or FALSE, which indicates whether the corresponding row or column should pass through the 'FILTER.'

If you use the Filter Function, you must specify filtered data and one condition argument. Creating a dropdown for the test condition will be easier to filter out the desired data by updating the selection.

Note that the filter function spills all the time. So, you won't have to add dollar signs ($), which you usually put in while executing range references. You can add one formula, and it'll return results from the entire array.

Example for Filter Function

Let's take a look at the below data to see the implementation of the Filter Function.

No Attribution Required

You can find information about the sales and profits for various grocery items across different states in the US.

Let's say you want to filter the grocery items, sales, and profit by state. Here you have multiple matches for each state, and your range is these three columns.

You can use the filter function to filter the desired result. As an array column containing the names of states is your condition 1, let's create a dropdown for it.

Creating a Dropdown for Tested Condition

1. Right-click on a cell to open the dropdown menu.

No Attribution Required

2. Scroll down and go to the data validation section.

No Attribution Required

3. In data validation, set criteria to be List from a range.

No Attribution Required

4. Click on the square boxes in the criteria section to choose a range or formula.

No Attribution Required

5. In this case, the state column will be the range. You will need to specify the entries from Cells A2 to A13 here.

No Attribution Required

6. Save the Data Validation settings by clicking Save.

No Attribution Required

This will create a dropdown menu consisting of unique items from the selected range.

No Attribution Required

Now that you have the dropdown menu created, let's begin filtering grocery items, sales, and profit for each state using this Filter function.

Related: How to Create a Checklist in Microsoft Excel

Implementing the Filter Function

Range, in this case, is the data in the three columns, Sales, Grocery items, and Profit. Let's choose cells B2 to D13 in the first argument of the Filter function.

No Attribution Required

Suppose you wish to add more data to already selected columns as a range. Keep the second value in the range open-ended. You can do this by removing the cell number, which in this case is 13.

No Attribution Required

As soon as you add a new value, the filter function will take these into account without requiring you to filter them again.

The condition argument in this example will be the state. Select the state column by keeping it open-ended and equal it to the cell containing the dropdown menu from where you will assign filters for each region.

No Attribution Required

To ensure consistency across the two datasets, make sure that both ranges have the same height.

Once you press Enter to execute the formula, it will filter out the data of grocery items, sales, and profits for the state of taxes from the mixed dataset.

No Attribution Required

Additionally, note that the Filter function only includes valid values. If the tested value is true, the value in the array is considered; otherwise, the function ignores it and skips to the next.

In this example, when you select Utah from the dropdown, you will see the relevant data for that state in the filter area.

No Attribution Required Filtering Data by Testing Multiple Conditions

Let's update the function to include a profit greater than 5000 as the second condition. To filter data meeting both conditions, you need to add this new condition to the filter formula.

1. Go to Cell F8, where you added the formula before.

No Attribution Required

2. Choose the profit column as a range for the second condition, and the new formula looks like this:

=Filter(B2:D,A2:A=G5,D2:D>5000)
No Attribution Required

3. Press Enter to execute the formula.

No Attribution Required

The profit for flour in Utah was 1240, and the filter function ignored it because it did not meet the second condition. In the same way, you can filter the data by testing any number of conditions.

Related: How to Remove Duplicates in Excel

Have More Control Over Filtering Data in Google Sheets

In Google Sheets, the Filter Function comes in handy when filtering some data after testing a large dataset. It is important to remember that the filter function in Google Sheets differs slightly from Microsoft Excel. So keep its syntax in mind during implementation.

You can further enhance your productivity by integrating Google services like Google Forms with Google Sheets.

Close
Recommended How to Integrate Google Forms With Google Sheets 4 things I stopped doing for my lawn that were making it worse I cancelled my Copilot subscription and switched to Claude for Office tasks This Linux command is the only backup tool I'll ever need Join Our Team Our Audience About Us Press & Events Media Coverage Contact Us Follow Us Advertising Careers Terms Privacy Policies MakeUseOf is part of the Valnet Publishing Group Copyright © 2026 Valnet Inc.

How to Use the FILTER Function in Google Sheets,AI智能索引,全网链接索引,智能导航,网页索引

    The FILTER function in Google Sheets allows us to filter and return the rows that meet a set of specified criteria.