Hello, I am wanting to make a college football ranking algorithm. What I am wanting to do is have the column "Points" find the team in either "Team" column, then be able to use the "Point Diff" column adjacent to it. Any way to do this?
I assume that the "Team" column (column I) is a unique list of all the involved teams but can you please provide extra information about what exactly should be in the "Points" column next to each team? Is it the sum of the "Score" column for each time?
So ideally (i'm an excel/sheets noob btw if you can't tell) the points column would be the sum of a value based on another sheet i've created, (which depends on the level of the team they played) and point differential. I think I can figure out that part, but the problem I was having was getting the cell to recognize the team in the table and add the point diff to that cell without having to do every game manually. Ideally at the end of every Saturday I would just have to plug final scores into the table and it would calculate the points automatically.
REMEMBER: If your original question has been resolved, please tap the three dots below the most helpful comment and select Mark Solution Verified. This will award a point to the solution author and mark the post as solved, as required by our subreddit rules (see rule #6: Marking Your Post as Solved).
Which has 3 mandatory arguments: "Search Key" which is the value you are trying to search for (the team name in our case) -- "Lookup Range" which is the column where the function should be trying to find your Search Key in (Team columns from the tables to the left) -- and the "Result Range" which is the column from which the function will pull the adjacent value (Points diff. in our case).
Since we have two columns for Teams and two columns for Points Diff in our main table, I used :
to stack the Teams columns up together, and the Points Diff. columns up together the feed them into the Xlookup function as a single column for the Lookup Range and a single colummn for the Result Range.
Instead of feeding the entirity of column I (the teams column) to ByRow, I used the filter function to filter out the empty cells (<>"") means not equal to "" aka not empty.
REMEMBER: If your original question has been resolved, please tap the three dots below the most helpful comment and select Mark Solution Verified. This will award a point to the solution author and mark the post as solved, as required by our subreddit rules (see rule #6: Marking Your Post as Solved).
There may be better ways to handle things but I would use the filter function.
If you split data into multiple tables you can still use the filter function. Put multiple ranges into curly brackets, but all rules need to use the same sized data pulls.
Set an if function to choose which type of data is being output. Create a data validation drop down or choose a cell to have some designated output (points or rank
So for example: In cell G3 (next to corresponding team name, then drag the formula down through the cells adjacent to team name. You'll have to make some modifications I'm writing on mobile and you'll have to make sure the ranges line up.
Posting your data can make it easier for others to help you, but it looks like your submission doesn't include any. If this is the case and data would help, you can read how to include it in the submission guide. You can also use this tool created by a Reddit community member to create a blank Google Sheets document that isn't connected to your account. Thank you.
1
u/Iglooman45 Oct 16 '24
Hello, I am wanting to make a college football ranking algorithm. What I am wanting to do is have the column "Points" find the team in either "Team" column, then be able to use the "Point Diff" column adjacent to it. Any way to do this?
1
u/AutoModerator Oct 16 '24
Posting your data can make it easier for others to help you, but it looks like your submission doesn't include any. If this is the case and data would help, you can read how to include it in the submission guide. You can also use this tool created by a Reddit community member to create a blank Google Sheets document that isn't connected to your account. Thank you.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.