Numbers: Search spreadsheet by any word or partial string

I've created a searchable Numbers spreadsheet. Mostly, it uses a Find formula that returns TRUE (1) along with the use of Filters. In a search cell in one table, I can type the first word in a search (or just the first 1 or more letters of the first word) to automatically filter that word in a column list, in another table. Sometimes there are two words that I am searching for, but I can only remember the second word. If I search for the 2nd word, I get no results (e.g., "interest" vs "interest promotional").

What combination of formula and Filter can I use that will allow me to filter by either the first or the second word? Ideally, I would like to be able to search for any string of letters in the target, including spaces between words (e.g., "interest promotional", "interest", "promotional", "teres", "rest promot", "motional").

If you have a solution, thanks in advance.

Mac mini, macOS 12.7

Posted on Mar 2, 2026 11:58 PM

Reply
Question marked as Top-ranking reply

Posted on Mar 3, 2026 7:30 AM

With the search string in A1 and the data in column A of a table named 'Data' you can do this in the first cell where you want the results, in this example A2:


=FILTER(Data::A, ISNUMBER(FIND(A$1, Data::A)), "no match")




If you need case-insensitive, try SEARCH instead of FIND.


As always, you need enough empty cells below for the formula to "spill".


SG

12 replies
Question marked as Top-ranking reply

Mar 3, 2026 7:30 AM in response to ewen256

With the search string in A1 and the data in column A of a table named 'Data' you can do this in the first cell where you want the results, in this example A2:


=FILTER(Data::A, ISNUMBER(FIND(A$1, Data::A)), "no match")




If you need case-insensitive, try SEARCH instead of FIND.


As always, you need enough empty cells below for the formula to "spill".


SG

Mar 4, 2026 12:13 PM in response to ewen256

The question mark is a wildcard in the SEARCH function, as is the asterisk. If you precede it with a ~ in your search word it will treat it as the actual character. Or you can go back to using FIND, which does not use any wildcards, and fix the case problem by converting everything to upper case.


So, to find the word "interest?" you would search for "int~?"

or

=IFERROR(FIND(UPPER(Table 2::$A$2),UPPER($A2))>0,"")

Mar 3, 2026 4:00 PM in response to Badunit

It worked! It even works with numbers and combinations of numbers and letters. The only thing that it wouldn't work with is a question mark (?). Can't figure out that one.

I just made one change. I used the suggestion by SGIII to change FIND to SEARCH to make it case-insensitive.


Final result, =IFERROR(SEARCH(Table 1::$A$2,A2)>0,"")


Now the whole thing is the way I wanted.


Many thanks.

Mar 9, 2026 3:29 PM in response to ewen256

Got it. It is the blank rows in your data table getting filtered out when your search term is blank. This is just a difference in what FIND and SEARCH do under those conditions. FIND will be TRUE on those blank rows but SEARCH will be an error. When using SEARCH, those rows get filtered out. You can see what is going on if you turn the filter off.


From an earlier post of yours I thought the problem with SEARCH was question marks being interpreted as wildcards instead of characters. FIND doesn't use wildcards so no problem with it.


You can use UPPER to counteract the case sensitivity of FIND


=FIND(UPPER(Table 1::$A$2),UPPER(A2))>0



Mar 9, 2026 12:39 PM in response to Badunit

Sorry, it's difficult for me to explain. I'll try to explain sequentially.


  1. I have a one-cell table (Table 1:Search Entry) that is my Search Entry, and it is blank.
  2. I have a one-column table (Table 2:Country of Birth) that is my Search Source, and it has some filled and some blank cells.
  3. I'm using a extra column with a FIND(Table 1::$A$2,Table 2::A2)>0 formula to return TRUE or FALSE.
  4. I have a sidebar Filter for the extra column that "says", Text is TRUE.
  5. When I turn on the sidebar Filters, nothing happens until I type something into my Search Entry cell. This is what I want, except for the case-sensitivity.
  6. When I change the FIND function in #3 to the SEARCH function, then turn on the sidebar Filter function, the Filter works right away, even though I haven't typed anything into the Search Entry cell.


FIND works the way I want, except for that fact that it won't give me case-insensitivity.

SEARCH gives me case-insensitivity, but it filters unexpectedly when I have some blank rows.

Mar 9, 2026 10:49 AM in response to ewen256

To keep my searches case-insensitive, I experimented with the SEARCH function in my Apple Numbers database, for a while, but it didn't want to play well with the empty Search Source cells in a column. I found that it unexpectedly activated the sidebar Filter so that, even if the Search Entry cell in a column was empty, the Filter activated and eliminated the rows that had those blank cells, before I even typed something into the Search Entry cell.

I reverted to using the FIND function because it didn't activate the Filter, until I actually typed something into the Search Entry cell. However, the FIND function didn't allow me to search using case-insensitivity.

Is there a way to search with case-insensitivity that will not activate the Filter sidebar, when there are empty Search Source cells in a column, until I type something in the Search Entry cell?

Thanks, in advance.

Mar 9, 2026 11:32 AM in response to ewen256

I don't understand. I have never seen anything turn filters on/off except by me doing it myself. I suspect you have the filter ON all the time and you are seeing the result of the functions, and the filter doing what the filter is supposed to do.


You should be able to type in the search cell without anything changing with the rows being filtered out, until you hit Enter or Tab or something else that locks in the new search term. But if you hit Delete to clear out the old term first, that will change the search term to null and that will change what rows are filtered out. If you are seeing the filtered rows change after each letter you type, you'll have to explain some more. I've not seen that.


FIND along with UPPER or LOWER lets you search without case sensitivity. You just make everything upper or lower case and there is no case sensitivity to worry about.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Numbers: Search spreadsheet by any word or partial string

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.