Potentials and Excel Topic

How do you guys use excel to predict players overall ratings? Are there any specific formulas? 
3/10/2014 6:39 PM
low potential ranges 1-6 pts, average 7-20, low-high 21-27 and high-high 28+. I use 3 pts for low, 13 for avg, 24 for low high and just the bare 28 for HH (but I color code by potential type too, so the HHs stand out and I mentally allow for mystery 'bonus' growth). A know a coach who uses just about those same numbers but goes with 32 for HH.
3/10/2014 7:31 PM
= B2 + IF(C2 = "High High",31,0)+ IF(C2 = "High",23,0) + IF(C2 = "Average",12,0) + IF(C2 = "Low",4,0) + IF(C2 = "Low Low",1,0)

You owe me!  I'm no wiz at getting the inputs in the proper cells without it being labor intensive (i.e. a bit of cutting & pasting), then adding in the extra High or Low as that info is gleaned from scouting trips.  I also put a 100 cap in with a similarly blunt-force effort.  That's how I roll.  Obviously, the numbers can be substituted for your preferences (like those suggested by dacj).  Allegedly yatzr's tools will do this wholesale, but I haven't test driven those.

Just remember, your Average may turn out to be 7; your High High may be 28.  I disclaim all warranties.  Your results WILL vary!

3/10/2014 7:46 PM
thanks guys
3/10/2014 8:37 PM
kinda generic and more labor intensive but create your header starting in a1 (name) and then each attribute down to O1 = rating and then
setup your columns where b1 is the player name, b2 is that players ATH and you can cut/paste the initial results from your recruits in them and then add them manually (ie.  if your recruit is average just add 12 to your value manually) and then say in row 17 you actually put in your values (ie. ath = 18%, spd = 18%, etc) and then in column O actually have your formulas setup..O2 formula would be   =(($B2*$B$17)+($C2*$C$17)+($D2*$D$17)+($E2*$E17)+($F2*$F17)+($G2*$G$17)+($H2*$H$17)+($I2*$I$17)+($J2*$J$17)+($K2*$K$17)+($L2*$L$17)+($M2*$M$17)/$N$17)

that formula takes the value of b2 (ath) and multiplies it by your preset percentage for ATH and then adds in the next set for the rest of the attributes..
clear as mud??


anyway, thats an alternative to rogelio's method.  I think i like his idea and may try that myself if i get the time to sit down and tinker with excel (busy work/home life)





3/10/2014 9:47 PM
There is a way to turn the color of text into a potential by writing a visual basic script. There is a way.
3/11/2014 12:30 PM
Posted by rogelio on 3/10/2014 7:46:00 PM (view original):
= B2 + IF(C2 = "High High",31,0)+ IF(C2 = "High",23,0) + IF(C2 = "Average",12,0) + IF(C2 = "Low",4,0) + IF(C2 = "Low Low",1,0)

You owe me!  I'm no wiz at getting the inputs in the proper cells without it being labor intensive (i.e. a bit of cutting & pasting), then adding in the extra High or Low as that info is gleaned from scouting trips.  I also put a 100 cap in with a similarly blunt-force effort.  That's how I roll.  Obviously, the numbers can be substituted for your preferences (like those suggested by dacj).  Allegedly yatzr's tools will do this wholesale, but I haven't test driven those.

Just remember, your Average may turn out to be 7; your High High may be 28.  I disclaim all warranties.  Your results WILL vary!

potential in yatzr's tool is only used in formulas. there is no projection aspect to the program (not counting when its implicit in formulas).
3/11/2014 4:32 PM
I do it the novice way. I cut and paste the players into excel, then manually change their ratings based on potential. To save time, I don't alter the low potentials but increase the average and high potentials accordingly (if low is 6 and high is 28, I add 22 to all the high potentials for a category)
3/12/2014 9:58 AM
Cut and paste the equation, posted above, into 12 rows of column D.  Then:

Go to the player's FSS page, ctrl-c, all categories, ratings & potential.  ctrl-v into a blank xls sheet.  ctrl-x the 3 columns on the right and ctrl-v below the columns on the left.  Now you have just 3 columns: category, rating, potential.  ctrl-c all those 3 columns from the blank sheet, move to the first sheet and ctrl-v into columns A-C and those 12 rows.  I'll type WE into a 13th row and make column D just = that A cell.  Then SUM up in the row below each.

Once you've set that up once, then that will cut out a ton of work, but not as much as I would like.

If anyone has a way to get excel to "read" the font color within each cell (there are only 3), then the same logic could be applied wholesale to cut & paste a scouted states search and get a report.  I bet there is someone in here that could figure that out....

3/12/2014 11:02 AM (edited)
i found a user defined function online..

Function GetFontColorIndex(pRange As Variant) As Integer

   Set pRange = pRange.Areas(1)
   
   GetFontColorIndex = pRange.Cells(1, 1).Font.ColorIndex
   
End Function

i think i just pasted that in as if writing a macro.  i cant recall if there is some special way i had to save it.  then, when you look at your list of functions,  one of the categories will be "user-defined" and one of the functions wil be GetFontColorIndex.      then just enter this formula in a cell and it will return the font color of the cell in question.   

for instance..  when i copy paste the team ratings to excel, lets say that table resides in b12..r25 including header and average line.  
column e in this scenario is ath
then i put ths formula in t13:
GetFontColorIndex(e13)   
then i copy t13 to    t13..af24

within this new table,   red is 3,  blue is 23,   black is 1.    for some reason,  the WE cells return the number 56 even though they seem the same color black as the cells that return 1.  
 
