Table of Contents
Using a custom formula in Google Sheets allows users to filter data in a specific and personalized way. This feature allows users to create a formula that checks for specific criteria in the data and only displays the desired results. This can be done by using functions such as IF, AND, OR, and other logical operators. By utilizing a custom formula, users can efficiently and accurately filter large sets of data to meet their specific needs and requirements. This feature is particularly useful for organizing and analyzing data in a more customized and efficient manner.
Google Sheets: Filter Using Custom Formula
Often you may want to filter data using a custom formula in Google Sheets.
Fortunately this is easy to do using the Filter by condition function.
The following example shows how to use this function in practice.
Example: How to Filter Using Custom Formula in Google Sheets
Suppose we have the following dataset that contains information about various basketball players:

Now suppose we’d like to filter the rows for where the Player column contains “Good” or “Great” in the name.
To do so, we can highlight the cell range A1:B12 and then click the Data tab along the top ribbon and then click Create a filter:

Next, click the filter icon next to Player and then click Filter by condition, then scroll all the way to the bottom of the list and click Custom formula is:

Type the following formula into the custom formula box:
=OR(REGEXMATCH(A:A,"Good"),REGEXMATCH(A:A,"Great"))

Once you click OK, the data will automatically be filtered to only show the rows where the Player column contains “Good” or “Great” in the name:

This is just one example of using a custom formula to filter rows in Google Sheets.
Additional Resources
Cite this article
stats writer (2024). How can I use a custom formula to filter data in Google Sheets?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-use-a-custom-formula-to-filter-data-in-google-sheets/
stats writer. "How can I use a custom formula to filter data in Google Sheets?." PSYCHOLOGICAL SCALES, 28 Jun. 2024, https://scales.arabpsychology.com/stats/how-can-i-use-a-custom-formula-to-filter-data-in-google-sheets/.
stats writer. "How can I use a custom formula to filter data in Google Sheets?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-use-a-custom-formula-to-filter-data-in-google-sheets/.
stats writer (2024) 'How can I use a custom formula to filter data in Google Sheets?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-use-a-custom-formula-to-filter-data-in-google-sheets/.
[1] stats writer, "How can I use a custom formula to filter data in Google Sheets?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.
stats writer. How can I use a custom formula to filter data in Google Sheets?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
