+ 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?

    "Also my countries are all " South Korea"(space before the first letter). How do I remove an initial space? And not all the spaces? Normally I would do a find and replace!"

    That first "space" appears to be some sort of other spacing character, perhaps as the result of you importing the file from some other software? If you go into the word, highlight that portion (this spacing character) of the string only, copy, then exit.

    Now do a Find & Replace by pasting this character into the Find what: field and leaving the Replace with: field blanks. That should remove all these but leave "normal" space characters untouched.

    Re First Names, please test this array formula** in G2:

    =IFERROR(INDEX(Sheet2!$D$3:$D$1221,MATCH(MAX(IF(ISNUMBER(SEARCH(Sheet2!$D$3:$D$1221,B2)),LEN(Sheet2!$D$3:$D$1221))),IF(ISNUMBER(SEARCH(Sheet2!$D$3:$D$1221,B2)),LEN(Sheet2!$D$3:$D$1221)),0)),"")

    Copy down as required.

    Regards


    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    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?

    TO SEND take 3.xlsx

    Please see the attached, not working. Am I doing something wrong?

+ 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