+ Reply to Thread
Results 1 to 6 of 6

Summing with several match index

  1. #1
    Registered User
    Join Date
    09-21-2018
    Location
    Poland
    MS-Off Ver
    2017
    Posts
    18

    Summing with several match index

    Hello guys, is there any way to sum results from match index if there are several positive results from the formula itself?
    My formula is following:

    =INDEX('123YELP'!$1:$1048576;MATCH([@AA];'123YELP'!C:C;0);MATCH([@[BB]];'ABA.xlsx'!Table1[#Headers];0))

    It does show me the first match which would be customer A matched with Q1 so value is 100 from below example but I need to sum all results from customer A and Q1 result.

    Customer Q1 Q2
    A 100 200
    A 150 210
    A 90 150
    A 70 140
    B 100 200
    B 150 210
    B 90 150
    B 70 140

    Best regards.

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Summing with several match index

    Don't use a matching formula to sum. Use a summation formula such as SUMPRODUCT.

    Based on your sample, you can use this:

    =SUMPRODUCT((A2:A9="A")*(B1:C1="Q1")*(B2:C9))

  3. #3
    Registered User
    Join Date
    09-21-2018
    Location
    Poland
    MS-Off Ver
    2017
    Posts
    18

    Re: Summing with several match index

    Hmm it does throw N/A with this formula for some reason:

    =SUMPRODUCT((Table1[KONTRAHENT]=B83)*(Table1[[#Headers];[M1]:[YE]]=I83)*('SKU OBRÓT'!I2:AJ4860))

    No idea why - never used this formula :/

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Summing with several match index

    I recommend uploading a small representative sample of your data along with the desired results (which you can enter manually) based on that data.

    To upload an Excel workbook, follow these steps:
    1) Click on "Go Advanced"
    2) Click on "Manage Attachments"
    3) Click on "Choose File"
    4) Choose your file and click on "Open"
    5) Click on "Upload"
    6) Click on "Close this window"

  5. #5
    Registered User
    Join Date
    09-21-2018
    Location
    Poland
    MS-Off Ver
    2017
    Posts
    18

    Re: Summing with several match index

    Here is the attachment
    Attached Files Attached Files

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Summing with several match index

    The following formula placed in Sheet1!C2 of your sample, returns the desired results that you have shown:

    =SUMPRODUCT((Sheet2!A$2:A$14=A2)*(Sheet2!B$1:E$1=B2)*(Sheet2!B$2:E$14))

+ 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. Summing value with 2 parameters - Index & match, or Vlookup?
    By Misterbashi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-01-2015, 11:40 AM
  2. [SOLVED] Using Index, Match and summing the Multiple matches
    By shameus in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-14-2014, 05:16 PM
  3. summing an index(match,match) over multiple spreadsheets
    By andyjoewalnutt in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-31-2013, 03:15 PM
  4. Need Help with summing cells in a table using the SUMIF with Index/Match
    By Sun144 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-17-2013, 04:07 PM
  5. Replies: 1
    Last Post: 03-03-2009, 12:13 AM

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