Table of Contents
The FILTER function in Google Sheets is a powerful tool that allows users to extract specific data from a large dataset based on specific criteria. By using the FILTER function, users can easily and efficiently narrow down their data to only show information that meets their desired conditions. This function is particularly useful for organizing and analyzing large amounts of data, as it eliminates the need for manual sorting and filtering. With the ability to specify multiple conditions, the FILTER function provides a customizable and precise way to retrieve data from a spreadsheet. Overall, the FILTER function in Google Sheets is an essential tool for data analysis and organization, making it easier for users to extract and work with specific data sets.
FILTER function
Returns a filtered version of the source range, returning only rows or columns that meet the specified conditions.
Examples
Make a copy
Filters a range using different conditions.
[wpcc-iframe height=”300″ src=”https://docs.google.com/spreadsheet/pub?key=0As3tAuweYU9QdHhvUlROQUFTOTJOUXg2bGF0OGp2T3c&output=html&widget=true” width=”500″]
Sample Usage
FILTER(A2:B26, A2:A26 > 5, D2:D26 < 10)
FILTER(A2:C5, {TRUE; TRUE; FALSE; TRUE})
FILTER(A2:B10, NOT(ISBLANK(A2:A10)))
Syntax
FILTER(range, condition1, [condition2, ...])
range– The data to be filtered.condition1– A column or row containing true or false values corresponding to the first column or row ofrange, or an array formula evaluating to true or false.condition2 ...– [ OPTIONAL ] – Additional rows or columns containing boolean valuesTRUEorFALSEindicating whether the corresponding row or column inrangeshould pass throughFILTER. Can also contain array formula expressions which evaluate to such rows or columns. All conditions must be of the same type (row or column). Mixing row conditions and column conditions is not permitted.conditionarguments must have exactly the same length asrange.
Notes
FILTERcan only be used to filter rows or columns at one time. In order to filter both rows and columns, use the return value of oneFILTERfunction asrangein another.If
FILTERfinds no values which satisfy the provided conditions,#N/Awill be returned.
See Also
UNIQUE: Returns unique rows in the provided source range, discarding duplicates. Rows are returned in the order in which they first appear in the source range.
Cite this article
stats writer (2024). How can I use the FILTER function in Google Sheets to extract specific data based on certain criteria?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-use-the-filter-function-in-google-sheets-to-extract-specific-data-based-on-certain-criteria/
stats writer. "How can I use the FILTER function in Google Sheets to extract specific data based on certain criteria?." PSYCHOLOGICAL SCALES, 29 Jun. 2024, https://scales.arabpsychology.com/stats/how-can-i-use-the-filter-function-in-google-sheets-to-extract-specific-data-based-on-certain-criteria/.
stats writer. "How can I use the FILTER function in Google Sheets to extract specific data based on certain criteria?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-use-the-filter-function-in-google-sheets-to-extract-specific-data-based-on-certain-criteria/.
stats writer (2024) 'How can I use the FILTER function in Google Sheets to extract specific data based on certain criteria?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-use-the-filter-function-in-google-sheets-to-extract-specific-data-based-on-certain-criteria/.
[1] stats writer, "How can I use the FILTER function in Google Sheets to extract specific data based on certain criteria?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.
stats writer. How can I use the FILTER function in Google Sheets to extract specific data based on certain criteria?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
