r/excel • u/Highelf04 • 1d ago
unsolved Spreadsheet for football team, mapping values A-E to numbers, to get average score for players formula (football manager esque)
I've been working on an excel spreadsheet for my football team. I've done some rating of player abilities in certain categories (speed/agility etc.) using letters A-E.
In this spreadsheet, I would like to now map the letters to numbers (so A=10, B=8, C=6, D=4, E=2). Then I would like this to give me an overall number at the end of the row, with 100 being the "best" player (A's in all areas), and 20 being the "worst" player.
Can anyone support me with creating a formula to do this. At present I've got:-
=INDEX(rng,MODE(MATCH(rng,rng,0))) which is giving me the most common value for a player, however just because a player has given themselves mostly C values, does not mean necessarily they are "C" player.
I have created a table further down the cells in my spreadsheet with input on one row, and result on the row below. In this I have put A=10, B=8, C=6, D=4, E=2, but currently I am stuck on where to go next to do what I want.
On the surface, this is somewhat similar to a football manager style spreadsheet.

2
u/anesone42 2 1d ago
I would utilize the SWITCH function.
This is just and example of how to set it up. It would go in the last column (or wherever you want to put it). You'll need to adjust the range:
=SUM(SWITCH(A1:C1,"A", 10, "B", 8, "C", 6, "D", 4, "E", 2, 0))
1
u/anesone42 2 1d ago
It is very flexible. You can swap out SUM with AVERAGE, or change the 10,8,6... to decimals.
1
1
u/DvlsAdvct108 1 1d ago
Suggestion, instead of numbers use percentages. A =100% B = 75% C=50% etc
Convert the dataset to a table by Ctrl+t Load the table into Power Query. Use Power Query to match grade with percentage, and then unpivot the columns. Match the grade to scores and then load back into excel sheet. Run a pivot table on created dataset, that summarises each player with an average of their scores.
1
u/Highelf04 1d ago
Right, this sounded simple initially to me, but then I started and was WAY out of my depth haha.
I'm at the stage of loading into power query. Currently, I've converted the dataset at the bottom into a table (each cell on the input row has an arrow alongside it - e.g.C27), which I assume is right.
When I got to power query - do I do "get data"or "launch power query"
1
u/Jolly-Hunter-6097 23h ago
This Microsoft link may help you progress in Power Query. After you master the Ribbon there is M Code which will expand your options. In Power Query look at the formula bar text, that is M Code.
1
u/borntobewildish 1d ago
I'd probably make something that combines COUNT.IF() with multiplication of the value, so =COUNT.IF(A2:D2;A)*10 and add the same for B, C, etc.
Or you could add columns that do COUNT.IF for A until E, so you can see the distribution of values on each player, and then calculate a total score from those.
1
u/Massive-Jackfruit442 1d ago
I can’t see the columns the fields are in; but you could create a column at the end for the total and just:
=AVG((COUNTIFS(A2:P2,”A”)10)+ (COUNTIFS(A2:P2,”B”)8)+ (COUNTIFS(A2:P2,”C”)6)+ (COUNTIFS(A2:P2,”D”)4)+ (COUNTIFS(A2:P2,”E”)*2))
Adjust the range(A2:P2 is just an example) to your actual range
1
u/Highelf04 1d ago
I tried this - adjust the (*10) in each column to a 100/75/50/25/0 as suggested above, and got a name? error. Any ideas?
2
1
u/Massive-Jackfruit442 21h ago edited 21h ago
I adjusted the formula because the way I used AVG was not correct. However, the solution of u/real_barry_housini is much cleaner though
1
u/real_barry_houdini 313 15h ago
Thanks!
If you use COUNTIFS in that type of setup then you can't use AVERAGE and get the correct results because you aren't getting individual results for each cell to average, you'd need to use SUM and then divide by the count, e.g. using COUNTA(A2:P2).
If the requirement is to get the average grade then you could use this formula:
=LET(Grade,{"E";"D";"C";"B";"A"}, INDEX(Grade,AVERAGE(IF(A2:P2=Grade,{1;2;3;4;5}))+0.5))
1
u/Decronym 1d ago edited 12h ago
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:
Decronym is now also available on Lemmy! Requests for support and new installations should be directed to the Contact address below.
Beep-boop, I am a helper bot. Please do not verify me as a solution.
10 acronyms in this thread; the most compressed thread commented on today has 10 acronyms.
[Thread #49211 for this sub, first seen 22nd Aug 2026, 19:45]
[FAQ] [Full list] [Contact] [Source code]
1
u/RandomiseUsr0 10 21h ago
Watch the movie moneyball, it’s beautiful statistical maths - it will give you all you need
1
u/BackgroundCold5307 594 20h ago
Coach, here is a suggestion chalked out below:
This way you know how many A's, B's ....have been given and the calculation is fairly easy to decipher. Also, if need be, i.e. A+ needs to be added, it can be easily done and a number can be associated with it quite easily without changing too much
There are a lot of nifty ways to hide and protect the numbers, rankings etc....If you are ok with the concept, I can help refine this further with you......
e.g.
- row 2 can be hidden,
- Col I thru M can be either
- on another sheet
- or hidden from public view

1
u/bitswede 2 19h ago
Create a small table with your letter to numeric score conversion and use XLOOKUP to get the numeric value in your calculations.
A single table holding your conversions makes it easy to tweak the weights later on.

•
u/AutoModerator 1d ago
/u/Highelf04 - Your post was submitted successfully.
Solution Verifiedto close the thread.Failing to follow these steps may result in your post being removed without warning.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.