Forum Discussion

Slavk0's avatar
Slavk0
Copper Contributor
Feb 20, 2025
Solved

Trying to sum up textual grades into total sum to be paid

So bassicaly what i'm trying to do is, i have my scorecards and employee grades up (the tables are relatively large and are divided into weeks and hence, different sheets). What i'm trying to do now is to populate a new table with all the grades for 4 weeks and i've managed that using VLOOKUP, and lastly sum it all up. The problem is the grades are textual (Fantastic plus, fantastic,...) and i want to find a way to assign a numerical value to those textual grades that will allow me to sum it up into a "to-be-paid" ammount. Any help or advice is appreciated.

  • I created a table named Scores with two columns: Grade and Score. It can be on the same sheet or another sheet.

    This can be used in an XLOOKUP formula:

    The formula in C2 is

    =XLOOKUP(B2:B9, Scores[Grade], Scores[Score], 0)

  • Slavk0's avatar
    Slavk0
    Copper Contributor

    This helped quite a lot, and i managed to complete what i wanted to do with a few minor bumps along the road. Thank you!

  • I created a table named Scores with two columns: Grade and Score. It can be on the same sheet or another sheet.

    This can be used in an XLOOKUP formula:

    The formula in C2 is

    =XLOOKUP(B2:B9, Scores[Grade], Scores[Score], 0)

Resources