0
votes

When I try to use the code in Google Sheets

=Filter(NKBPurchase!N2:N, isNumber(Search(D2, NKBPurchase!N2:N)), "Not Found")

I am getting an error stating the undermentioned

FILTER has mismatched range sizes. Expected row count: 947. column count: 1. Actual row count: 1, column count: 1.

Please suggest how to solve this issue.

2
Could you share a sample of your actual data and expected results? It is difficult to understand what you are actually trying to do. - marikamitsos

2 Answers

0
votes

You need to closeout the ranges. Replace

N2:N

with:

N2:N9999

or another appropriate value.

0
votes

According to the Filter function documentation:

condition arguments must have exactly the same length as range.

Your first condition "isNumber(Search(D2, NKBPurchase!N2:N))" is ok because it has the same length as the range (first argument). But your second condition is just one single value hence not having the same length as the range, you could just delete this second condition and the function will work.