How to add up values?

bomberswarm2

New Member
Joined
Jan 17, 2014
Messages
13
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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
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.
 
Upvote 0
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:
Upvote 0
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
 
Upvote 0
Maybe you can adapt this to your set-up?

Excel Workbook
ABCDEFGHIJK
1TotalAvgGradeScore
2GradeAA+C+D-F418.2A+15
3GradeBB-B+F-F306A14
4GradeCD+E+F-A295.8A-13
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
 
Upvote 0
What about empty squares?

What about them?

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.
 
Upvote 0

Forum statistics

Threads
1,213,492
Messages
6,113,967
Members
448,537
Latest member
Et_Cetera

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top