Google Sheets FILTER Has Mismatched Range Sizes: How to Fix It

Published by AppFixLab · Published · Updated

Quick answer

FILTER requires each condition array to have the same length as the data range along the dimension being filtered. A common error is selecting A2:C100 for the results but B2:B99 for the condition. Make their first and last rows align. If you are using Data → Create a filter rather than a FILTER formula, see missing rows in a menu filter.

=FILTER(A2:C100,B2:B100="Active")

The example returns rows of A2:C100 whose column B is Active.

Diagnose range-size mismatch

Data rangeCondition rangeResult
A2:C100B2:B100Matching row counts
A2:C100B2:B99One fewer row in condition
A2:C100B:BEntire column instead of matching rows

An apparently harmless header inclusion can also cause the dimensions to differ. Use either consistent header-inclusive ranges or, more commonly, start the filtered data and condition at row 2.

Fix 1: Align both ends

Check each argument after the first:

=FILTER(A2:C100,B2:B100="Active",C2:C100>0)

Both conditions cover rows 2 through 100. If you change the data range to start at row 3, adjust the conditions too.

Fix 2: Avoid mixed row and column conditions

Google documents that a single FILTER can filter rows or columns, but not both dimensions simultaneously. A vertical condition range and a horizontal condition range cannot be mixed inside the same call. Use a nested FILTER approach only when you genuinely need both operations.

Fix 3: Separate size errors from no-match errors

A well-formed FILTER that matches no rows returns #N/A, which is a different situation from mismatched dimensions. Confirm your data actually meets the predicate before changing formulas. If an empty result is expected, consider IFNA for presentation—but do not hide a structural range error.

Fix 4: Keep ranges intentional as data grows

Open-ended ranges such as A2:C with B2:B can stay aligned as new rows are added, but may scan many blank rows. Use the simplest range that fits your sheet’s size and performance needs.

Formula checklist

  1. Highlight the data range and note its first and last rows.
  2. Check each condition range begins and ends on the same rows.
  3. Confirm all conditions filter in the same direction.
  4. Verify that the boolean test uses the right column and actual data type.

Sources


Editorial note: Examples are illustrative and based on the linked documentation; no firsthand product test is claimed.

Related guides