Max Average formula

MathTeacher77

New Member
Joined
May 29, 2013
Messages
5
Office Version
  1. 365
Platform
  1. Windows
I'm creating a gradebook and want to allow teachers to put in two grades but only average the highest grade for any given assignment. So two rows of grades and one row using the Max formula, then I average that entire row. The problem comes when people insert columns or delete things...either way my formula keeps getting destroyed.



Is there a way to have just one formula to find the average of the max value without the row of individual max values? Hopefully this makes sense... I've included a copy of what I'm trying to do.

Thanks in advance!

Keep in mind since it's a gradebook it could have 150+ assignments throughout a yearlong course.
 

Attachments

  • Capture 2.JPG
    Capture 2.JPG
    30.6 KB · Views: 13
  • Capture.JPG
    Capture.JPG
    49.3 KB · Views: 14
  • Capture 3.JPG
    Capture 3.JPG
    105.6 KB · Views: 15

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
what version of excel are you using? (Please add this to your profile so the forum can see it and provide a solution that is available in your version).

And welcome to the forum.
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
This is a solution for Excel 365:
Book1
ABCDEFG
1
2Test1Test2Test3Test4Test5
3Original9175777487
4Retake7995958790
5
6average of max91.6
Sheet4
Cell Formulas
RangeFormula
C6C6=AVERAGE(BYCOL(C3:G4,LAMBDA(a,MAX(a))))
 
Upvote 0
Another option for 365
Excel Formula:
=AVERAGE(BYCOL(H1:K2,LAMBDA(bc,IF(SUM(bc),MAX(bc),""))))
 
Upvote 0
Another option for 365
Excel Formula:
=AVERAGE(BYCOL(H1:K2,LAMBDA(bc,IF(SUM(bc),MAX(bc),""))))
Thank you both!

That formula is exactly what I was hoping for! thank you! Unfortunately I don't have enough understanding of it (mainly the lamda/array featuer to adapt it to the next step. Can you help me a bit further?

What i had on my own was an averageif formula that found the average as long as it didn't say Test at the top. And another average if that found the average if it DID say test at the top. Then a third box that weighted the two values into a final grade. I'm fine with that setup...there's no danger of those formulas getting erased...or if they do it won't show a grade which is fine.

Here is what I'm looking at...
 

Attachments

  • Capture.JPG
    Capture.JPG
    100.7 KB · Views: 7
Upvote 0
If your happy with the formulae you already have, then I'm not sure what your asking.
 
Upvote 0
If your happy with the formulae you already have, then I'm not sure what your asking.

I need to be able to average the assignments and reviews in one cell, and average the tests in another cell. I tried combining your formula with the averageif function but I can't make it work. "=AVERAGEIF(D5:S5,"<>test",(BYCOL(D8:R9,LAMBDA(bc,IF(SUM(bc),MAX(bc),"")))))"
 
Upvote 0
If you use the range D8:R9 there are no test results, so still not sure what you are asking for.
 
Upvote 0
If your happy with the formulae you already have, then I'm not sure what your asking.

Maybe this is a better example? Any course in this gradebook will have 10-20 chapters in it so it'll be much bigger than the example I used before or even this one.
As you can A4 I'm averaging row 10 (which uses the max formula) as long as the word TEST is not in row 5. Cell A5 averages the blue row for all values that include the word 'test' in row 5.


1715707705294.png


Is there a way to use your formula with AverageIF?
 
Upvote 0

Forum statistics

Threads
1,224,819
Messages
6,181,153
Members
453,021
Latest member
Justyna P

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