+ Reply to Thread
Results 1 to 6 of 6

How to make a formula/function look at the most recently inputted cells

  1. #1
    Registered User
    Join Date
    10-14-2013
    Location
    Corby, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    How to make a formula/function look at the most recently inputted cells

    Hi Everyone,

    I am creating a workbook of football scores that I will be updating weekly (or after each round of Premier League games is played.) I currently have made a sheet with team names in column A and also in row 1, making a kind of matrix which will show all the scores. I want to be able to calculate each team's current form (looking at last 6 games) by a simple average of their scores. The problem is my table is not in chronological order. Not sure if I have provided enough information here as this is my first post.

    I will also be making another table looking at goals scored/conceded/points for each game, but the 'Team by Team' matrix will very much be the master sheet as I only want to input the most recent scores and for the rest of the sheets to update from that.

    Thanks in advance for any help

    Craig
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: How to make a formula/function look at the most recently inputted cells

    There is nothing in that table to give you any date information or sequence of results, so how can you look for the last so-many games?

    Perhaps you could have two rows for each team in your table - one for the score and the other for the fixture date, or even duplicate the table in another sheet but have dates instead of scores (more difficult for data entry).

    I think you are going to have to have a fixture list of some sort, and that might be the starting point for data entry.

    Hope this helps.

    Pete

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: How to make a formula/function look at the most recently inputted cells

    Hi Craig and welcome to the forum!

    Actually unless I'm missing something I can't see any dates in the sheet you've attached, so I'm really not sure how you would go about tracking a team's 'most recent' scores. You say: "The problem is my table is not in chronological order.". So, what order is it in?

    Also, providing you do have the dates available for each of these matches, where would you like these 'form' results to be entered? Perhaps you could set up a small table ready for this, (together with providing the dates of each fixture, of course) and then we might be able to work on some formulae to bring the required results in.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: How to make a formula/function look at the most recently inputted cells

    Here's a similar thread from a few month's back:

    http://www.excelforum.com/excel-form...ng-a-team.html

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    10-14-2013
    Location
    Corby, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: How to make a formula/function look at the most recently inputted cells

    Hi All,

    Thanks for the replies. Sorry if I wasn't clear before - I know I don't have any fixture dates, to manually write out the fixtures for each team would be a horrible task (especially since I eventually want to apply this process to other leagues)

    I was really asking if I can look for a range and then excel would give the most recent x records for that range, perhaps looking at the save date for the file? I did suspect before that this is probably not possible but just wanted to confirm or otherwise with you guys.

    If this is indeed not possible, I was thinking that I may as well set up another table with the 20 teams in column A then week 1 in column B week 2 in column 3, and input the scores in here weekly also. That way I just have to move the range down 1 row every time I add a record.

    Hope this makes sense and thanks again for the help.

    Craig

  6. #6
    Registered User
    Join Date
    10-14-2013
    Location
    TX
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: How to make a formula/function look at the most recently inputted cells

    You could find a full league Schedule online that you could pull into Excel. Then using the schedule and the score matrix you could derive the last 6 game goals for (GF) and goals against (GA) for each team.

    The problem you would run into would be when one team plays another team more than one time. I have done this before for american football for fantasy leagues and you are best off building a table

    Imagine the "-" are the columns, and below is some dummy data. You can then pivot and do subtotals/averages, (home/away), etc.
    Week # - Team 1 - Team 2 - Location (home/road) - GF - GA
    1 - Man U - Man City - Home - 3 - 2
    1 - Man City - Man U - Away - 2 - 3

+ 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. Help: Macro or function that helps match an inputted name with names in a master list
    By TaskinRahman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-10-2012, 03:03 PM
  2. [SOLVED] Changing the numbers in cells based on the number inputted
    By WaqasTariq in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-19-2012, 09:21 AM
  3. Automatically updating cells with different text once the result is inputted...
    By ajames715 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-31-2012, 03:36 PM
  4. Any function that checks if an inputted cell is increment of 5
    By bsengineer in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-02-2009, 02:30 AM
  5. How do you protect cells on condition of other cells having data inputted?
    By rickd909 in forum Excel Formulas & Functions
    Replies: 23
    Last Post: 01-18-2007, 06:44 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