Average percentage cells, ignoring 0% values (not in a range)

megsterne

New Member
Joined
Dec 1, 2012
Messages
2
Hi! Please please help! I am trying to make a template for my 2nd grade class and have spent hours, and can't figure it out! I want to create an average percentage. But when I make the average formula for every other column (for each assignment I enter in points, and then the second column calcs the percentage based on the points value/total points possible and color codes accordingly), it keeps taking the 0% into consideration. If I take out the total points possible, it still messes up the average formula. Please help if you can! The only things I have read online are about ranges of columns, not listing individual ones....Thank you!:p:LOL:



MathAverage PointsAverage PercentageHomework 1Homework 2Homework 3
Total Points Possible 2031
Student
Aliana21%210% 0% 0%
Aram00%00% 0% 0%
Brenda00%00% 0% 0%
Brianna00%00% 0% 0%
Chad00%00% 0% 0%
Diego00%00% 0% 0%

<colgroup><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
I put the data in column A, so you will need to change the range to suit, but it seems to work this way,

=SUM(A1:A12)/(COUNT(A1:A12)-COUNTIF(A1:A12,0))

A1:12 is the range, so change that just make sure all of the ranges equal, and you should be ok.
 
Upvote 0
I put the data in column A, so you will need to change the range to suit, but it seems to work this way,

=SUM(A1:A12)/(COUNT(A1:A12)-COUNTIF(A1:A12,0))

A1:12 is the range, so change that just make sure all of the ranges equal, and you should be ok.


Thanks so much! So, I can't do it with leaving the values in every other cell? It has to be a range?
 
Upvote 0
Thanks so much! So, I can't do it with leaving the values in every other cell? It has to be a range?

Average will ignore blank cells, but it wont ignore 0. The formula I gave will ignore blank and 0. You don't have to pick a range, you should be able to pick columns if that helps.

=SUM(A:A)/(COUNT(A:A)-COUNTIF(A:A,0))
 
Upvote 0

Forum statistics

Threads
1,214,561
Messages
6,120,245
Members
448,952
Latest member
kjurney

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