Search function + results based on results of search

Copper Contributor

Hi Excel Masters!

 

I have a situation here. I've created a search function where I can search a data set by typing in a client name (or partial name), and my table will return all entries with at least a partial match. I.e. search "Ohio" and it returns Ohio State, Ohio State University, Ohio River, etc. That part of the search tool works great. My issue comes in the associated columns of the search results.

The search results can produce duplicates of the client name (Ohio State, Ohio State, etc.) but each client entry (duplicate or not) will have a unique column associated (project names) that I want to populate along side. i.e. [Ohio State - Football Impact] [Ohio State - Baseball Record] 

If the project name doesn't contain the search term, it doesn't pull that into the results, causing the results in project name to get misaligned. I believe that is the root of the issue, as I have other columns that work off of the project name column. 

The formula I'm using to search the database and pull in the search results (works great):

 

=IFERROR(INDEX(Table3[Client],AGGREGATE(15,6,(ROW(Table3[Client])-ROW(Table3[[#Headers],[Client]]))/ISNUMBER(SEARCH(B$3,Table3[Client])),ROW(A1))),"")

 

B3 is the search box.

 

Do you guys have any idea how I can get the unique project name to populate along side it's (potential) duplicate client? Here's a screenshot of the problem: each client line entry has a unique project name.

kjdom8h824g31.png

0 Replies