• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Problem with Excel Index function and partial or fuzzy match

Modonnell43

New Member
Can someone please help me identify a problem with an index function that I am using?

What I currently have seems to be working in reverse, with respect to making a partial/fuzzy string match.

The index function follows:

=INDEX($K$2:$K$12, SMALL(IF(COUNTIF($A2,"*"&$J$2:$J$12&"*"), ROW($J$1:$J$11), ""), COLUMN(A1)))

I have attached the excel file. If you could be kind enough to take a look and let me know how I might fix this I would be grateful.

What I need to do is make the input cell $A2 (above) able to accept partial text strings and match a full text string in column J.

In other words if cell A2=Apple and cell J2=Apple Computers Inc., the match would occur.

Then it will return all emails that are associated with Apple. (this part currently works as long as I use the exact string in column A)

-Thank you
 

Attachments

  • Multiple email look up.xls
    91.5 KB · Views: 11
Try ARRAY formula (CSE formula) in C2 and copy across
Code:
=IF($A2="","",IFERROR(INDEX($K$2:$K$12,SMALL(IF(ISNUMBER(SEARCH($A2,$J$2:$J$12)), MATCH(ROW($J$2:$J$12),ROW($J$2:$J$12)),""),COLUMN(A1))),""))
 
Try ARRAY formula (CSE formula) in C2 and copy across
Code:
=IF($A2="","",IFERROR(INDEX($K$2:$K$12,SMALL(IF(ISNUMBER(SEARCH($A2,$J$2:$J$12)), MATCH(ROW($J$2:$J$12),ROW($J$2:$J$12)),""),COLUMN(A1))),""))

That did the trick. Thank you so much for your help!
 
Back
Top