+ Reply to Thread
Results 1 to 9 of 9

Using INDEX(MATCH) with multiple lookup values

  1. #1
    Registered User
    Join Date
    05-11-2016
    Location
    RSA
    MS-Off Ver
    2016
    Posts
    3

    Using INDEX(MATCH) with multiple lookup values

    Hi,

    I currently have a INDEX(RefDataRange, MATCH( LookupCell, RefLookupRange, 0), FixColNum) that works.

    I now want to replace LookupCell with a range (ie. C1:C20) and sum all the return values.

    Is there a way of doing this without a VBA For Loop?

    Regards
    Last edited by Wdr; 05-11-2016 at 08:09 AM.

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Using INDEX(MATCH) with multiple lookup values

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window (or use the paperclip icon).
    Cheers!
    Deep Dave

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Using INDEX(MATCH) with multiple lookup values

    Try this...

    =SUMPRODUCT(SUMIF(RefLookupRange,LookupCellRange,INDEX(RefDataRange,0,FixColNum)))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    05-11-2016
    Location
    RSA
    MS-Off Ver
    2016
    Posts
    3

    Re: Using INDEX(MATCH) with multiple lookup values

    Hi,

    Please find attached sample spreadsheet.

    Thanx
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-11-2016
    Location
    RSA
    MS-Off Ver
    2016
    Posts
    3

    Re: Using INDEX(MATCH) with multiple lookup values

    Hi Tony,

    Thank you. It works!!!

    Cheers

  6. #6
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,901

    Re: Using INDEX(MATCH) with multiple lookup values

    Try this ...
    =SUMPRODUCT(SUMIF(A2:A17,A25:A32,C2:C17))
    Last edited by Phuocam; 05-11-2016 at 08:07 AM.

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Using INDEX(MATCH) with multiple lookup values

    You say your expected result is 920 but I think the correct result is 936.

    This formula:

    =SUMPRODUCT(SUMIF(A2:A17,A25:A32,INDEX(C2:N17,0,3)))

  8. #8
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Using INDEX(MATCH) with multiple lookup values

    Maybe -

    =SUMPRODUCT(SUMIF($A$2:$A$17,$A$25:$A$32,$C$2:$C$17))

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Using INDEX(MATCH) with multiple lookup values

    You're welcome. Thanks for the feedback!

+ 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. Replies: 4
    Last Post: 05-19-2015, 08:42 PM
  2. vlookup/index-match w/ multiple lookup values
    By downey_90240 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-10-2015, 10:41 PM
  3. INDEX/MATCH multiple lookup values
    By mythbit in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-07-2015, 08:55 AM
  4. index match for 3 lookup values
    By krazyhype19 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-12-2014, 06:58 AM
  5. [SOLVED] Lookup match index multiple values return other columns
    By martypocock in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 11-07-2012, 10:57 PM
  6. Multiple row lookup for INDEX / MATCH?
    By kakarotmf in forum Excel General
    Replies: 5
    Last Post: 07-18-2011, 10:02 PM
  7. Lookup 2 possible values within INDEX/MATCH function.
    By Pete123abc in forum Excel General
    Replies: 2
    Last Post: 06-07-2011, 10:51 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