Assign a number to a performance word and total a row range

%3CLINGO-SUB%20id%3D%22lingo-sub-2545468%22%20slang%3D%22en-US%22%3EAssign%20a%20number%20to%20a%20performance%20word%20and%20total%20a%20row%20range%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2545468%22%20slang%3D%22en-US%22%3E%3CP%3ESorry%20about%20the%20cumbersome%20title%20i've%20got%20a%20blinding%20headache%20spending%20hours%20staring%20at%20a%20computer%20screen%20to%20work%20out%20the%20solution%20myself%20to%20no%20avail%2C%20i%20can%20barely%20think%20straight%20now.%3C%2FP%3E%3CP%3EAll%20i%20want%20to%20do%20is%20assign%20a%20number%20to%20a%20sporting%20performance%2C%20then%20for%20an%20athlete%20have%20their%20scores%20totalled%20in%20a%20range%20on%20a%20row.%3C%2FP%3E%3CP%3EExample%3C%2FP%3E%3CP%3E%3CU%3EPERFORMANCE%20AND%20NUMBER%20VALUES%20TO%20ASSIGN%3C%2FU%3E%3C%2FP%3E%3CP%3EExcellent%205%3C%2FP%3E%3CP%3EVery%20Good%204%3C%2FP%3E%3CP%3EGood%203%3C%2FP%3E%3CP%3EAverage%202%3C%2FP%3E%3CP%3EPoor%201%3C%2FP%3E%3CP%3E%26nbsp%3BTHEN%20ON%20A%20ROW%26nbsp%3B%3C%2FP%3E%3CP%3EAthlete%20Name%26nbsp%3B%204%26nbsp%3B%205%26nbsp%3B%203%26nbsp%3B%204%26nbsp%3B%203%26nbsp%3B%20and%20the%20next%20cell%20would%20hold%20the%20SUM%20of%20those%20scores%2019%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20believe%20me%2C%20i'm%20not%20lazy%2C%20i%20also%20take%20pleasure%20in%20working%20things%20out%20for%20myself%2C%20but%20i've%20gone%20through%20dozens%20of%20functions%20and%20my%20head%20hurts.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20using%20Excel%202019.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20You%20in%20advance%20of%20any%20assistance.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2545468%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2545486%22%20slang%3D%22en-US%22%3ERe%3A%20Assign%20a%20number%20to%20a%20performance%20word%20and%20total%20a%20row%20range%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2545486%22%20slang%3D%22en-US%22%3ESo%20sorry%20i%20told%20you%20i%20wasn't%20thinking%20straight.%20In%20the%20cells%20of%20the%20row%20with%20the%20Athlete%20Name%2C%20i%20have%2C%20instead%20of%20the%20numbers%2C%20E%2C%20VG%2C%20G%2C%20A%2C%20P%2C%20so%20i%20wish%20those%20letters%20to%20DISPLAY%2C%20but%20in%20the%20last%20cell%20the%20number%20total%20to%20display.%3CBR%20%2F%3E%3CBR%20%2F%3EPlease%20note%20the%20examples%20above%20is%20a%20a%20rough%20one%20to%20'try'%20and%20get%20across%20what%20i%20wish%20to%20do%2C%20it's%20not%20my%20actual%20document.%20However%20the%20query%20will%20help%20out%20anyone%20who%20wishes%20to%20assign%20a%20number%20to%20a%20word%20or%20any%20text%20statement%2C%20and%20then%20use%20the%20SUM%20in%20many%20ways.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2545587%22%20slang%3D%22en-US%22%3ERe%3A%20Assign%20a%20number%20to%20a%20performance%20word%20and%20total%20a%20row%20range%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2545587%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1099782%22%20target%3D%22_blank%22%3E%40brainbursteyeshurt%3C%2FA%3E%26nbsp%3BPerhaps%20not%20the%20most%20elegant%20solution%2C%20but%20in%20the%20attached%20workbook%2C%20you'll%20find%20a%20working%20example%2C%20using%20some%20named%20ranges.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2545649%22%20slang%3D%22en-US%22%3ERe%3A%20Assign%20a%20number%20to%20a%20performance%20word%20and%20total%20a%20row%20range%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2545649%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1099782%22%20target%3D%22_blank%22%3E%40brainbursteyeshurt%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPerhaps%2C%20this%20formula%20in%20%3CSTRONG%3EF2%3C%2FSTRONG%3E%20in%20the%20snapshot%20below%20satisfies%20your%20requirement%3A%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DSUMPRODUCT(LOOKUP(A2%3AE2%2C%0A%7B%22A%22%2C%22E%22%2C%22G%22%2C%22P%22%2C%22VG%22%7D%2C%0A%7B2%2C5%2C3%2C1%2C4%7D))%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3BWhen%20copied%20down%20rows%2C%20the%20results%20will%20look%20like%20these%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Twifoo_0-1626243996187.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F295657i6126ECDAAEFA55A0%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Twifoo_0-1626243996187.png%22%20alt%3D%22Twifoo_0-1626243996187.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EYou%20may%20play%20with%20the%20formula%20in%20the%20attached%20file.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2968116%22%20slang%3D%22en-US%22%3ERe%3A%20Assign%20a%20number%20to%20a%20performance%20word%20and%20total%20a%20row%20range%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2968116%22%20slang%3D%22en-US%22%3EHuge%20apologies%2C%20as%20it%20seems%20i%20didn't%20reply%20and%20offer%20thanks%20for%20this%20at%20the%20time.%20I%20may%20have%20at%20the%20time%20settled%20on%20either%20a%20non-optimal%20alternative%20solution%20for%20speed%20or%2C%20using%20your%20example%2C%20as%20i%20came%20upon%20a%20glitch%2C%20something%20similar%20but%20certainly%20helped%20by%20your%20example.%3CBR%20%2F%3EAnyways%20Thank%20You%20very%20much%20and%20also%20to%20Riny%20above.%3C%2FLINGO-BODY%3E
New Contributor

