+ Reply to Thread
Results 1 to 3 of 3

Finding a word within a sentence

  1. #1
    Registered User
    Join Date
    01-30-2013
    Location
    Long Island NY
    MS-Off Ver
    Office 365
    Posts
    81

    Finding a word within a sentence

    The title of this post is a little misleading but it's close. I have a spreadsheet which has from 6 to 12 "words" in a column of cells. There are about 2500 rows in all.

    each of these "words" could be any number of letters or group of numbers. A space is used as the delimiter. There really isn't a consistent pattern to where each word might be within the cell.

    What I'd like to do is have excel look at each "word" in the cell and compare that word to a vlook up table that I'll also create. If I find a match in A2, I'll put it into B2. There would only need to be about 6 entities in the look up table.

    I'd repeat this process in 3 columns, as I'm looking for 3 different types of data. Luckily, the creator of the sheet maintained the same naming conventions, it's just that the names are liable to show up at any point within the cell.

    Any help would be greatly appreciated!

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Finding a word within a sentence

    Suggest posting a copy of the workbook with example output and look up table to help clarify. It doesn't need to have all the rows but should have the same overall structure.
    Martin

  3. #3
    Registered User
    Join Date
    01-30-2013
    Location
    Long Island NY
    MS-Off Ver
    Office 365
    Posts
    81

    Re: Finding a word within a sentence

    No need to upload the whole workbook but here's a typical entry:

    HANDLE ARTISAN ZN ANTIQUE BRASS M4 CTC 3"

    I'd be looking for "ZN", "HANDLE" and "BRASS" in this case.

    Here's another:

    PULL BR.NI.MATT M4 DIA.30X31MM


    In this case I'd be looking for "PULL" and "BR.NI.MATT"

    The thing to remember is that the substring I'm seeking can be anywhere within the cell and the cell can have any number of substrings
    Last edited by Michael D; 02-20-2013 at 04:54 PM.

+ 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