+ Reply to Thread
Results 1 to 2 of 2

Help with table lookup using matched text

  1. #1
    Registered User
    Join Date
    07-15-2014
    Location
    Maryland
    MS-Off Ver
    2010
    Posts
    1

    Help with table lookup using matched text

    I have a somewhat complex thing I am trying to do in Excel and I have had no luck playing with Vlookups or Index Match functions I have found. Here's a basic look at what I am doing.

    Sheet 1: List of codes in row 1, and keywords related to those codes in their respective columns. This list could grow as keywords are added over time, so the table array is essentially the entire sheet.

    Sheet 1 looks something like this (codes on top, and keywords below them), and the underscores are just to separate cells so it looks like a spreadsheet (ignore them), the keywords I put are just placeholders (imagine they are actual department/title names that contain many words with spaces between in Sheet 2, but in Sheet 1 they will be only single words):

    0001__0002__0003__0004
    and___big____find___many
    on____long___but___part


    Sheet 2: Descriptions of departments and/or titles. Sheet 2 looks something like this:

    Department____Title____Code
    and on________and____
    but___________but____
    many part_____long____
    big___________long____




    *What I am trying to do is search the text strings in sheet 2 (by row) for matches in sheet 1, and return the sheet 1, row 1 code associated and have it fill in the code column in sheet 2. Essentially I want to auto-populate sheet 2 with codes based on keywords from departments and titles by simply copying a single cell code down from the first row under Codes in Sheet 2.


    Ideally:
    *I would like to be able to search two columns of text strings (one being departments and one being titles) - If not, I can concatenate
    *I would like to be able to prioritize code lookups: so if 2 words found in the text strings from sheet 2 match one column code in sheet 1, but if three words match a separate column, the row 1 code that has more matches is returned.

    I hope this is enough information for somebody top be able to help. I would ideally prefer not to use pivot-tables or VBA, but if I need to rearrange a table I could. It's also ok if I need to tweak the setup (such as extracting individual words first and then matching them). Thanks for any help.
    Last edited by staticsnake; 07-15-2014 at 11:31 AM.

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Help with table lookup using matched text

    A sample book with expected results would be of more helps to all
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

+ 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. SOLVED Enter number and lookup matched subject
    By svayl in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-25-2012, 07:31 PM
  2. Replies: 4
    Last Post: 03-02-2012, 11:17 AM
  3. Lookup and Display of Matched Cell Data?
    By Nathanf in forum Excel General
    Replies: 5
    Last Post: 01-11-2012, 06:47 AM
  4. Replies: 1
    Last Post: 01-10-2011, 09:05 AM
  5. Lookup cell value in separate worksheet and return multiple matched values
    By jwhite68 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-19-2007, 12:17 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