have been nice if black was 10 or 12 or something because would have been a decent approximation of the numbers we want.    but,  since its not,  you need a way to create a table that has the actual improvement projections that you want.  you can do this with if then or by creating a small table like this

1    12
3      3
23  23
56  12

where the number on the right is the number that you want to use for the med, low, high and WEimprovement

then use vlookup to refer to that little table and create a new table that will show  your expected improvement


then a final table that adds the expected improvement to the current skill value to arrive at your projected max rating for that skill/  you will need to include a formula that keep that projection from going over 100.

sorry i cant explain this any better.  i know its probably confusing,  but i tried.  im a novice myself but sometimes i stumble onto helpful things.

maybe a programmer type guy can explain it better


 
3/12/2014 11:47 AM
Oldave, I think I tried that once and failed to make it work, but I'll give it another try once I have some time.  Fairly sure getting the macro/user defined function properly set up is my issue. 
3/13/2014 11:58 AM
I'll try to do it again on another computer and see if I can recall how it is done.
3/13/2014 12:48 PM

25+ years as a programmer, so here is how I do it.  You'll need to create a VBA and put in the following code below:

Dim CI As Long

Application.Volatile True

If OfText = True Then

        CI = Cell(1, 1).Font.ColorIndex

    Else

        CI = Cell(1, 1).Interior.ColorIndex

    End If

    If CI < 0 Then

        If IsValidColorIndex(ColorIndex:=DefaultColorIndex) = True Then

            CI = DefaultColorIndex

        Else

            CI = -1

        End If

    End If

    

    ColorIndexOfOneCell = CI

    

End Function

    

Private Function IsValidColorIndex(ColorIndex As Long) As Boolean


Select Case ColorIndex

    Case 1 To 56

        IsValidColorIndex = True

        Case xlColorIndexAutomatic, xlColorIndexNone

            IsValidColorIndex = True

        Case Else

        IsValidColorIndex = False

    End Select

End Function


Function ColorIndexOfRange(InRange As Range, Optional OfText As Boolean = False, Optional DefaultColorIndex As Long = -1) As Variant

    Dim Arr() As Long

    Dim NumRows As Long

    Dim NumCols As Long

    Dim RowNdx As Long

    Dim ColNdx As Long

    Dim CI As Long

    Dim Trans As Boolean

    

    Application.Volatile True

    If InRange Is Nothing Then

        ColorIndexOfRange = CVErr(xlErrRef)

        Exit Function

    End If

    If InRange.Areas.Count > 1 Then

        ColorIndexOfRange = CVErr(xlErrRef)

        Exit Function

    End If

    If (DefaultColorIndex < -1) Or (DefaultColorIndex > 56) Then

        ColorIndexOfRange = CVErr(xlErrValue)

        Exit Function

    End If

    

    NumRows = InRange.Rows.Count

    NumCols = InRange.Columns.Count

    

    If (NumRows > 1) And (NumCols > 1) Then

        ReDim Arr(1 To NumRows, 1 To NumCols)

        For RowNdx = 1 To NumRows

            For ColNdx = 1 To NumCols

                CI = ColorIndexOfOneCell(Cell:=InRange(RowNdx, ColNdx), _

                    OfText:=OfText, DefaultColorIndex:=DefaultColorIndex)

                Arr(RowNdx, ColNdx) = CI

            Next ColNdx

        Next RowNdx

        Trans = False

    ElseIf NumRows > 1 Then

        ReDim Arr(1 To NumRows)

        For RowNdx = 1 To NumRows

            CI = ColorIndexOfOneCell(Cell:=InRange.Cells(RowNdx, 1), _

                OfText:=OfText, DefaultColorIndex:=DefaultColorIndex)

            Arr(RowNdx) = CI

        Next RowNdx

        Trans = True

    Else

        ReDim Arr(1 To NumCols)

        For ColNdx = 1 To NumCols

            CI = ColorIndexOfOneCell(Cell:=InRange.Cells(1, ColNdx), _

                OfText:=OfText, DefaultColorIndex:=DefaultColorIndex)

            Arr(ColNdx) = CI

        Next ColNdx

        Trans = False

    End If


    If IsObject(Application.Caller) = False Then

        Trans = False

    End If

    

    If Trans = False Then

        ColorIndexOfRange = Arr

    Else

        ColorIndexOfRange = Application.Transpose(Arr)

    End If

    

End Function


Next, in a cell you can now for example enter in the function formula such as:

=colorIndexOfRange (A2:A2,TRUE,-1)

where the first parameter is the cell location

This will put into that cell a number which represents the color of the text in the reference cell.

For example, for the standard colors of black, blue and red in Excel, I get the numbers -1,33,3.  You can then just use those numbers to add whatever potential increases to the starting values you wish.

Note: You'll have to Enable Macros every time you want to see the function, otherwise Excel won't recognize the function above (puts #NAME? as the function result)

 

3/13/2014 3:28 PM (edited)
"where the first parameter is the cell location"

Ahh! That's where I made the mistake! I put the code in the second parameter!
3/14/2014 6:19 AM
I feel as if I'm the only one who just wings it.  My achievements (or lack thereof) may be trying to tell me something.
3/16/2014 9:33 PM
12 Next ▸
Potentials and Excel Topic

Search Criteria

Terms of Use Customer Support Privacy Statement

© 1999-2026 WhatIfSports.com, Inc. All rights reserved. WhatIfSports is a trademark of WhatIfSports.com, Inc. SimLeague, SimMatchup and iSimNow are trademarks or registered trademarks of Electronic Arts, Inc. Used under license. The names of actual companies and products mentioned herein may be the trademarks of their respective owners.