+ Reply to Thread
Results 1 to 16 of 16

Baseball, who scored first formula?

  1. #1
    Registered User
    Join Date
    04-20-2018
    Location
    DALLAS TX
    MS-Off Ver
    Excel 2016 for Mac
    Posts
    9

    Baseball, who scored first formula?

    I do a baseball box score spreadsheet.

    I need a formula to determine which team scores first. Sometimes only 1 team scores first.

    Example. 1st inning (E2) to 10th inning (N2)

    Thanks for any help - Alexandra.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,492

    Re: Baseball, who scored first formula?

    Welcome to the forum!

    You are going to have to give more detail, in particular the layout of your data.

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    04-20-2018
    Location
    DALLAS TX
    MS-Off Ver
    Excel 2016 for Mac
    Posts
    9

    Re: Baseball, who scored first formula?

    Thanks Ali

    love alexandra
    Attached Files Attached Files

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: Baseball, who scored first formula?

    You didn't explained your query, what is the logic and what are result you are expecting here in attachment.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  5. #5
    Registered User
    Join Date
    04-20-2018
    Location
    DALLAS TX
    MS-Off Ver
    Excel 2016 for Mac
    Posts
    9

    Re: Baseball, who scored first formula?

    Thanks for the interest shukla-

    I'd like a formula to determine which team scores first between each two teams. Odd number team plays even numbered team with odd team batting first.

    Example- The first game was between 953 Washington and 954 N.Y. Mets.
    Washington scored first. They scored in inning #10. (K2) The formula would designate that with a 1 in O2.

    The second game was between 955 Philadelphia and 956 Atlanta.
    Philadelphia scored first in inning #1 (B4). The formula would designate that with a 1 in O4.

    The third game was between 957 Cincinnati and 958 Milwaukee.
    Milwaukee scored first in inning #10 (K7). The formula would designate that with a 1 in O7.

    The forth game was between 959 St. Louis and 960 Chi. Cubs.

    Chi. Cubs scored first in inning #2 (C9). The formula would designate that with a 1 in O9.

    Thanks for any help

    love alexandra
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-20-2018
    Location
    DALLAS TX
    MS-Off Ver
    Excel 2016 for Mac
    Posts
    9

    Re: Baseball, who scored first formula?

    Hello people

    any help would be greatly appreciated!

    love alexandra

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,769

    Re: Baseball, who scored first formula?

    The second game was between 955 Philadelphia and 956 Atlanta.
    Philadelphia scored first in inning #1 (B4). The formula would designate that with a 1 in O4.
    How would we determine that from the data as both B4 & B5 have a 1 (Same innings)

  8. #8
    Registered User
    Join Date
    04-20-2018
    Location
    DALLAS TX
    MS-Off Ver
    Excel 2016 for Mac
    Posts
    9

    Re: Baseball, who scored first formula?

    Hello John

    Odd numbered team always bats first (TOP TEAM), thus if they both score in the same inning then it would be the odd numbered team who had scored first. The problem is sometimes one team doesn't score at all.
    Thanks for your interest
    love alexandra

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,769

    Re: Baseball, who scored first formula?

    Try

    "Helper" in Column P

    Please Login or Register  to view this content.



    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    Then copy down

    in O2

    Please Login or Register  to view this content.
    I note you a MAC user so I hope these work.
    Attached Files Attached Files

  10. #10
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,647

    Re: Baseball, who scored first formula?

    Another option with no helper:
    In O2:
    Please Login or Register  to view this content.
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Attached Files Attached Files
    Quang PT

  11. #11
    Registered User
    Join Date
    04-20-2018
    Location
    DALLAS TX
    MS-Off Ver
    Excel 2016 for Mac
    Posts
    9

    Re: Baseball, who scored first formula?

    That works pretty good John. So thank you for that. It doesn't register who scored first in the 955/956 game which would have been 955. Appreciate sharing your time.
    love alexandra

  12. #12
    Registered User
    Join Date
    04-20-2018
    Location
    DALLAS TX
    MS-Off Ver
    Excel 2016 for Mac
    Posts
    9

    Re: Baseball, who scored first formula?

    Super sweet Bebo. Much appreciated
    love alexandra

  13. #13
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,769

    Re: Baseball, who scored first formula?

    Should be ..

    =IFERROR(IF(ISODD(ROWS($1:1)),IF(INDEX($P$2:$P$100,ROWS($1:1)) <= INDEX($P$2:$P$100,ROWS($1:1)+1),1,""),IF(ISEVEN(ROWS($1:1)),IF(INDEX($P$2:$P$100,ROWS($1:1)) < INDEX($P$2:$P$100,ROWS($1:1)-1),1,""))),"")

  14. #14
    Registered User
    Join Date
    04-20-2018
    Location
    DALLAS TX
    MS-Off Ver
    Excel 2016 for Mac
    Posts
    9

    Re: Baseball, who scored first formula?

    Thank you my man
    love alexandra

  15. #15
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,769

    Re: Baseball, who scored first formula?

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  16. #16
    Registered User
    Join Date
    04-20-2018
    Location
    DALLAS TX
    MS-Off Ver
    Excel 2016 for Mac
    Posts
    9

    Solved big time: Baseball, who scored first formula?

    thanks for the help

    love

    Alexandra

+ 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. Replies: 2
    Last Post: 02-22-2017, 01:37 PM
  2. Replies: 3
    Last Post: 02-17-2016, 10:04 AM
  3. formula for fantasy baseball!
    By drnick in forum Excel General
    Replies: 8
    Last Post: 09-19-2014, 07:04 PM
  4. [SOLVED] formula to find name of person who scored highest score
    By rohit43 in forum Excel General
    Replies: 8
    Last Post: 11-21-2012, 11:58 AM
  5. Replies: 1
    Last Post: 11-19-2012, 03:58 PM
  6. Replies: 2
    Last Post: 10-10-2012, 05:03 PM
  7. Formula for Fantasy Baseball
    By lycomingwarrior in forum Excel General
    Replies: 1
    Last Post: 11-12-2008, 05:17 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