Excel FILTER Function
Excel FILTER Function
The FILTER function in Excel is utilized to channel a scope of information in light of the rules that you determine.
The capability has a place with the class of Dynamic Arrays capabilities. The outcome is a variety of values that consequently spills into a scope of cells, beginning from the cell where you enter an equation.
Let see an example below:
Purpose
Filters range with given criteria
Return value
Array of filtered values
Syntax
=FILTER (array, include,
[if_empty])
Arguments
- array - Range or array to filter.
- include - Boolean array, supplied as criteria.
- if_empty - [optional] Value to return when no results are returned.
Version
Excel 2021
Usage notes
The FILTER capability "channels" a scope
of information in view of provided measures. The outcome is a variety of
matching qualities from the first reach. In plain language, the FILTER
capability will separate matching records from a bunch of information by
applying at least one sensible tests. Intelligent tests are provided as the
incorporate contention and can incorporate numerous sorts of recipe measures.
For instance, FILTER can match information in a specific year or month,
information that contains explicit text, or values more noteworthy than a
specific limit.
The FILTER capability takes three contentions: exhibit, incorporate, and if_empty. Cluster is the reach or exhibit to channel. The incorporate contention ought to comprise of at least one legitimate tests. These tests ought to return TRUE or FALSE in view of the assessment of values from exhibit. The last contention, if_empty, is the outcome to return when FILTER tracks down no matching qualities. Regularly this is a message like "No records found", yet different qualities can be returned too. Supply an unfilled string ("") to not show anything.
The outcomes from FILTER are dynamic. At the point when values in the source information change, or the source information cluster is resized, the outcomes from FILTER will refresh consequently. Results from FILTER will "spill" onto the worksheet into numerous cells.
In the above example, the formula in F5 is:
=FILTER(B5:D14,D5:D14=H2,0)
Since the value in H2 is "red", the FILTER function extracts data from array where the Group column contains "red". All matching records are returned to the worksheet starting from cell F5, where the formula exists.
Values can be
hardcoded as well. The formula below has the same result as above with
"red" hardcoded into the criteria:
=FILTER(B5:D14,D5:D14="red",0)
For more examples and understanding please comment or
fill the contact us form.