Sorry about the cumbersome title i've got a blinding headache spending hours staring at a computer screen to work out the solution myself to no avail, i can barely think straight now.

All i want to do is assign a number to a sporting performance, then for an athlete have their scores totalled in a range on a row.

Example

PERFORMANCE AND NUMBER VALUES TO ASSIGN

Excellent 5

Very Good 4

Good 3

Average 2

Poor 1

 THEN ON A ROW 

Athlete Name  4  5  3  4  3  and the next cell would hold the SUM of those scores 19

 

Please believe me, i'm not lazy, i also take pleasure in working things out for myself, but i've gone through dozens of functions and my head hurts.

 

I'm using Excel 2019.

 

Thank You in advance of any assistance.

4 Replies
So sorry i told you i wasn't thinking straight. In the cells of the row with the Athlete Name, i have, instead of the numbers, E, VG, G, A, P, so i wish those letters to DISPLAY, but in the last cell the number total to display.

Please note the examples above is a a rough one to 'try' and get across what i wish to do, it's not my actual document. However the query will help out anyone who wishes to assign a number to a word or any text statement, and then use the SUM in many ways.

@brainbursteyeshurt Perhaps not the most elegant solution, but in the attached workbook, you'll find a working example, using some named ranges.

@brainbursteyeshurt 

Perhaps, this formula in F2 in the snapshot below satisfies your requirement: 

=SUMPRODUCT(LOOKUP(A2:E2,
{"A","E","G","P","VG"},
{2,5,3,1,4}))

 When copied down rows, the results will look like these:

Twifoo_0-1626243996187.png

You may play with the formula in the attached file. 

Huge apologies, as it seems i didn't reply and offer thanks for this at the time. I may have at the time settled on either a non-optimal alternative solution for speed or, using your example, as i came upon a glitch, something similar but certainly helped by your example.
Anyways Thank You very much and also to Riny above.