+ Reply to Thread
Results 1 to 8 of 8

Formula to Calculate Games Back - MLB Baseball Wild Card

  1. #1
    Registered User
    Join Date
    04-21-2017
    Location
    United States
    MS-Off Ver
    Excel
    Posts
    35

    Formula to Calculate Games Back - MLB Baseball Wild Card

    Attached is my document....

    My games back for the division is calculated correctly, but I can't figure out the wild card games back...

    I feel like I'm really close, but I just can't get it. See the attached document for my formulas. My desired result is in the far right column. Thank you!!

    Edit: I apologize for not providing context and explanation... wasn't aware this was required when posting a excel workbook. As for the problem, I'm trying to get the games back for a wild card team based on MLB record results. My columns are the following:

    Name: Team name
    Wins: Actual wins
    Losses: Actual Losses
    Division: Team Division
    League: Team League
    Win %: Win % based on record
    Division Rank: Formula to calculate where the team ranks in the division using a COUNTIFS function
    WC Help: If a team is not leading a division (doesn't have a 1 in the Division Rank), then this fills with a "YES", otherwise fills with "-"
    WC Rank: Uses a COUNTIFS function to give a rank of where teams stand based on win% compared to all non-division winners split up by league (AL and NL have their own Wild Card)
    Division Games Back: Uses MAX and MIN with nested IF statements to calculate the games back of everyone behind their division leader

    WC Games Back (DESIRED RESULT): Looking to calculate the games back of everyone behind the top two teams not leading a division (Teams with a "YES" in the WC Rank Column) split up by AL and NL leagues... the top 2 teams in the WC ranking (if they have a 1 or a 2 in the WC Rank Column) will have a "+" and however many games they are above the 3rd place team, whereas everyone from 3-15 rank in the league will show how many games back they are behind the 2nd ranked team in the Wild Card
    Attached Files Attached Files
    Last edited by rosetc16; 06-18-2019 at 12:12 PM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Formula to Calculate Games Back - MLB Baseball Wild Card

    Sorry for off-topic interjection:

    Although there is no official rule regarding this behavior, we request that wherever possible both the question AND the answer be provided in substantive detail here within the thread. An attached workbook is an excellent aid for posing a question and offering a solution, but solely doing that with no in thread explanation makes it difficult for researchers to understand or consider the Q & A of this thread without downloading what may be a pointless doc to them, if they can do that at all. Doing that also hides the content from search engines so others may never benefit from this.

    I'm sure you understand, and we look forward to seeing you post your formulas/macros in your posts for the searching benefit of all.

    Thanks again for all your hard work here!

  3. #3
    Registered User
    Join Date
    04-21-2017
    Location
    United States
    MS-Off Ver
    Excel
    Posts
    35

    Re: Formula to Calculate Games Back - MLB Baseball Wild Card

    I added new information above that hopefully meets your criteria. Sorry for the issues.

  4. #4
    Registered User
    Join Date
    04-21-2017
    Location
    United States
    MS-Off Ver
    Excel
    Posts
    35

    Re: Formula to Calculate Games Back - MLB Baseball Wild Card

    Not sure this is allowed, but hoping to bump this to the top for more help now that I added more information and clarification to my posts. Thanks

  5. #5
    Registered User
    Join Date
    04-21-2017
    Location
    United States
    MS-Off Ver
    Excel
    Posts
    35

    Re: Formula to Calculate Games Back - MLB Baseball Wild Card

    Please help

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Formula to Calculate Games Back - MLB Baseball Wild Card

    rosetc16,

    We ask that you wait at least 24 hours before bumping your thread.

    We are "staffed" by volunteers from all over the world many of whom are asleep at any given time.
    Please be patient.
    Dave

  7. #7
    Registered User
    Join Date
    04-21-2017
    Location
    United States
    MS-Off Ver
    Excel
    Posts
    35

    Re: Formula to Calculate Games Back - MLB Baseball Wild Card

    Still looking for help. Bump

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,561

    Re: Formula to Calculate Games Back - MLB Baseball Wild Card

    I went about this differently as in I used the teams games above or below the .500 mark to determine the games ahead or behind in the wild card races.
    This proposal employs multiple helper columns (N:X) which may be moved and/or hidden for aesthetic purposes.
    I am not going to post all of the formulas involved but will post some examples.
    The array entered formulas that calculate a teams 1st, 2nd or 3rd wild card position are similar to: =IF(Q3=MAX(IF(F$3:F$32=F3,IF(R$3:R$32>1,Q$3:Q$32))),Q3,"")
    The array entered formulas that calculate how far ahead a 1st or 2nd place team of the 3rd place team is similar to: =IF(S3<>"",S3-INDEX(U$3:U$32,MATCH(1,1/(F$3:F$32=F3)*(U$3:U$32<>""),0)),"")
    The formula that calculates how far the rest of the teams are from the 2nd place team is similar to: =IF(OR(R3=1,S3<>"",T3<>""),"",Q3-INDEX(T$3:T$32,MATCH(1,1/(F$3:F$32=F3)*(T$3:T$32<>""),0)))
    The formula for the wild card games ahead/behind is: =IF(R3=1,"-",SUM(V3:X3))
    Note that some of the results differ from those listed as 'Desired WC results' however I feel that the formula calculated correctly.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] Baseball Results: H/G when Games<30 & AB/G when Games<10
    By Eric Alan in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-16-2017, 02:29 AM
  2. [SOLVED] Wild Card* in Query Formula?
    By excellenthelp in forum Excel General
    Replies: 1
    Last Post: 11-22-2016, 02:04 PM
  3. match formula with wild card in vba not working
    By jed38 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-18-2013, 09:55 AM
  4. Wild card in formula
    By scwx in forum Excel General
    Replies: 7
    Last Post: 03-12-2012, 10:42 PM
  5. If Then formula with wild card
    By zdonner in forum Excel General
    Replies: 1
    Last Post: 01-19-2011, 11:27 AM
  6. [SOLVED] Wild card in two condition text formula
    By jmrd in forum Excel General
    Replies: 1
    Last Post: 03-03-2006, 02:40 PM
  7. wild card -- help with formula
    By Michael A in forum Excel General
    Replies: 10
    Last Post: 01-08-2006, 06:20 AM

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