# How to add up values?

#### bomberswarm2

##### New Member
I'm rating things by letter grade, but when I add them all up I want to give them an average and total, so in order todo this I would rate the episode "A+" or "D-", when I add them up with a calculator using their values, which are A+ to F- including E grades, with A+ being worth 15 and F- being worth -2. How could Excel add these up automatically for me, by assigning a specific content a number value and then have it added up? Thanks

### Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

##### Active Member
you could create a table of those letter grades and their respective values and create a helper column where you could reference your total.(vlookup or something that could return their numeric values)

can you provide the table here? the letters and their points.

thanks.

#### Taul

##### Well-known Member
Assume the data is in the following layout (adjust the ranges to suit your sheet layout)

Sheet2
Cell A2 and below will be the score grade A+, A, B, C, D etc
Cell B2 and below will be the number score for each letter grade (15 for A+)
Assuming your data range will be from row 2 to row 20

Sheet1
Column A will list the episodes
Column B will list the letter score
Column C will have the following formula

Code:
``=INDEX(Sheet2!\$B\$2:\$B\$20,MATCH(B2,Sheet2!\$A\$2:\$A\$20,0))``
Copy this formula down as far as you need.

Add the total formula in cell E2 extend c30 as far as you need
Code:
``=SUM(C2:C30)``

Add the Average formula in cell E3
Code:
``=AVERAGE(C2:C30)``

Edit
To avoid errors with empty cells, use this version of the index/match formula, it will return a dash if the score cell is empty
Code:
``=IF(B2="","-",(INDEX(Sheet2!\$B\$2:\$B\$20,MATCH(B2,Sheet2!\$A\$2:\$A\$20,0))))``

Last edited:

#### bomberswarm2

##### New Member
Here is an older table, the values for the letters and the amount of diffrent letters are wrong, but the principal is the same.
For some reason pic won't paste and I can't copy and paste a link, so I used tiny URL. The table is in the first post.

This link will take you to a thread on The No Homers Club: Ratings for every episode ever

Excel Workbook
ABCDEFGHIJK
5B+12
6B11
7B-10
8C+9
9C8
10C-7
11D+6
12D5
13D-4
14E+3
15E2
16E-1
17F+0
18F-1
19F--2
Sheet1

#### bomberswarm2

##### New Member

The formula I typed contained an error. And why can't I paste anything on this site?

http://tinyurl.com/p66peze

Last edited:

#### FormR

##### MrExcel MVP

The formula I typed contained an error. And why can't I paste anything on this site?

The suggested formula is an array formula that requires confirming with CTR+SHIFT+Enter - not just enter.

Don't manually type the {} brackets - they should appear automatically if you enter the formula correctly.

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,168,025
Messages
5,856,890
Members
431,837
Latest member
megantang

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back