+ Reply to Thread
Results 1 to 5 of 5

VLOOKUP with multiples

  1. #1
    Forum Contributor
    Join Date
    02-21-2013
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2007
    Posts
    122

    VLOOKUP with multiples

    I have attached an example. on the "master" sheet in column L I need a vlookup which will look up the information in column I & J and return the appropriate amount for that from column C of the "sheet3" tab. If there is nothing it should just return 0.

    Can someone please help me.Sample Macro jscalem.xlsx

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: VLOOKUP with multiples

    Enter as an array formula confirmed by Ctrl+Shift+Enter

    =INDEX(Sheet3!$C$2:$C$7,MATCH(I2&J2,Sheet3!$A$2:$A$7&Sheet3!$B$2:$B$7,0))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VLOOKUP with multiples

    L2 and drag it down

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    01-28-2014
    Location
    Schenectady, NY
    MS-Off Ver
    Office 365
    Posts
    65

    Re: VLOOKUP with multiples

    You don't need an array or VBA - SUMIFS would accomplish exactly what you need:

    =IF(ISERROR(SUMIFS(Sheet3!$C:$C,Sheet3!$A:$A,Master!$I2,Sheet3!$B:$B,Master!$J2)),0,SUMIFS(Sheet3!$C:$C,Sheet3!$A:$A,Master!$I2,Sheet3!$B:$B,Master!$J2))

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,937

    Re: VLOOKUP with multiples

    See attached

    Need to add a helper column in sheet2 to concatenate the lookup
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. changes to multiples charts using VBA
    By kmah in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-02-2013, 03:37 PM
  2. [SOLVED] Vlookup not working as multiples of given word and not exact match's.
    By oneblondebrow in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-19-2013, 11:32 AM
  3. VLookup returning same data when multiples exist
    By Laserfast in forum Excel General
    Replies: 8
    Last Post: 05-12-2011, 12:56 PM
  4. MAX, IF multiples
    By holyman in forum Excel General
    Replies: 6
    Last Post: 06-30-2006, 10:25 AM
  5. Multiples....
    By Cam in forum Excel General
    Replies: 14
    Last Post: 05-18-2006, 04:33 AM

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