+ Reply to Thread
Results 1 to 6 of 6

3 way vlookup with search formula

Hybrid View

  1. #1
    Registered User
    Join Date
    04-01-2013
    Location
    Texas
    MS-Off Ver
    Excel Mac 2011 & Excel 2010 Windows
    Posts
    32

    3 way vlookup with search formula

    hello,

    I have a spreadsheet with 2 database and I want to use 3 way or 2 way vlookup up to get the missing column in database 2. This is a example but my actual data is 25K rows. I have attached the spreadsheet with an example. Any help will be great. Thank You
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: 3 way vlookup with search formula

    While I am looking at your file, Please update your profile as necessary to properly reflect the exact version(s) of Excel your question relates to. Members tailor answers based on your Excel version.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: 3 way vlookup with search formula

    You could try this ARRAY formula in cell M3 and fill it down:
    Formula: copy to clipboard
    =INDEX($E$3:$E$7,MATCH(1,(ISNUMBER(FIND(LEFT(I3,FIND(",",I3)-1),$A$3:$A$7))*($D$3:$D$7=L3)),0))

    Remember, ARRAY formulas are applied using CTRL + SHIFT + ENTER, not just ENTER!

    Also Mr. Brown's name is misspelled on one of the lists... not going to find matches with typos. I changed it to "Brown" and it looks like all of the correct matches were made.

    - Moo

  4. #4
    Registered User
    Join Date
    04-01-2013
    Location
    Texas
    MS-Off Ver
    Excel Mac 2011 & Excel 2010 Windows
    Posts
    32

    Re: 3 way vlookup with search formula

    Moo - Awesome! I understand what you did Moo. Would you call this a 3 way vlookup? Just for learning purposes, what if the Left 10 column (D & L) were not there, how would this formula change. Thanks once again.

    FDibbins - Sorry about that I have updated my profile. Thanks.

  5. #5
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: 3 way vlookup with search formula

    If the 'Left 10' column isn't used, getting the correct data is going to be more difficult, since you would just be matching last names... which could lead to mistaken duplication. But the formula would be a simpler non-array INDEX/MATCH formula:
    Formula: copy to clipboard
    =INDEX($E$3:$E$7,MATCH("*"&LEFT(I3,FIND(",",I3)-1)&"*",$A$3:$A$7,0))
    At least it seems to work for this small list...

    - Moo

  6. #6
    Registered User
    Join Date
    04-01-2013
    Location
    Texas
    MS-Off Ver
    Excel Mac 2011 & Excel 2010 Windows
    Posts
    32

    Re: 3 way vlookup with search formula

    Moo- that was the problem I ran into at the beginning when I did Index/Match but if you were to include other factors for example let's say they date, than this becomes a 3 way vlookup and I guess you would go back to your original formula. What I am trying to learn is if I can use the last name from Database 2 and the left 10 of address and date to find the ID from database 1. You have been very very helpful sir. Thanks a bunch

+ 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. Help with VLookup formula to search entire workbook
    By qabajjar in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-26-2015, 09:38 AM
  2. [SOLVED] IF or VLookup Formula to Search for a specific SKU and copy it into a different column
    By Sweden12 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-30-2014, 12:57 PM
  3. Replies: 9
    Last Post: 06-16-2013, 04:58 PM
  4. Need help with Search + Vlookup Formula
    By mattsolar in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-21-2012, 07:45 PM
  5. [SOLVED] Search specific text formula and vlookup
    By farrukh in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-19-2012, 03:26 PM

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