+ Reply to Thread
Results 1 to 5 of 5

searching a table for only parts of the search term, giving that part out if found

  1. #1
    Registered User
    Join Date
    12-11-2020
    Location
    Freiburg, Germany
    MS-Off Ver
    Office 365
    Posts
    2

    searching a table for only parts of the search term, giving that part out if found

    Hi,
    my input would be a chemical (eg indium phosphide). That input on sheet1 shall be compared with an existing list of critical raw materials on another sheet, and if it finds parts of the input search term in the list give out the name of the value in the CRM-list (in that case indium) on sheet1.

    Is there a way to do that?

    Please let me know if I missed crucial information or posted in the wrong forum.

    Thanks for your answers, I m curious if someone s got a nice solution.
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: searching a table for only parts of the search term, giving that part out if found

    Delete the - from column C.

    In F7, copied down:
    =IF(C7="","",INDEX('Valuable_&_CRM'!A:A,SUMPRODUCT(--(ISNUMBER(SEARCH('Valuable_&_CRM'!A$3:A$55,C7)))*ROW('Valuable_&_CRM'!A$3:A$55))))

    In Germany, you may need to use ; instead of ,
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    12-11-2020
    Location
    Freiburg, Germany
    MS-Off Ver
    Office 365
    Posts
    2

    Re: searching a table for only parts of the search term, giving that part out if found

    Hi Glenn,

    thanks for your fast reply. I translated your formula and it worked well for indium phosphide. I copied it down and I m getting a #SPILL error. Any ideas? Here are some more substances I tested with:
    ethylvinylacetate
    polyethylene terephthalate
    polyvinylfluoride
    copper
    polyethylene
    lead
    copper
    tin
    1-propanol

    On a side note: Do you have a recommendation where I can read up, so I understand what your formula is doing?

    Best
    Marvin

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: searching a table for only parts of the search term, giving that part out if found

    Hi. Certified Reference Materials!! Ha. Brings back memories of making them!!

    I've only had 365 for a few days and am stillgetting to grips with #SPILL.

    =IF(C7="","",IFERROR(INDEX('Valuable_&_CRM'!A:A,1/(1/SUMPRODUCT(--(ISNUMBER(SEARCH('Valuable_&_CRM'!A$3:A$55,C7)))*ROW('Valuable_&_CRM'!A$3:A$55)))),""))

    fixes it.

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.
    Attached Files Attached Files

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: searching a table for only parts of the search term, giving that part out if found

    Best way to see what's happening is to cut the range down to about 6 or so rows and enter one search term that IS present. Then use Formulas/Formula auditing/evaluate formula to step through the formula. If you get stuck... shout.

    You need to cut it down to about 5-10 rows 'cos (very annoyingly) the dialogue box cannot be resized.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. If search term is not found when naming a range.
    By Traziness in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-19-2020, 10:53 AM
  2. Replies: 10
    Last Post: 03-02-2020, 11:17 AM
  3. Automatically Searching a Search Engine Not Recognizing Search Term
    By mattman123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-28-2017, 02:03 PM
  4. [SOLVED] Possible use of VBA to clear cell content if a search term is found
    By s_bruno1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-17-2017, 08:33 AM
  5. Searching Column for Part of a Term
    By Erenagh in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-22-2011, 12:55 PM
  6. Replies: 1
    Last Post: 03-24-2009, 04:35 AM
  7. Replies: 3
    Last Post: 07-12-2006, 10:15 AM

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