Lou Pointspreads
New Member
- Joined
- Oct 24, 2018
- Messages
- 10
Hey Folks,
Newbie to the community here, trying to update weekly football scores that i copy and paste from a website. (covers.com)
The football scores come in this format W/L (win or loss) and the score with a hyphen in the middle.
"L 31-33" would be a loss as the team scored 31 points and allowed 33 points against.
So i only need 31 in one cell and 33 in another.
I used a =LEFT((+RIGHT(I3,5)),2) to get the two digits on the left, points for without the L o the space next to it.
I used a +RIGHT(I3,2) to get the two digits on the right.
They return as a string, so i needed to use VALUE to turn them back into numbers.
=VALUE(LEFT((+RIGHT(I3,5)),2))
=VALUE(+RIGHT(I3,2))
so i figured this would work, and it did sort of. Except for when the score was of a single digit, say 0-9 because it includes a preceding space which value is unable to convert back to a number.
The formula works fine if i manually fix the score to "07" instead of 7, but who has time to manually anything these days.
I wanted to use an IFERROR, and did the following with no luck:
=IFERROR(VALUE(LEFT((+RIGHT(I15,5)),2)),VALUE(LEFT((+RIGHT(I15,5)),1)))
I also have a side question regarding replacing numbers, without using the manual prompt.
I have a cell who generates a number lets say 8.5, but that is not posible to do by the way football points are scored, 10 makes more sense. The same would happen if you got 11.5, 10 or 13 are more likely. Then, 14,17,20,21,23,24,27,28,31, 33, 35, 38, 41.
So i would need say like a side chart, perhaps a Vlookup of all the values and what they should round to in the football world. I am just thinking there has to be a more efficient way.
Anyway, thanks to everyone that reads this.
Cheers
Lou
Newbie to the community here, trying to update weekly football scores that i copy and paste from a website. (covers.com)
The football scores come in this format W/L (win or loss) and the score with a hyphen in the middle.
"L 31-33" would be a loss as the team scored 31 points and allowed 33 points against.
So i only need 31 in one cell and 33 in another.
I used a =LEFT((+RIGHT(I3,5)),2) to get the two digits on the left, points for without the L o the space next to it.
I used a +RIGHT(I3,2) to get the two digits on the right.
They return as a string, so i needed to use VALUE to turn them back into numbers.
=VALUE(LEFT((+RIGHT(I3,5)),2))
=VALUE(+RIGHT(I3,2))
so i figured this would work, and it did sort of. Except for when the score was of a single digit, say 0-9 because it includes a preceding space which value is unable to convert back to a number.
The formula works fine if i manually fix the score to "07" instead of 7, but who has time to manually anything these days.
I wanted to use an IFERROR, and did the following with no luck:
=IFERROR(VALUE(LEFT((+RIGHT(I15,5)),2)),VALUE(LEFT((+RIGHT(I15,5)),1)))
I also have a side question regarding replacing numbers, without using the manual prompt.
I have a cell who generates a number lets say 8.5, but that is not posible to do by the way football points are scored, 10 makes more sense. The same would happen if you got 11.5, 10 or 13 are more likely. Then, 14,17,20,21,23,24,27,28,31, 33, 35, 38, 41.
So i would need say like a side chart, perhaps a Vlookup of all the values and what they should round to in the football world. I am just thinking there has to be a more efficient way.
Anyway, thanks to everyone that reads this.
Cheers
Lou