mhenk
Well-known Member
- Joined
- Jun 13, 2005
- Messages
- 591
I have baseball linescores saved as text entries in my data. What I would like to do is break up these linescores (currently single cells) into a cell for each inning. The data is formatted like this:
14000(10)21x, which yields:
1 run in the first, 4 in the second, 0 in the third-fifth, 10 in the sixth, 2 in the seventh, 1 in the eighth, and did not have to play the ninth.
I would like the following 9 cells to be created:
1, 4, 0, 0, 0, 10, 2, 1 ,x.
If you haven't guessed by now, my issue is when there are more than 9 runs in an inning.
VBA is an option, a formula is preferable.
I'll have do something to take into account the games that have more than 9 innings, but I need to resolve this issue first.
14000(10)21x, which yields:
1 run in the first, 4 in the second, 0 in the third-fifth, 10 in the sixth, 2 in the seventh, 1 in the eighth, and did not have to play the ninth.
I would like the following 9 cells to be created:
1, 4, 0, 0, 0, 10, 2, 1 ,x.
If you haven't guessed by now, my issue is when there are more than 9 runs in an inning.
VBA is an option, a formula is preferable.
I'll have do something to take into account the games that have more than 9 innings, but I need to resolve this issue first.