+ Reply to Thread
Results 1 to 47 of 47

SEARCH function for multiple variables - VLOOKUP?

Hybrid View

  1. #1
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: SEARCH function for multiple variables - VLOOKUP?

    Hi,

    If you list all your search strings (without the "dot") and their corresponding countries in a separate table, e.g. Sheet2 A1:B3, then your formula would become:

    =LOOKUP(17^17,SEARCH("*."&Sheet2!$A$1:$A$3&"*",C2),Sheet2!$B$1:$B$3)

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  2. #2
    Registered User
    Join Date
    02-05-2014
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: SEARCH function for multiple variables - VLOOKUP?

    That's fantastic.

    Please explain the 17^17 part, what does 17 refer to?

    I have extended the search range of the formula =LOOKUP(17^17,SEARCH("*."&Sheet2!$A$1:$A$500&"*",C4),Sheet2!$B$1:$B$500)

    How do I make it return a blank if it doesn't find a relevant search field? i.e. not #N/A. normally I put ,"" at the end.

    Can I apply this to First Name, company name etc?

    What if I have Andrew, Andre, Andrea. I will sort them alphabetically. Will it return Andre for Andrew?

    You're a star!

+ 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. Excel Vlookup, multiple sheets and multiple variables
    By caninekopz in forum Excel General
    Replies: 3
    Last Post: 11-27-2013, 10:33 AM
  2. How can I use VLOOKUP to search within a table contains 4 variables
    By medo82006 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-21-2013, 04:11 PM
  3. [SOLVED] Multiple Sheet Search - Matching Variables
    By plasma33 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-16-2012, 06:02 AM
  4. Excel 2007 : Using variables in a vlookup function VBA
    By tschiman in forum Excel General
    Replies: 0
    Last Post: 02-10-2012, 05:14 PM
  5. ISTEXT or SEARCH function with 2 variables
    By mobycane in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-08-2010, 04:49 AM

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