Excel formula: total points vs total points attempted

amuswashere

New Member
Joined
Mar 15, 2006
Messages
3
I'm working on a grading spreadsheet. Cells C3 thru M3 list the total points possible for each test. The rest of the spreadsheet are the students and the points for each test. I need to get an average for each student, but only for the tests they actually attempted. So basically a student didn't take the quiz with the point value in C3, then C3 value should be part of the average. Make sense.

Here is an example
Q1: 40 pts, Q2:40 pts, Q3: 5 pts, Q4: 25 pts
total possible points - 110
Johnnie has Q1: 0 pts, Q2: 40, Q3: 4, Q4: 20
Since Johnnie has a zero (didn't take the test) for Q1, I don't want that to be added in possible points attempted.

I will have three columns at the end: total points, total points attempted, then %
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Why place a zero for grade if he did not take it? Maybe just leave it blank, or put an "X" or something.

If you do this, an If-Then statement could be used saying that if an "X" was listed in a cell, then don't count it.

I teach too....Excel is a HUGE help in a lot of stuff. Good luck.
 
Upvote 0
The student points field isn't really the problem. I just don't know how to get the average when each test is worth a different number of points. I was looking for an if,then expression so that if Johnnie's value for test two is 0, then I don't include test two's point values in the average. I'm working on this for my boss's wife, so it's the way she has it set up.
 
Upvote 0
amuswashere

Welcome to the Mr Excel board!

Try this. You will have to modify the ranges to suit your data.

H4: =SUM(C4:G4)
I4: =SUMIF(C4:G4,">0",C$3:G$3)
J4 (formatted as percentage): =H4/I4
All three copied down
Mr Excel.xls
BCDEFGHIJK
2TotalAttempted%
340405025
4Johnnie0404206411555.65%
5Max2012.532.56550.00%
6
Grading
 
Upvote 0

Forum statistics

Threads
1,223,805
Messages
6,174,723
Members
452,578
Latest member
Predaking

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