+ Reply to Thread
Results 1 to 4 of 4

Keyword search within a single cell mixed with vlookup

  1. #1
    Registered User
    Join Date
    10-25-2010
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2007
    Posts
    21

    Keyword search within a single cell mixed with vlookup

    I have a function that appears to be working for the most part, but I want to change the output in the event that Excel does not find a true statement for me.

    In the attached test worksheet, I would like to search column D for keywords like "Highway" or "Planning" or "Operations" and have column D and E automatically update with corresponding industry and focus information. If that information is not available in Column D, I would like to have Excel vlookup Column C and find the corresponding information in the lookup array in the worksheet called 'Toggles' .
    The function I created seems to work, but I don't want '0' entries if excel doesn't find the info it is looking for. Rather, I would like it to report 'Not Defined'.

    Thanks in advance for your help.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Keyword search within a single cell mixed with vlookup

    if(vlookup=0,"not defined",vlookup)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    10-25-2010
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Keyword search within a single cell mixed with vlookup

    Quote Originally Posted by martindwilson View Post
    if(vlookup=0,"not defined",vlookup)
    Hi,

    Thanks for your prompt reply.

    Can you elaborate a bit on where I would insert this part of the statement into the function?

    Here is the function as it currently exists:
    =IFERROR(LOOKUP(2,1/ISNUMBER(SEARCH($AQ$34:$AQ$67,F6)),$AR$34:$AR$67),IFERROR(VLOOKUP(E6,Toggles!$S:$Y,4,FALSE),"Not Defined"))

    thx

  4. #4
    Registered User
    Join Date
    10-25-2010
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Keyword search within a single cell mixed with vlookup

    Quote Originally Posted by ndube50 View Post
    Hi,

    Thanks for your prompt reply.

    Can you elaborate a bit on where I would insert this part of the statement into the function?

    Here is the function as it currently exists:
    =IFERROR(LOOKUP(2,1/ISNUMBER(SEARCH($AQ$34:$AQ$67,F6)),$AR$34:$AR$67),IFERROR(VLOOKUP(E6,Toggles!$S:$Y,4,FALSE),"Not Defined"))

    thx
    I may have forgotten to include the attachment.
    If so, here it is again.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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