+ Reply to Thread
Results 1 to 6 of 6

Finding the last five matches and sum up the goald

  1. #1
    Forum Contributor
    Join Date
    08-30-2015
    Location
    Tresfjord, Norway
    MS-Off Ver
    365
    Posts
    169

    Finding the last five matches and sum up the goald

    Hi ...

    I give up. My brain just don't get it.

    How do I sum up the goals in Manchester Uniteds last five matches?

    See attached workbook

    I advance thanks.

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

    Re: Finding the last five matches and sum up the goald

    You need to factor in the header

    =SUM(OFFSET(EPL!C:C,COUNTA(EPL!C:C)-5,0,5))

    or you could use the INDEX function too

    =SUM(INDEX(EPL!C:C,COUNTA(EPL!C:C)):INDEX(EPL!C:C,COUNTA(EPL!C:C)-4))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Contributor
    Join Date
    08-30-2015
    Location
    Tresfjord, Norway
    MS-Off Ver
    365
    Posts
    169

    Re: Finding the last five matches and sum up the goald

    No ... Not the last five matches of any club, but the last five matches of Manchester United. :-D

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

    Re: Finding the last five matches and sum up the goald

    Oh of course! Its home games that you're after since you suggest the result should be 12

    Try

    =SUMPRODUCT((EPL!$A$2:$A$210=A11)*(ROW(EPL!$A$2:$A$210)=LARGE((EPL!$A$2:$A$210=A11)*ROW(EPL!$A$2:$A$210),{1,2,3,4,5}))*EPL!$C$2:$C$210)





    Note to self: Read instructions clearly!
    Last edited by Ace_XL; 01-09-2020 at 02:57 PM.

  5. #5
    Forum Contributor
    Join Date
    08-30-2015
    Location
    Tresfjord, Norway
    MS-Off Ver
    365
    Posts
    169

    Re: Finding the last five matches and sum up the goald

    Hi again Ace_XL ...

    The formula don't seem to work. All I get is an #N/A.

  6. #6
    Forum Contributor
    Join Date
    08-30-2015
    Location
    Tresfjord, Norway
    MS-Off Ver
    365
    Posts
    169

    Re: Finding the last five matches and sum up the goald

    I found the error ... Works fine now ... it seems ...
    Thanks :-D

+ 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] Comparing two data sets and finding matches or non matches
    By b0bertini in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-18-2017, 09:34 AM
  2. searching and finding matches.
    By LLOYD6664 in forum Excel General
    Replies: 19
    Last Post: 04-21-2017, 10:04 AM
  3. [SOLVED] Finding perfect matches
    By sasasa2 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-15-2016, 08:53 AM
  4. Need help with finding matches
    By bittersweets in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-15-2013, 05:25 AM
  5. Finding the sum of the matches between two ranges
    By dodger23 in forum Excel General
    Replies: 4
    Last Post: 03-19-2010, 05:06 PM
  6. Finding matches
    By Tziggy in forum Excel General
    Replies: 5
    Last Post: 12-09-2008, 02:01 PM
  7. Vlookup not finding all the matches
    By dvelopment in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-27-2008, 07:26 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