Google Sheets: How to Filter from Another Sheet


You can use the following basic syntax to filter data from another sheet in Google Sheets:

=FILTER(All_Teams!A2:C11, All_Teams!B2:B11="Western")

This particular function will return all rows in the range A2:C11 from the sheet titled All_Teams where the values in the range B2:B11 are equal to “Western.”

The following example shows how to use this syntax in practice.

Example: Filter from Another Sheet in Google Sheets

Suppose we have the following sheet named All_Teams in Google Sheets that contains some data about various basketball teams:

Now suppose we’d like to switch to the sheet titled Specific_Teams and only display the teams from All_Teams that are in the Western conference.

We can use the following syntax to do so:

=FILTER(All_Teams!A2:C11, All_Teams!B2:B11="Western")

Here’s how to use this formula in practice:

Notice that this FILTER function returns all rows from the All_Teams sheet where the conference column is equal to “Western.”

Potential Error #1: Mismatched Range Sizes

When using the FILTER function, you may receive an error if you use two ranges that are not of equal size.

For example, suppose we use the following FILTER function:

=FILTER(All_Teams!A1:C11, All_Teams!B2:B11="Western")

The first range A1:C11 does not contain the same number of rows as the second range B2:B11, so we’ll receive how an error:

To fix this error, simply make sure the two ranges contain the same number of rows.

Potential Error #2: Using Single Quotes

When using the FILTER function, you may receive an error if you use single quotes instead of double quotes.

For example, suppose we use the following FILTER function:

=FILTER(All_Teams!A1:C11, All_Teams!B2:B11='Western')

Since we wrapped the word Western in single quotes instead of double quotes, we receive how an error:

To fix this error, simply use double quotes.

Note: You can find the complete documentation for the FILTER function here.

Additional Resources

The following tutorials explain how to perform other common tasks in Google Sheets:

Google Sheets: How to Filter with Multiple Conditions
Google Sheets: How to Filter by Date Range
Google Sheets: How to Filter for Cells that Contain Text

4 Replies to “Google Sheets: How to Filter from Another Sheet”

  1. exactly what I’m looking for! thank you so much.
    I work at a library and my manager is forcing me to manage the books data in sheets. I made a main sheets where we insert all the data and use this formula to separate them by age group in other sheets.

    1. You are very welcome Daniel! Thank you for letting us know how you are putting your skills to work!

  2. Ok so now i have this set up. How do I add/change information and have it populate on the bottom of the list on the seconded tab instead of the top.

    1. Hi Jeremy…To ensure that newly added or changed information in **Google Sheets** populates at the **bottom** of the list in your second tab (instead of at the top), follow these steps:

      ### **Option 1: Use QUERY Function and Sort**
      If you’re using a formula like:
      “`excel
      =FILTER(Sheet1!A:B, Sheet1!A:A<>“”)
      “`
      New entries appear at the top when filtering.

      To **ensure new data appears at the bottom**, use:
      “`excel
      =QUERY(Sheet1!A:B, “SELECT A, B WHERE A IS NOT NULL ORDER BY A ASC”, 0)
      “`
      – This keeps the order intact and adds new entries at the bottom.

      —

      ### **Option 2: Append Data Instead of Replacing**
      If you’re manually entering new data but want it **added at the bottom automatically**, try **Apps Script**:

      1. Open your **Google Sheet**.
      2. Click **Extensions > Apps Script**.
      3. Replace any existing code with the following:

      “`javascript
      function appendData() {
      var ss = SpreadsheetApp.getActiveSpreadsheet();
      var sourceSheet = ss.getSheetByName(“Sheet1”); // Change to your source sheet name
      var targetSheet = ss.getSheetByName(“Sheet2”); // Change to your target sheet name

      var sourceData = sourceSheet.getDataRange().getValues();
      var targetData = targetSheet.getDataRange().getValues();

      // Remove header row if not needed
      sourceData.shift();

      // Append only new rows
      for (var i = 0; i < sourceData.length; i++) { var exists = targetData.some(row => row[0] === sourceData[i][0]); // Assuming unique ID in column A
      if (!exists) {
      targetSheet.appendRow(sourceData[i]);
      }
      }
      }
      “`

      4. Click **Run**.
      5. Set a **trigger** (**Edit > Triggers**) to run this function **every time Sheet1 updates**.

      —

      ### **Option 3: Use ARRAYFORMULA (If No Sorting Needed)**
      If sorting isn’t necessary, use:
      “`excel
      =ARRAYFORMULA(Sheet1!A:B)
      “`
      This automatically updates **Sheet2** whenever **Sheet1** changes.

      —

      ### **Let me know what works best for you!** 🚀

Leave a Reply

Your email address will not be published. Required fields are marked *