I've searched here (and elsewhere) for something that will take baseball stat inputs and return an ordered list based on ordinal criteria (i.e. return max OBP unless also max OPS, then return 2nd best OBP). I found a website that will make a lineup, but does not have adjustable criteria and their criteria don't match mine. I did find one spreadsheet here, but I couldn't modify it (don't know enough Excel to do so), and it is not scalable.
So, I am looking for a way to generate a lineup based on these stats: On Base % (OBP), Slugging (SLG), and OPS (OBP+SLG) and Batting Avg (BA)
The rules I need to follow:
#1 = best OBP unless is also best OPS or best SLG, then 2nd best OBP
#2 = best OPS
#3 = 2nd best OBP unless used for #1, then 3rd best
#4 = best SLG unless same as #2, then 2nd best SLG
Obviously, none can repeat, but would need to repeat the ordering for 20>n>7 players. Also, there will likely be duplicate numbers for each stat, so BA becomes the tiebreaker.
I'd attach what I have, but I have nothing at this point, sorry. Any help would be appreciated! I hope I've been specific enough and I put this in the right place?
Ray
Bookmarks