Converting stats into ratings

Discuss the spreadsheet application
Post Reply
PhantomSM
Posts: 3
Joined: Fri May 31, 2019 5:37 am

Converting stats into ratings

Post by PhantomSM »

I'm trying to convert baseball stats into a 30-99 rating for a game I play. 30-99 because the in game rating system bottoms out there instead of using the entire 1-99 range.
Sample2.jpg
Sample2.jpg (89 KiB) Viewed 1009 times
So for example column X has the hits allowed per 9 innings stats (H/9) for this player for this player over the last 4 years. I want to turn those stats into a 30-99 number and have that number automatically calculated into column Y. With this column a 99 rating would equal 5.0 H/9 and a 30 rating would equal 12.0 H/9. Lower is better in this case. Obviously my statistical range would be different for column Z, column AB, and column AD. The ratings will usually all be 30-99 but if a few instances it will top out at 95 instead of 99.

One final hiccup is I want to regress the rating based on the level of play (MLB, AAA, AA, A, RK). I have this info entered into a column not shown in the image (column C). Basically MLB would be 100% where 5.0 H/9 would equal 99 for example. AAA would be 75% (5.0=75), AA would be 70%, A would be 65%, and RK would be 60%.

Fun with spreadsheets!
OpenOffice 4.1.6 on Windows 10
gerard24
Volunteer
Posts: 958
Joined: Sat Oct 30, 2010 5:12 pm
Location: France

Re: Converting stats into ratings

Post by gerard24 »

For the rating :

Code: Select all

=FORECAST(X3;{30;99};{5;12})
You can replace array constant {30;99} and {5;12} with cell range.

For the other question, use a (V|L) LOOKUP table.
LibreOffice 6.4.5 on Windows 10
PhantomSM
Posts: 3
Joined: Fri May 31, 2019 5:37 am

Re: Converting stats into ratings

Post by PhantomSM »

Ooh buddy! I hope all the good things in life happen to you my friend!
OpenOffice 4.1.6 on Windows 10
PhantomSM
Posts: 3
Joined: Fri May 31, 2019 5:37 am

Re: Converting stats into ratings

Post by PhantomSM »

One last hiccup. Is there a way to cap off the ratings at 99 and 30. =FORECAST(X3;{30;99};{5;12}) works great but there are some instances where a stat will go above/below my statistical range. 5.0-12.0 in my previous example where 5.0=99 and 12.0=30. What I'm asking is if someone gets say 4.9,I want their rating to cap at 99 and not be say 100 or above. So that anything 5.0 and lower all get rated 99 and anything 12.0 and higher all get rated 30 if that makes sense?
OpenOffice 4.1.6 on Windows 10
gerard24
Volunteer
Posts: 958
Joined: Sat Oct 30, 2010 5:12 pm
Location: France

Re: Converting stats into ratings

Post by gerard24 »

PhantomSM wrote: Is there a way to cap off the ratings at 99 and 30. =FORECAST(X3;{30;99};{5;12}) works great but there are some instances where a stat will go above/below my statistical range.

Code: Select all

=MEDIAN(Forecast formula;30;99)
LibreOffice 6.4.5 on Windows 10
Post Reply