+ Reply to Thread
Results 1 to 5 of 5

Need help referencing the results of my query

  1. #1
    Registered User
    Join Date
    08-10-2022
    Location
    Wisconsin, United States
    MS-Off Ver
    Google Sheets
    Posts
    7

    Need help referencing the results of my query

    Hello,

    I am the commissioner of a fantasy football league and we need to track some pieces of data that ESPN doesn't. One of those is the team with the weekly high score.

    In the attached file, you'll notice I have different tabs for each week of the fantasy football season "Week 1", "Week 2", etc. In each week's tab I have a function to determine which team scored the most points that week (Cell B19 in the "Week 1" tab). If there is a tie it will return all the teams with the top score.

    My question is how can I reference these high scores winners in my "Overview" tab?

    In the "Overview" tab, you'll notice that I have tables for each team. In each table I have a column under each team titled "High Scores" (Columns: B, H, N, Z, etc.).

    I would like those columns to reflect the teams that get high scores each week. If a team had the highest score I want the cell to display "Yes" and if the team didn't a high score it should say "No".

    For example, if you use the data that is currently in my "Week 1" tab, cells B3, H3, N3, Z3, AF3, AL3, and BD3 should read "No" because those teams didn't have the highest score. Cells AR3 and AX3 should read "Yes" because they did have the highest score.

    Here's my current equation in cell B3 in the "Overview" tab: =iferror(if(indirect("'"&AQ3&"'!$B$19") = $AQ$1,"Yes","No"),"TBD"). It's referencing the result of my high score function in cell B19 in the "Week 1" tab and if the result matches the team name then I record "Yes" and if it doesn't it records "No". I need to tweak this so it can display "Yes" for more than one team if there is a tie for the high score.

    Thanks in advance for your help!
    Attached Files Attached Files
    Last edited by fischera9850; 08-14-2022 at 12:09 PM.

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Need Help referencing "n" number of top results returned in an array

    Did I understand correctly that you ask for formulas for cells B58 to B62 on the overview sheet?
    I don't quite understand the calculation yet. Can you explain exactly how you arrived at those results?

  3. #3
    Registered User
    Join Date
    08-10-2022
    Location
    Wisconsin, United States
    MS-Off Ver
    Google Sheets
    Posts
    7

    Re: Need Help referencing "n" number of top results returned in an array

    I need to adjust the formula in cell B3 on the "Overview" tab. The formula in B3 right now works fine, except when there are ties. Here's the current formula:

    =iferror(if(indirect("'"&A3&"'!$B$19") = $A$1,"Yes","No"),"TBD")

    First, The formula looks at B19 in the Week 1 tab.
    If the team who got the high score matches the team name in cell A1 in the "Overview" tab then it populates B3 with "Yes", if they don't match then it puts "No" in B3.

    This league needs to track certain pieces of data that ESPN can't. One of those is weekly high scores.

    Each week I copy and paste our fantasy football matchup data. I want this excel sheet to automatically record who got the high score each week because they win money.
    Last edited by fischera9850; 08-12-2022 at 07:17 PM.

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Need help referencing the results of my query

    Try this formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This formula looks if there is anyone in B20.
    If so the result would be "TBD".

    Is this to your liking?
    Attached Files Attached Files
    Last edited by HansDouwe; 08-13-2022 at 09:48 AM.

  5. #5
    Registered User
    Join Date
    08-10-2022
    Location
    Wisconsin, United States
    MS-Off Ver
    Google Sheets
    Posts
    7

    Re: Need help referencing the results of my query

    That statement will not work. However, you pointed my in the right direction. After editing it, i think it works how I want it to now.

    You statement actually returns an error, but it was caught in my iferror statement. Here is what I tweaked it to be:

    =IF(INDIRECT("'"&AW3&"'!$B$19")=$AW$1,"Yes",IF(INDIRECT("'"&AW3&"'!$B$20")=$AW$1,"Yes","No"))

+ 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] Assigning a 2D Array to a bigger size range results in "#N/A" in the uncovered elements
    By TopXorGuy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-24-2013, 10:45 AM
  2. Change "Parent" cell based on results of multiple "Children" cells
    By ccowman in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 12-14-2012, 02:33 AM
  3. Replies: 2
    Last Post: 11-26-2012, 05:32 AM
  4. Replies: 0
    Last Post: 09-17-2012, 01:17 PM
  5. [SOLVED] How to Count number of "Error" and "OK" after the word "Instrument" found in table row
    By eltonlaw in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2012, 06:26 AM
  6. If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ...
    By Maria J-son in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2006, 08:25 AM
  7. [SOLVED] Changing "returned" values from "0" to "blank"
    By LATATC in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-20-2005, 12:05 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