I have an Excel sheet that I am using to update player ratings.
| Player | Placing | IniRating | 1 | 2 | 3 | 4 | FinRating |
|---|---|---|---|---|---|---|---|
| A | 1 | 2.0 | 1.000 | 0.018 | 0.016 | 0.014 | 2.007 |
| D | 2 | -2.0 | 54.598 | 0.982 | 0.856 | 0.775 | -1.758 |
| C | 3 | -0.1 | 8.166 | 0.147 | 0.128 | 0.116 | -0.213 |
| B | 4 | 0.1 | 6.686 | 0.120 | 0.105 | 0.095 | -0.036 |
The formulas in cells D2 to G5 is
=EXP(-$C2)/SUMPRODUCT(--($B$2:$B$5<=D$1)*(EXP(-$C$2:$C$5)))
and the formulas in column H (FinRating) is
=((SUMPRODUCT(($D$1:$G$1>=B2)*$D2:$G2)-1)*0.15)+C2
I want to apply these formulas across multiple sheets (events) and increase the number of Players (which would require adding more columns) so would be ideal to have them combined in one formula.
Ideally the formula would go into column FinRating I could adjust the ranges it referenced and the FinRating would be calculated. Final table would look like this
| Player | Placing | IniRating | FinRating |
|---|---|---|---|
| A | 1 | 2.0 | 2.007 |
| D | 2 | -2.0 | -1.758 |
| C | 3 | -0.1 | -0.213 |
| B | 4 | 0.1 | -0.036 |
I've spent some time trying to combine these formulas with no luck, and my exprience using SUMPRODUCT is a little light.
Any thoughts on how to achieve this?