How can I use Google Sheets to pull data from another sheet based on specific criteria? 2

How can I use Google Sheets to pull data from another sheet based on specific criteria?

Google Sheets is a powerful tool that allows users to organize and analyze data in a spreadsheet format. One useful feature of Google Sheets is the ability to pull data from one sheet to another based on specific criteria. This means that users can easily filter and extract relevant data from a large dataset without having to manually copy and paste it. This feature can be useful for creating reports, analyzing trends, and making data-driven decisions. To use this feature, users can use functions such as “VLOOKUP” or “QUERY” to specify the criteria and retrieve the desired data from a different sheet. This not only saves time and effort but also ensures accuracy and consistency in data analysis. With this capability, Google Sheets becomes an efficient tool for managing and manipulating data for various purposes.

Google Sheets: Pull Data from Another Sheet Based on Criteria


You can use the QUERY function in Google Sheets to pull data from another sheet that meets specific criteria.

You can use the following syntax to do so:

=query(Sheet1!A1:C11, "select * where A='Mavs'", 1)

This particular example pulls data from the range A1:C11 in Sheet1 only for the rows where the value in column A is equal to Mavs.

Note: The last argument of 1 specifies that the range A1:C11 contains a header row.

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

Example: Pull Data From Another Sheet Based on Criteria in Google Sheets

First, let’s enter the following dataset into the first sheet of a Google Sheets spreadsheet:

Now suppose we would like to pull each of the rows that contain “Mavs” in the Team column into Sheet2.

To do so, we can type the following formula into cell A1 in Sheet2:

=query(Sheet1!A1:C11, "select * where A='Mavs'", 1)

Once we press ENTER, all of the rows where the Team columns is equal to Mavs will be pulled into Sheet2:

Google Sheets pull data from another sheet based on criteria

Notice that all three rows where the Team column is equal to Mavs have been pulled from Sheet1 into Sheet2.

Also note that you can use the and operator within the QUERY function to pull data based on multiple criteria.

For example, we can use the following syntax to pull data from Sheet1 where the value in the Team column is equal to Mavs and the value in the Points column is greater than 20:

=query(Sheet1!A1:C11, "select * where A='Mavs' and B>20", 1)

The following screenshot shows how to use this formula in practice:

Notice that the two rows where the Team columns is equal to Mavs and the Points column is greater than 20 have been pulled from Sheet1 into Sheet2.

Cite this article

stats writer (2024). How can I use Google Sheets to pull data from another sheet based on specific criteria?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-use-google-sheets-to-pull-data-from-another-sheet-based-on-specific-criteria/

stats writer. "How can I use Google Sheets to pull data from another sheet based on specific criteria?." PSYCHOLOGICAL SCALES, 25 Jun. 2024, https://scales.arabpsychology.com/stats/how-can-i-use-google-sheets-to-pull-data-from-another-sheet-based-on-specific-criteria/.

stats writer. "How can I use Google Sheets to pull data from another sheet based on specific criteria?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-use-google-sheets-to-pull-data-from-another-sheet-based-on-specific-criteria/.

stats writer (2024) 'How can I use Google Sheets to pull data from another sheet based on specific criteria?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-use-google-sheets-to-pull-data-from-another-sheet-based-on-specific-criteria/.

[1] stats writer, "How can I use Google Sheets to pull data from another sheet based on specific criteria?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.

stats writer. How can I use Google Sheets to pull data from another sheet based on specific criteria?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.

Download Post (.PDF)
Slide Up
x
PDF
Scroll to Top