This formula relies on the FILTER function to retrieve data based on a logical test. The array argument is provided as B5:E15, which contains the full set of data without headers. The include argument is an expression that runs a simple test:
E5:E15=H4 // test state values
Since there are 11 cells in the range E5:E11, this expression returns an array of 11 TRUE and FALSE values like this:
To filter data to include only records where a value is this or that, you can use the FILTER function and simple boolean logic expressions. In the example shown, the formula in F5 is: = FILTER ( B5:D14 ,( D5:D14 = "red" ) + ( D5:D14 =...
To filter data to include data based on a "contains specific text" logic, you can use the FILTER function with help from the ISNUMBER function and SEARCH function . In the example shown, the formula in F5 is: = FILTER ( B5:D14 , ISNUMBER ( SEARCH...
The Excel FILTER function filters a range of data based on supplied criteria, and extracts matching records.
Excel Formula Training
Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.