+ Reply to Thread
Results 1 to 5 of 5

Finding / searching multiple values in one cell

  1. #1
    Registered User
    Join Date
    08-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    45

    Finding / searching multiple values in one cell

    Hey guys,

    For the purpose of this question I'm going to use animals as an example. I have a list of animals (Range: D2:D5) and I want to see if any of the animals in that list appear in a specific cell (Range: B2). The cell is formatted the following way:

    Animal name / animal name / animal name etc

    If an animal is found in the above cell then I would like to return a 1 next to it.

    I've tried to do this using the following array formula, but am having no luck:

    {=IF(FIND(D2:D5,B2,1)>1,1,0)}

    Could anyone please help me out as to where I'm going wrong? I have attached a sample sheet with how my results would look if it will help you get the picture.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Finding / searching multiple values in one cell

    Hi, array formula, but (your example) "ant" is part of elephant and it's tricky.

    Please Login or Register  to view this content.
    Hope it help

    Regards
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    08-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    45

    Re: Finding / searching multiple values in one cell

    Thank you for your reply. Maybe I chose the wrong examples - for my actual data it won't have the problem you specified above as they are all three digit numbers. Does this make a difference to the formula you posted?

    Edit: Have just tried and that works great. Thanks very much Canapone.

  4. #4
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Finding / searching multiple values in one cell

    Hi,

    thanks for ypur kind feedback.

    Regards

  5. #5
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Finding / searching multiple values in one cell

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1