+ Reply to Thread
Results 1 to 8 of 8

How get last n amount of entries from an evergrowing list

  1. #1
    Registered User
    Join Date
    07-31-2013
    Location
    Mutsis, faijas
    MS-Off Ver
    Excel 2003
    Posts
    4

    How get last n amount of entries from an evergrowing list

    I'm working on a statistical tool for analyzing hockey games for my friend, in which I list all the games and their results in a season vertically, each on it's own row (see attachment) home team and it's goals first, then visitor and result 1X2 wise on the end.

    What would be the best way to get the results of the last 6 games (for example) for a certain team? Without using macros, since this should work both on Excel and OOCalc
    Attached Files Attached Files

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: How get last n amount of entries from an evergrowing list

    (EDITED TO INCLUDE THE EDITED WORKBOOK)
    Using your posted workbook...
    N2: Team
    O2: a team to analyze...Pelicans

    and M3:S3 containing this list
    Please Login or Register  to view this content.
    and N4:N9 contains this list
    Please Login or Register  to view this content.
    This ARRAY FORMULA, completed by holding down CTRL and SHIFT when you press ENTER (instead of just pressing ENTER)
    begins the list of the last 6 rows that contain the team name
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Copy M4 and paste into M5:M9

    These formulas return the results you're looking for
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Copy those formulas down through Row_9

    With your sample data, these are the results:
    Please Login or Register  to view this content.
    Is that something you can work with?
    Attached Files Attached Files
    Last edited by Ron Coderre; 07-31-2013 at 11:19 AM.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Valued Forum Contributor TheCman81's Avatar
    Join Date
    11-06-2012
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    346

    Re: How get last n amount of entries from an evergrowing list

    Updated: Didn't see your request for individual teams

    For this purpose put your team name in cell L12

    Stats v2.xls
    Last edited by TheCman81; 07-31-2013 at 11:11 AM.
    Excel Guru in the making

    <----------If the question has been answered to your satisfication please click the Add Repuation star to the left

  4. #4
    Registered User
    Join Date
    07-31-2013
    Location
    Mutsis, faijas
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: How get last n amount of entries from an evergrowing list

    Yeah, I think that's something I can start from.
    Not exactly what I meant (forgot to mention that I need six last MATCHES from any given team, including aways),
    but this is enough. All I really needed was a place to start, so I can work my way up and perhaps learn how to do it.

    Cheers for the both of you.

  5. #5
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: How get last n amount of entries from an evergrowing list

    See the proposed solution I posted...It lists the last 6 games the team participated in.

  6. #6
    Valued Forum Contributor TheCman81's Avatar
    Join Date
    11-06-2012
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    346

    Re: How get last n amount of entries from an evergrowing list

    Quote Originally Posted by Ron Coderre View Post
    See the proposed solution I posted...It lists the last 6 games the team participated in.
    I was only focusing on the results for the first column, didn't think about the away teams.

    I liked your SEARCH function to lookup 2 arrays very handy.

  7. #7
    Registered User
    Join Date
    07-31-2013
    Location
    Mutsis, faijas
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: How get last n amount of entries from an evergrowing list

    Quote Originally Posted by Ron Coderre View Post
    See the proposed solution I posted...It lists the last 6 games the team participated in.
    Oh yeah, so it does. Had a too quick a glance at it, it seems.

  8. #8
    Registered User
    Join Date
    07-31-2013
    Location
    Mutsis, faijas
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: How get last n amount of entries from an evergrowing list

    So yeah, that's definitely something I can work on or even use as is.
    Much kudos.

+ 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. Add the last X amount of entries
    By GLHF1986 in forum Excel General
    Replies: 1
    Last Post: 04-11-2012, 05:47 PM
  2. the amount of letters at beginning of majority of entries
    By cubinity in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-14-2011, 12:28 PM
  3. Using VBA: I have a list with multiple entries.Need to reduce down to unique entries
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-25-2011, 03:19 PM
  4. Duplicate Entries into List of Unique Entries
    By MjRmatt in forum Excel General
    Replies: 1
    Last Post: 08-18-2010, 11:53 AM
  5. Increasing All Entries by specific amount
    By RayH in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-05-2007, 06:30 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