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
 

Some videos you may like

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

vlady

Active Member
Joined
Jan 26, 2012
Messages
413
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
Joined
Oct 24, 2004
Messages
748
Office Version
  1. 2019
  2. 2013
Platform
  1. Windows
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
Joined
Jan 17, 2014
Messages
13
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
 

FormR

MrExcel MVP
Joined
Aug 18, 2011
Messages
6,464
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

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
 

FormR

MrExcel MVP
Joined
Aug 18, 2011
Messages
6,464
Office Version
  1. 365
Platform
  1. Windows
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,232
Messages
5,594,956
Members
413,954
Latest member
mrsandy

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
Top