WorkbookLogic
FormulaFreeDynamic ArraysintermediateFILTERCOUNTIFSIFAND

Filter Rows with Multiple Criteria

By WorkbookLogic

Return complete records only when a category and numeric threshold both match, using Boolean multiplication to create an AND test inside a dynamic FILTER formula.

ExcelLast reviewed Sep 11, 2026
filter-with-multiple-criteria-v1.0.0.xlsxFree
Filter with Multiple Criteria, Formula Review
FILTER returns matching rows; Boolean multiplication combines two tests with AND logic.
1. FILTER with one visible criterion
NameGroupScoreCriterionValue
AvaA92GroupA
BenB87
CaraA80=FILTER(A12:C16,B12:B16=F12,"No data")
DiegoA88
EliC91NameGroupScore
AvaA92
CaraA80
DiegoA88
2. Boolean tests combine into one include array
NameGroupScoreCriterionValueGroup testScore testAND include
AvaA92GroupATRUETRUE1
BenB87Score >80FALSETRUE0
CaraA80TRUEFALSE0
DiegoA88TRUETRUE1

Overview

Return complete source rows only when every selected condition is true. The example filters a performance list for Group A records with scores above 80 and spills the matching names, groups, and scores from one formula.

When to use it

Use it for dashboard detail lists, exception queues, pipeline views, or operational reviews where several editable conditions define the required records. It suits normalized data with one record per row and aligned fields for every test.

When not to use it

Use Boolean addition when the requirement is OR rather than AND. Excel’s interface filters are sufficient for one-off inspection, while Power Query is more appropriate for large recurring imports, transformations, and persisted extracts. Use a helper column if the eligibility rule must remain visible beside each source row.

Problem

FILTER accepts one include array, but the required population depends on two tests. Applying only one test returns an overbroad set, while adding Boolean arrays allows a row through when either test is true. AND logic must combine both conditions at the same row.

Inputs

Input

Location

Sample

Selected group

Combined Example!F12

A

Score threshold

Combined Example!F13

80

Source data

The synthetic source occupies Combined Example!A12:C23 and contains Name, Group, and numeric Score. The four Group A records are:

Name

Group

Score

Ava

A

92

Diego

A

88

Gia

A

95

Jon

A

80

Each row is one record. All returned and criteria ranges cover rows 12 through 23. Sorting and duplicate scores do not affect eligibility. Blank or nonnumeric scores should be handled explicitly if they can occur.

Calculations

  1. Compare each Group with the selected group.
  2. Compare each Score with the exclusive lower threshold.
  3. Multiply the two TRUE/FALSE arrays, converting a row to 1 only when both tests pass.
  4. Pass that combined array to FILTER.
  5. Return a controlled No data message if no row qualifies.

Outputs

The formula spills three rows: Ava (92), Diego (88), and Gia (95). Jon’s score of exactly 80 is excluded because the comparison is strictly greater than. The result contains three columns and resizes as the qualifying population changes.

Formula map

=FILTER(A12:C23,(B12:B23=F12)*(C12:C23>F13),"No data")

A12:C23 is the returned array. The two aligned tests form the include array; multiplication implements AND logic. Enter the formula once in Combined Example!H12 and keep the destination area clear for the spill.

Model checks

The workbook confirms that the supplied criteria return three records and that every displayed sample row belongs to Group A with a score above 80. Passing tests return OK.

Edge cases

  • A score equal to 80 is excluded; use >= for an inclusive boundary.
  • A row satisfying only one condition is excluded.
  • No qualifying rows return the text No data.
  • Occupied cells in the result area produce #SPILL!.
  • Criteria arrays with different row counts cause a calculation error.
  • Errors in a tested source cell can propagate into the include array.

Common errors

  • Adding the tests: this implements OR and admits partial matches. Multiply them for AND.
  • Using mismatched ranges: row positions no longer correspond. Keep all arrays on identical boundaries.
  • Typing into the spill range: the result cannot expand. Reserve a clear output area.

Example

For Group A, the scores are 92, 88, 95, and 80. The first three satisfy score > 80; the fourth does not. The Boolean products are therefore 1, 1, 1, 0, and FILTER returns the three complete qualifying records.

Example workbook

Replace the cream source records in Combined Example!A12:C23 or the criteria in F12:F13. The result spills from H12, with match count and checks nearby. Formula Review shows each Boolean test separately before combining them.

Key takeaway

Multiply aligned Boolean tests to create AND logic inside FILTER, and reserve enough empty space for the complete matching record set to spill.