+ Reply to Thread
Results 1 to 5 of 5

I'm looking for a more efficient formula - using Index/Match - with multiple criteria

  1. #1
    Registered User
    Join Date
    11-23-2015
    Location
    Hertfordshire, England
    MS-Off Ver
    2007
    Posts
    3

    I'm looking for a more efficient formula - using Index/Match - with multiple criteria

    Hi
    I have to be able to sum a dated row (row C23:P23) of cells, but each cell within the row will be multiplied by a different 'rate' depending on the date of the line, the 'rate' being in a separate array (A1:N18).

    Each cell refers to a different person and therefore a different rate and I have created a feeder cell (B23) which determines which column in the array the 'rate' comes from to keep the formula a bit more manageable.

    Below is the formula, which is basically the same Index/Match formula repeated/nested.

    My question is: Is there another function that I can use that can reduce the need for all these nested Sums and also to future proof it (the array and the amount of 'sums' is likely to increase in size in time, I don't know if I should be investigating SumProduct a bit more to see if that's the answer - any help would be much appreciated - even if it's just pointing me to the correct formula. Thanks in advance.

    =SUM(SUM(INDEX(A1:N18,MATCH(C20,A1:A18,0),B23)*C23),SUM(INDEX(A1:N18,MATCH(D20,A1:A18,0),B23)*D23),SUM(INDEX(A1:N18,MATCH(E20,A1:A18,0),B23)*E23),SUM(INDEX(A1:N18,MATCH(F20,A1:A18,0),B23)*F23),SUM(INDEX(A1:N18,MATCH(G20,A1:A18,0),B23)*G23),SUM(INDEX(A1:N18,MATCH(H20,A1:A18,0),B23)*H23),SUM(INDEX(A1:N18,MATCH(I20,A1:A18,0),B23)*I23),SUM(INDEX(A1:N18,MATCH(J20,A1:A18,0),B23)*J23),SUM(INDEX(A1:N18,MATCH(K20,A1:A18,0),B23)*K23),SUM(INDEX(A1:N18,MATCH(L20,A1:A18,0),B23)*L23),SUM(INDEX(A1:N18,MATCH(M20,A1:A18,0),B23)*M23),SUM(INDEX(A1:N18,MATCH(N20,A1:A18,0),B23)*N23),SUM(INDEX(A1:N18,MATCH(O20,A1:A18,0),B23)*O23),SUM(INDEX(A1:N18,MATCH(P20,A1:A18,0),B23)*P23))
    Attached Files Attached Files
    Last edited by MrsBayzee; 01-09-2020 at 01:07 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: I'm looking for a more efficient formula - using Index/Match - with multiple criteria

    Welcome to the forum.

    At the top of the page are instructions on attaching sample workbooks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    11-23-2015
    Location
    Hertfordshire, England
    MS-Off Ver
    2007
    Posts
    3

    Re: I'm looking for a more efficient formula - using Index/Match - with multiple criteria

    Attd added to original post
    Last edited by MrsBayzee; 01-09-2020 at 01:08 PM.

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: I'm looking for a more efficient formula - using Index/Match - with multiple criteria

    Get rid of using Cell B23 and try

    =SUMPRODUCT(SUMIF($A$3:$A$18,$C$20:$P$20,INDEX($D$3:$K$18,,MATCH(1,INDEX(--($D$2:$K$2>$A$23),0),0)))*$C$23:$P$23)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Registered User
    Join Date
    11-23-2015
    Location
    Hertfordshire, England
    MS-Off Ver
    2007
    Posts
    3

    Re: I'm looking for a more efficient formula - using Index/Match - with multiple criteria

    Oh wow! Works a treat, I love this, thank you so much!

    Wish I knew how it worked!!!!
    Last edited by MrsBayzee; 01-09-2020 at 01:26 PM.

+ 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 formula with multiple match criteria
    By papgar in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-02-2019, 05:31 AM
  2. Index formula with multiple match criteria (inc min)
    By Aussibuilder50000 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-26-2016, 06:14 AM
  3. Replies: 9
    Last Post: 03-06-2016, 01:14 PM
  4. Replies: 2
    Last Post: 09-27-2014, 04:34 PM
  5. Index match formula for multiple criteria
    By nellyc in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-03-2014, 12:03 PM
  6. [SOLVED] Index match formula for multiple criteria
    By nellyc in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-03-2013, 11:02 AM
  7. Index/Match formula with multiple criteria
    By dta1984 in forum Excel General
    Replies: 7
    Last Post: 11-21-2011, 01:29 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