+ Reply to Thread
Results 1 to 2 of 2

Problem involving approximate table look-up and return value

  1. #1
    Registered User
    Join Date
    05-27-2010
    Location
    Melville, NY
    MS-Off Ver
    Excel 2007
    Posts
    2

    Problem involving approximate table look-up and return value

    Hello all,

    So this is the layout of my problem. I have one workbook that has first and last name in two separate columns. Column A is First Name, Column B is Last Name. I have another workbook in which Column A's data takes the form of "Last Name, First Name Middle Initial" . Workbook 2 is a table of the names of clients that qualify under the value, "Risk". Workbook 1 is just the general list of all clients. How would I make excel check those who qualify "risk" in workbook 2, and insert the value "risk" next to the names in Workbook 1.

    Thank in advance!

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Problem involving approximate table look-up and return value

    Possibly something like:


    =VLOOKUP(B2&", "&A2&"*",'Sheet2'!A:B,2,0)

    or

    =VLOOKUP(B2&"*"&A2&"*",'Sheet2'!A:B,2,0)

    where Sheet2 column B contains the word to extract.

    If you don't want other words to be pulled and only if it is "Risk" then wrap an IF() function

    =IF(VLOOKUP(B2&"*"&A2&"*",'Sheet2'!A:B,2,0)="Risk","Risk","")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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