+ Reply to Thread
Results 1 to 7 of 7

Advanced Matching Formula

  1. #1
    Registered User
    Join Date
    04-26-2013
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    33

    Advanced Matching Formula

    Example.xlsx

    Hey All,

    I was wondering if someone could help me with an advanced matching / look up formula for a specific scenario.

    I think I have to combine the VLOOKUP, IF and Match functions but Im not sure how to set it up.

    In the attached is a small example but for the project there are 1000's of record.

    I need to lookup the company name in Tab 1 and match it with Tab 2. Then in tab 2 under each product, map the proper version for that product from tab 1.

    Anyone have a formula idea for this?

    I appreciate all of your time!

    Thanks,

    -A

  2. #2
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Advanced Matching Formula

    Hi A,

    If you don't mind using a helper column, then the attached is a simple solution to your problem.

    Let me know if you have any questions.

    Thanks,
    Dennis
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    02-13-2013
    Location
    Rogers
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: Advanced Matching Formula

    If I understood correctly, the attached should be what you need. I added a Unique Identifier to your data(concatenation of company and product) in sheet 1. I then added in an extraction formula in sheet 2 to pull the company name values only once. Then did iferror and vlookup combo to keep the data clean. Does this do the trick?
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-13-2013
    Location
    Rogers
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: Advanced Matching Formula

    Nicely done, Dennis!

  5. #5
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Advanced Matching Formula

    Hello,

    Please see if the attached file is what you are looking for.

    All you have to do is drag the formula in Sheet2 down as far as you see blank (in the sample file, I dragged it down to row 30). You don't have to add any extra column or unique filter beforehand.
    Attached Files Attached Files
    Last edited by Lemice; 04-26-2013 at 08:35 PM.
    (copy pasta from Ford)
    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

    Regards,
    Lem

  6. #6
    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
    52,972

    Re: Advanced Matching Formula

    Hi and welcome to the forum

    Your profile says 2003, but the file you attached is for 2007 and later, please update your profile

    Try this. 1st, copy all of column A sheet1 to column A sheet2. Then, with that range still highlighted, select Data/remove duplicates
    then copy this array formula to B2...
    =IFERROR(INDEX(Sheet1!$A$1:$C$24,MATCH(B$1&$A2,Sheet1!$B$1:$B$24&Sheet1!$A$1:$A$24,0),3),"")
    Note: Array formulas are entered using CTRL SHFT enter, not just enter - you will see {} around the formula if you did it right

    Once you have that 1 entered, copy it down and across

    edit: nice solution Lemice note that the OP posted a .xlsx file, so you can shorten you formula with iferror()
    Last edited by FDibbins; 04-26-2013 at 05:54 PM.
    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

  7. #7
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Advanced Matching Formula

    Thanks FDibbins for pointing out that the OP posted a .xlsx file, thus making IFERROR a viable option. I have fixed the attached file and added another one just in case.
    Last edited by Lemice; 04-26-2013 at 08:37 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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