+ Reply to Thread
Results 1 to 4 of 4

Cannot get INDEX,MATCH formula to SUM

  1. #1
    Registered User
    Join Date
    09-18-2006
    Posts
    25

    Cannot get INDEX,MATCH formula to SUM

    Hi there,
    What I want: to find an exact match based on 1-3 criteria and then sum all the results in a particular column

    My solution: so far it's =SUM(INDEX(AlmaSource!N:AD,MATCH(1,(AlmaSource!Y:Y=H2)*(AlmaSource!AB:AB=K2),0),1,1))

    Unfortunately that doesn't SUM anything, just returns the first result. Any ideas?

    Oh, and I'm open to running this in any way at all, the INDEX thing is sloooooow but I only have to do it once, but I'm matching a table of 1000 rows on a table of 4000 lines so I'm okay with slow if it works.

    Example attached.

    PS I think it would have been quicker to do this by hand with how long I spent today on this.
    Attached Files Attached Files
    Last edited by tas666; 05-06-2020 at 05:10 AM. Reason: Added "Solved" prefix

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Cannot get INDEX,MATCH formula to SUM

    You should be using SUMIFS

    =SUMIFS(AlmaSource!N:N,AlmaSource!$Y:$Y,$G2,AlmaSource!$AB:$AB,$L2)
    copied across

    the INDEX/MATCH will only return data relative to first match found and, as you note, that particular construct is quite slow.

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Cannot get INDEX,MATCH formula to SUM

    Please try at B2

    =SUMIFS(AlmaSource!N:N,AlmaSource!$Y:$Y,$I2,AlmaSource!$AB:$AB,$L2)
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-18-2006
    Posts
    25

    Re: Cannot get INDEX,MATCH formula to SUM

    Oh gosh that was easy. I guess I used the other way because I initially only needed to actually match results, and only realised about half way through that the darn things had multiple rows that needed adding. SUMIFS is so much easier. Thanks heaps! Off I go to write heaps of permeations of this. Thanks XLent and Bo_Ry!
    Last edited by tas666; 05-06-2020 at 05:11 AM. Reason: Added thankyou

+ 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] Index Match not cycling through entire index. Formula not updating when values change...
    By nordxnortheast in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-07-2020, 10:44 AM
  2. Replies: 1
    Last Post: 08-17-2019, 01:11 PM
  3. Index Match formula changing my Index daily
    By vitt4300 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-31-2017, 02:19 PM
  4. [SOLVED] This formula works but I donīt understand why Index(Index) match
    By campelliann in forum Excel General
    Replies: 2
    Last Post: 01-25-2016, 05:55 PM
  5. Replies: 3
    Last Post: 05-02-2013, 01:31 AM
  6. Index Match Index Formula work slow
    By avk in forum Excel General
    Replies: 9
    Last Post: 03-07-2012, 02:19 PM
  7. Replies: 5
    Last Post: 02-29-2012, 08:51 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