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.
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.
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.
Thanks Ali
love alexandra
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)
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
Hello people
any help would be greatly appreciated!
love alexandra
How would we determine that from the data as both B4 & B5 have a 1 (Same innings)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.
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
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
I note you a MAC user so I hope these work.![]()
Please Login or Register to view this content.
Another option with no helper:
In O2:
...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.![]()
Please Login or Register to view this content.
Quang PT
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
Super sweet Bebo. Much appreciated
love alexandra
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,""))),"")
Thank you my man
love alexandra
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.![]()
thanks for the help
love
Alexandra
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks