Average/rank with blank cells

lonewaya1984

New Member
Joined
May 16, 2022
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
I am an average and self taught excel user so I am not sure if there is a solution to my problem or not. I have built a gradebook for my classes in which I input their percentage grade in one column and in the next it tells me how many points out of the maximum possible for the assignment they earned. (Example assignment worth 20 points if they scored 76% they earned 15.2 points) This is done for each assignment they will do in this block of instruction, 13 in total. At the end of the gradebook I have columns that tell me their GPA average and the next column tells me the total numbers of points they have earned. The next two columns are set to give me their ranking positions in the class one by GPA and the other by total points earned. The problem I am running into is my class can have a maximum of 20 students, but I don't always have 20 students. For example right now I only have 19 in the class. The problem is the rank by GPA breaks and renders the divide by zero error, it does this because the GPA average column as a divide by zero error because the 20th slot has no percentage grades entered under any of the assignments. I tried using the AVERAGEIF formula so the 20th GPA average slot would ignore blank and zero value cells in order to not give the divide by zero error so the ranking function would work but that gives me the "to many arguments error" because I don't have a straight range value, there are two columns with other data between each column that contains the percental grade values. This might have a super easy fix that all my research has eluded me, and it might not be possible at all. This is why I am turning to you all, please help me.
 

Attachments

  • Grade book example.PNG
    Grade book example.PNG
    163 KB · Views: 11

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
Upvote 0
@lonewaya1984 Welcome

Does something like below help?

Cell Formulas
RangeFormula
AQ6:AQ25AQ6=IFERROR(AVERAGE(D6,G6,J6,M6,P6,S6,V6,Y6,AB6,AE6,AH6,AK6,AN6),"")
AT6:AT25AT6=IFERROR(RANK(AQ6,$AQ$6:$AQ$25,0),"")

This absolutely did the trick, your are the BEST!! Thanks so much for your help and speedy reply!!!!!!!
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,210
Members
453,023
Latest member
alabaz

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