+ Reply to Thread
Results 1 to 4 of 4

How to lookup result of game and add results to table

  1. #1
    Registered User
    Join Date
    07-28-2020
    Location
    Virginia
    MS-Off Ver
    MS Office Professional Plus 2016
    Posts
    2

    How to lookup result of game and add results to table

    Hello everyone,

    I am trying to teach myself some new excel functions and decided to track the first few days of the MLB season this year. I have included all of the games played for the first 5 days of the season. I am looking to see if there is a way to have a table that automatically lists a "W" for a Win or "L" for a Loss for each game per team.

    I will manually enter in each games results. I'm then hoping the table can somehow lookup when a team is listed, if their score is greater or less than their opponent, enter in the result as W or L, and then move to the following row for the next game that team plays.

    In the attached I already manually added the first 3 days worth of games to the W/L table with all of the teams listed across the top.

    Any help is appreciated, thanks!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    07-28-2020
    Location
    Virginia
    MS-Off Ver
    MS Office Professional Plus 2016
    Posts
    2

    Re: How to lookup result of game and add results to table

    Ok maybe slightly easier / less daunting question. Worked on it some more today and managed to use the Match function to have the sheet so it pulls the row for each time a team plays away and for when they play at home.
    From there, I used the Index function to pull the date of the game, the teams score when they are away, their opponents score, and then calculate if they won or lost. Seperate table created to
    calculate the same thing when the team is home.

    My question now, is there a way to combine these different calculations / tables into one list that will continue the calculations as new games are added but sorted in order?

    In the attached example, I ran my new calculations for Arizona to start. They have played a total of 5 games so far, 4 at home and 1 away.
    I would like to combine these two lists somehow so it continues to pull the row, date, and scores but so I can have it in one column sorted by either the date the game took place or its row.

    If theres an easier way to do this let me know!
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    07-28-2020
    Location
    Fareham, England
    MS-Off Ver
    Excel365
    Posts
    29

    Re: How to lookup result of game and add results to table

    fairly new to this myself but there's an excellent modeller on YouTube called Riley Wichmann who has probably done this already - or something very similar.

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,166

    Re: How to lookup result of game and add results to table

    How about
    In K3
    =IFERROR(INDEX(MLB[Date],AGGREGATE(15,6,ROW(MLB[Date])/((MLB[Away Team]="ARI")+(MLB[Home Team]="ARI")),ROWS(K$3:K3))),"")
    In L3
    =IFERROR(INDEX(MLB[Away Score],MATCH([@Date]&"|ARI",MLB[Date]&"|"&MLB[Away Team],0)),IFERROR(INDEX(MLB[Home Score],MATCH([@Date]&"|ARI",MLB[Date]&"|"&MLB[Home Team],0)),""))
    In M3
    =IFERROR(INDEX(MLB[Away Score],MATCH([@Date]&"|ARI",MLB[Date]&"|"&MLB[Home Team],0)),IFERROR(INDEX(MLB[Home Score],MATCH([@Date]&"|ARI",MLB[Date]&"|"&MLB[Away Team],0)),""))

    Although you wont be able to sort it.

+ 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] Count Last10 game results such that the team is the same
    By nicolaivinther in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-29-2014, 07:41 AM
  2. Replies: 2
    Last Post: 09-07-2014, 08:36 PM
  3. [SOLVED] Return result from a table based on two other cell results
    By jgregory43 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-30-2013, 11:01 PM
  4. Only display results in table if result from formula is within a range
    By MN_REV-800 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-12-2013, 11:58 AM
  5. [SOLVED] Awarding Points Based on Game Results
    By Captain Legless in forum Excel General
    Replies: 3
    Last Post: 11-05-2012, 01:17 AM
  6. Need to transpose game results to another sheet
    By remiral.s in forum Excel General
    Replies: 6
    Last Post: 04-09-2012, 04:00 AM
  7. results of a lookup from another table issue
    By ukphoenix in forum Excel General
    Replies: 4
    Last Post: 02-25-2011, 05:00 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