+ Reply to Thread
Results 1 to 5 of 5

Another baseball scenario in Excel

  1. #1
    Forum Contributor
    Join Date
    02-20-2010
    Location
    Youngstown, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    179

    Another baseball scenario in Excel

    Okay, was thinking about how to ask this one so I'll do my best.

    I've been trying to find a pitching calculation generator for my community Little League website using Excel. Little League mandates that if a pitcher throws "X" amount of pitches in a day that he must be held out "X" amount of days before returning to pitch again. Here are the conditions:

    20 or less Pitches = No Days Rest
    21-35 Pitches = 1 Days Rest
    36-50 Pitches = 2 Days Rest
    51-65 Pitches = 3 Days Rest
    66-75 Pitches = 4 Days Rest

    75 is the max number of pitches.

    Observe the crude Excel file I have attached for reference. Any value in GREEN is an input while any value in BLUE is calculated. The calculated cells need to apply the rules, then refer to Cell B1 and return the appropriate date. Additionally, how do you deal with the end of the month situations where say for example, Tom was to pitch on the 29th of June of this year and not be permitted to pitch again until the 2nd of July due to waiting rules?

    I know for many of you this is simple but for a newbie such as myself, not so simple. Any help would be greatly appreciate.

    Thanks in advance,
    cheddarthief
    Attached Files Attached Files
    Last edited by cheddarthief; 05-06-2011 at 01:44 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Another baseball scenario in Excel

    In C5,

    =$B$1 + MATCH(B5, {0,21,36,51,66})
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    02-20-2010
    Location
    Youngstown, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    179

    Re: Another baseball scenario in Excel

    Thanks, that worked great. Can you please explain to me what this equation basically "says"?

    For example: equals the absolute value in cell B1 + whatever....

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Another baseball scenario in Excel

    The MATCH function returns the position of the largest value in the literal array that is less than or equal to the value in B5. The array is (and must be) in ascending order.

    Help explains MATCH pretty clearly.

  5. #5
    Forum Contributor
    Join Date
    02-20-2010
    Location
    Youngstown, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    179

    Re: Another baseball scenario in Excel

    Thanks again. I am super interested in designing formulas and macros for Excel but really have no idea where to begin. Any recommendations?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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