+ Reply to Thread
Results 1 to 7 of 7

Match single word to string of text

  1. #1
    Registered User
    Join Date
    09-25-2011
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    45

    Match single word to string of text

    Hi,

    I have a multiple items split into groups, and each group has a number assigned to it ("Groups" tab in attached workbook).

    I also have a list of items in the "List" tab. All of these items come from one of the groups in the "Groups" tab.

    What I need is to match the items in the "List" tab to corresponding group number in which the item is in on the other tab - the "List" tab shows what the end result should look like. The items can appear multiple times, and more than one item from the same group can also appear.

    Is this even possible?
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Match single word to string of text

    Try this, copied down...
    =INDEX(Groups!$A$2:$A$7,MATCH("*"&A2&"*",Groups!$B$2:$B$7,0))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    09-25-2011
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Match single word to string of text

    Thanks, that worked!

    So you're using wildcards to match, just for my understanding of the formula?

  4. #4
    Registered User
    Join Date
    09-25-2011
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Match single word to string of text

    Double post

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Match single word to string of text

    Yes I am. essentially, find "anything & the word & "anything"

  6. #6
    Registered User
    Join Date
    09-25-2011
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Match single word to string of text

    Awesome, thanks!

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Match single word to string of text

    Happy to help, thanks for the feedback

+ 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. Change the colour of single word in text string based on another cell value
    By joshnathan in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-03-2014, 09:41 AM
  2. [SOLVED] Find word in text string and return word adjacent to the left
    By eadamquinn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-06-2014, 03:22 PM
  3. Replies: 2
    Last Post: 08-05-2013, 04:45 PM
  4. Replies: 6
    Last Post: 02-06-2013, 07:45 PM
  5. [SOLVED] How to conditionally insert text string into a line after first word using Word 2010
    By staggers47 in forum Word Formatting & General
    Replies: 5
    Last Post: 12-08-2012, 11:07 AM
  6. Replies: 0
    Last Post: 07-11-2012, 06:05 AM
  7. Using FindNext to Quantify Change in 2 Single-Word String Lists
    By Veter in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-05-2008, 12:07 PM

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