+ Reply to Thread
Results 1 to 4 of 4

Need help combining multiple if Vlookup statements on multiple concatenated keys

  1. #1
    Registered User
    Join Date
    12-20-2011
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    40

    Need help combining multiple if Vlookup statements on multiple concatenated keys

    I am doing a data match project with 2 sets of data. I currently am running over 5 different vlookups based on unique keys I have created by concatenating various parameters and then indexing them using the countif function. Can someone help me consolidate this into one statement that can concatenate the keys I want, then do a simultaneous vlookup and return which ever match comes back? Sample Details below:

    Column I - Key1: =CONCATENATE(AK2,"-",W2,"-",ROUNDUP(ABS(S2),0),"-",AD2)
    Column J- Index Key1: =I2&COUNTIF($I$2:I2,I2)
    Column K - Vlookup:=VLOOKUP(J2,CGMI!$K$1:$X$16511,13,FALSE)

    This would be one Vlookup. I have different parameteres that I concatenate so im looking for a general statement I can use and add my other vlookups too. I want to run one Vlookup that incorporates multiple Vlookups and if one condition doesnt find a match, then run the second vlookup, and so one..

    Appreciate any help

  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
    52,936

    Re: Need help combining multiple if Vlookup statements on multiple concatenated keys

    This might be easier to do using index/match and/or using a helper column/s. Hard to say without seeing what you are working with, its hard to say.

    i would suggest you upload a sample work book, (all sensitive data removed), showing what data you are working with, a few examples of what your expected outcome is, and how you arrived at that
    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 Contributor
    Join Date
    02-28-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    272

    Re: Need help combining multiple if Vlookup statements on multiple concatenated keys

    Yes before VLOOKUP put IFERROR

    Please Login or Register  to view this content.
    Please consider adding a * if I helped

  4. #4
    Registered User
    Join Date
    12-20-2011
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: Need help combining multiple if Vlookup statements on multiple concatenated keys

    i attached a sample sheet. the columns in Green have the Vlookups. I had to remove some of the Vlookups b/c the file size exceeded the 1MB limit, but this should give an idea of what I'm looking for. I want to have one column that can run all of the Vlookups with the various key concatenations they look for and return the match from whichever one finds a match.
    Attached Files Attached Files

+ 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. [SOLVED] Combining multiple IF THEN statements
    By ktbb0312 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-03-2013, 02:04 AM
  2. [SOLVED] Combining together multiple IF statements
    By jupitar in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-20-2012, 08:51 PM
  3. Replies: 3
    Last Post: 09-08-2011, 02:40 AM
  4. Combining multiple if and look-up statements...Part 2
    By geng in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-19-2010, 01:38 AM
  5. Combining Multiple IF Statements
    By prefcomm in forum Excel General
    Replies: 2
    Last Post: 11-11-2009, 11:35 PM

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