+ Reply to Thread
Results 1 to 13 of 13

Find multiple criteria and return sum of values

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Find multiple criteria and return sum of values

    Hi

    I am trying to look up multiple criteria and return the sum of values next to them. Not sure if this can be achieved with INDEX MATCH or another formula.

    I have attached an example.

    My sheet has a number of tables relating to various teams and the venues they have played at in the past. When the next game comes up, I need to check how many games they have played at each venue and return that total. If it is mid way through the season, I also need to include these (see example attached).

    If anyone can assist, that would be really appreciated
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Find multiple criteria and return sum of values

    With a slight alteration to the data layout, this is very straightforward:

    =SUMPRODUCT(('Venue History by Team'!$A$5:$A$92='Current Round'!$A5)*('Venue History by Team'!$B$5:$B$92='Current Round'!$E5)*('Venue History by Team'!$C$4:$AB$4<='Current Round'!$B$2)*'Venue History by Team'!$C$5:$AB$92)
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Find multiple criteria and return sum of values

    I think I just worked it out. Instead of "<=" , I used "<" but not sure if this is correct?

  4. #4
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Find multiple criteria and return sum of values

    ok thanks very much Glenn.

    The values out to the end are the scheduled games for the rest of the season, however I only need to count up to current round.

    Thanks again

  5. #5
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Find multiple criteria and return sum of values

    thanks Glenn, that has almost got it.

    In the attached example, the first value for Team A is 23. If the current round is 5 as shown in the sheet, is there a way that the formula could exclude the 1 match played in round 5? I.e. for team A the total should be 22 (as they haven't played round 5 yet).

    Thanks

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Find multiple criteria and return sum of values

    Yep. That should do it. BtW... I meant to ask. If this is week 5, why are there values in the Table out to the end???

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Find multiple criteria and return sum of values

    Great! You're welcome and thanks for the Rep.

  8. #8
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Find multiple criteria and return sum of values

    Hi

    I have run this again but as you can see in the attached, I am getting mixed results. Some are correct, but those highlighted in yellow are different to the actual (correct amount).

    Does anyone know why this would be happening?
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Find multiple criteria and return sum of values

    I keep trying but even though the formulas are the same, I receive different answers in the spreadsheet attached.

    Can anyone assist me with this please?

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Find multiple criteria and return sum of values

    Look at venue history by team N4 and X4. Amend them...

  11. #11
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Find multiple criteria and return sum of values

    got it now, thanks. Not sure how that happened!

    Much appreciated

  12. #12
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Find multiple criteria and return sum of values

    thanks Glenn but I'm not sure that I follow?

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Find multiple criteria and return sum of values

    No problem...

+ 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] Return multiple values (matrice) by selection of multiple criteria.
    By toman159 in forum Excel General
    Replies: 6
    Last Post: 11-28-2016, 11:05 AM
  2. [SOLVED] Index/Match with Multiple Criteria and Multiple return values
    By Brawnystaff in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-28-2015, 10:27 AM
  3. Replies: 2
    Last Post: 05-26-2015, 07:29 PM
  4. [SOLVED] Find/match multiple criteria and return value
    By Aaron092 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-01-2014, 07:22 AM
  5. [SOLVED] How to return multiple values to a single cell based on multiple criteria
    By lwallace in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-20-2014, 06:32 AM
  6. Replies: 3
    Last Post: 12-13-2013, 06:23 AM
  7. How to find closest values in multiple columns and return adjacent values.
    By Patrician in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-28-2013, 01:47 PM

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