+ Reply to Thread
Results 1 to 6 of 6

Search / Vlookup

  1. #1
    Registered User
    Join Date
    07-13-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    5

    Smile Search / Vlookup

    Hi. Im just new here and not really that good in excel software. Just wanna ask if is it possible to combine SEARCH function and VLOOKUP function. Because i wanted to search for a particular name: example

    in column A

    excel programming
    how to use excel
    basic excel guides
    basic codes for ..........
    codes for ..........
    programming codes........

    in column B

    here i will make a querry for column B from column A where i will search for a string like "EXCEL" w/c will return a value like "HI!" and if im looking for a word "CODES" it will return "HELLO"...

    in short i have a lot of criteria to be searched and that i will use SEARCH function (because it is not case sensitive unlike VLOOKUP that has limited function)..

    Hoping for you great help.
    thanks
    Last edited by weakpoako; 07-13-2011 at 08:24 PM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Search / Vlookup

    You could try using a nested if statement
    Please Login or Register  to view this content.

    Where if the string to search for is found a number will be returned, the position is found at.
    Hence ISNUMBER(SEARCH("Excel",A2)) = TRUE if found =FALSE if not.

    Hope this helps.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Registered User
    Join Date
    07-13-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Search / Vlookup

    thanks for the reply marcol but unfortunately im not just searching for 2 strings.. how about if im querrying for more than 15 strings/criteria?
    im using excel 2003 and has limited formula. it can only cope up to 6 function.
    thats why im asking if it is possible to combine vlookup and search function.

    example:

    In column a


    excel programming
    how to use excel
    basic excel guides
    basic codes for ..........
    codes for ..........
    programming codes........

    In Column B

    excel
    codes ------------------ this would be the value to be matched and SEARCHed and to be returned it column C..

    ---the process would be like this ( search strings in B in column A; and if it has it. Column C value = B---------

    is it possible? sorry for making this hard ^_^
    coz im just a noobs
    Last edited by weakpoako; 07-13-2011 at 05:10 AM.

  4. #4
    Valued Forum Contributor
    Join Date
    05-23-2011
    Location
    Lahore PK
    MS-Off Ver
    Excel 2007, 2013
    Posts
    627

    Re: Search / Vlookup

    Hi weakpoako

    look the attatched file for formula

    it is an array formula and should be confirmed thourgh Ctrl+shift+Enter
    Attached Files Attached Files
    Last edited by Azam Ali; 07-13-2011 at 05:29 AM.

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Search / Vlookup

    If you just want to know if any of the search words are in the string.
    Put the search words in say C2:C15 (no blanks)

    Then in Column B this array formula
    Please Login or Register  to view this content.
    Enter with Ctrl+Shift+Enter not just Enter.
    Drag/Fill Down.

    If you need to identify each string as found with a unique value then that's a different matter. (Probably using two or more nested IFs in seperate columns would be easiest.)

    [Edit]
    Try this workbook.

    If more than one search word is found in the string, what should the returned value be?

    Hope this helps.
    Attached Files Attached Files
    Last edited by Marcol; 07-13-2011 at 06:38 AM.

  6. #6
    Registered User
    Join Date
    07-13-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Search / Vlookup

    Thanks both of you.. It works..
    thats what i really wanted to do..
    ^_^

    i forgot that it is an array and needed to be ctrl+shift+enter
    god bless and more powers

    now i solved the riddle in what i am trying to do..
    a job well done
    Last edited by weakpoako; 07-13-2011 at 11:00 PM.

+ 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