How to Filter Rows by Status in Excel?
Filtering data by specific criteria can streamline your analysis. Use dynamic arrays in Excel 365 to easily return only active rows.
Formula Genius can generate a draft from a plain-English prompt. Supported formulas can be checked with sample cases; review the coverage on the result.
The formula
"Return only rows from a table where a status column equals 'Active', using Excel 365 dynamic arrays"
=FILTER(A2:C100, B2:B100 = "Active")
This formula filters a range to return only the rows where the status column equals 'Active'.
Step-by-step breakdown
- FILTER function specifies the range to filter.
- A2:C100 is the range of data to return.
- B2:B100 is the column containing the status values.
- "Active" is the criteria for filtering.
Edge cases & warnings
- No rows match the criteria, resulting in a #CALC! error.
- The status column contains mixed case values, which may lead to unexpected results.
- Blank cells in the status column may affect the output.
- Using a dynamic range that exceeds the actual data range can lead to incorrect filtering.
Examples
"Table with statuses: Active, Inactive, Active"
Returns only the rows with 'Active' status.
"Table with mixed statuses: Active, Pending, Active"
Returns only the rows with 'Active' status.
Frequently asked questions
Can I filter by multiple criteria?
Yes, you can use logical operators to combine multiple conditions.
What happens if there are no active rows?
The formula will return a #CALC! error if no rows match.
Is this formula compatible with older versions of Excel?
No, this formula requires Excel 365 or later due to dynamic array support.
Can't find what you need?
Describe a formula in plain English. Formula Genius drafts and explains it, and can check supported formulas on sample cases.