+ Reply to Thread
Results 1 to 7 of 7

Multiple Text Search Within Cell of Table

  1. #1
    Registered User
    Join Date
    01-24-2013
    Location
    Denver
    MS-Off Ver
    Excel 2010
    Posts
    17

    Multiple Text Search Within Cell of Table

    Hello all:

    I'm seeing several possible solutions to this so far, but nothing quite close. I'm attempting to do a FIND with more than one characters within a string and which may not be in a particular order. Here's what I have so far, which is finding certain strings such as "POLY", "VINYL", and "NITRILE". Those all work ok; however, I'm trying to find "SYNTH" with "SM" or "SYNTH" with "MED", "SYNTH" "LG", etc. with wilcards to categorize those separately. I tried to use wildcards, but failing. Anything else falls under "OTHER" and the "SYNTH" rows are all showing up as "OTHER".

    =IF(ISERROR(FIND("POLY",[@[Product Description]],1))=FALSE,"POLY",IF(ISERROR(FIND("*SYNTH*XL*",[@[Product Description]],1))=FALSE,"SYNTH XLG",IF(ISERROR(FIND("*SYNTH*LG*",[@[Product Description]],1))=FALSE,"SYNTH LG",IF(ISERROR(FIND("*SYNTH*SM*",[@[Product Description]],1))=FALSE,"SYNTH SM",IF(ISERROR(FIND("*SYNTH*MED*",[@[Product Description]],1))=FALSE,"SYNTH MED",IF(ISERROR(FIND("VINYL",[@[Product Description]],1))=FALSE,"VINYL",IF(ISERROR(FIND("NITR",[@[Product Description]],1))=FALSE,"NITRILE","OTHER")))))))

    Thanks in advance! = )

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Multiple Text Search Within Cell of Table

    Hi,

    Could you post a workbook with a few examples and your expected outcome in each case?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    01-24-2013
    Location
    Denver
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Multiple Text Search Within Cell of Table

    I don't typically do this, but I was able to figure it out. I had to reconfigure the nested ifs, but also figure out the part with the SM, MED, LG descriptions and then work it into the rest of it. Took some finagling (sp?), but it worked out. I've attached a small sample as you suggested to help make a little more sense along with the revised formula. Thanks again!
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    01-24-2013
    Location
    Denver
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Multiple Text Search Within Cell of Table

    Here's the attachment:
    Attached Files Attached Files

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Multiple Text Search Within Cell of Table

    So is this thread closed now, then?

    Regards

  6. #6
    Registered User
    Join Date
    01-24-2013
    Location
    Denver
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Multiple Text Search Within Cell of Table

    Yes, thank you!

  7. #7
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Multiple Text Search Within Cell of Table

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. Replies: 11
    Last Post: 11-03-2013, 09:16 PM
  2. Search cell for multiple text , return comma separated text in separate cell if found
    By dangerdoug in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-01-2013, 01:52 PM
  3. Excel 2007 : Search for multiple text within a cell
    By northerng in forum Excel General
    Replies: 4
    Last Post: 01-27-2011, 11:50 PM
  4. Search a cell value that contains a text in a table
    By mhuddles1981 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-15-2010, 04:54 PM
  5. Find text in cell (search whole table)
    By bmind in forum Excel General
    Replies: 2
    Last Post: 06-17-2009, 04:11 PM

Tags for this Thread

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