Array Formula - ACT scores

LisaB114

New Member
Joined
Jan 2, 2019
Messages
5
I am a teacher, summarizing ACT results. I have over a hundred students who have each taken the ACT for four years, anywhere from one to four times each year. For example, I am trying to calculate an overall average Composite score for 2017 for the following data.

ABCDE
1201720172017
2Student AEnglish283127
3Math272728
4Composite272928
5Student BEnglish22
6Math18
7Composite20
8Student CEnglish2118
9Math1714
10Composite1916

<tbody>
</tbody>

I want an average of each student’s max Composite score for 2017. So I want
AVERAGE(MAX(27,29,28), MAX(20), MAX (19,16))
which should equal 22.67.

So… I have tried using an array formula.
{AVERAGE(IF(B2:B10=”Composite”,MAX(C2:E10))}
But I get 31.
So I tried
{AVERAGE(IF(B2:B10="Composite",MAX(C2:C10,D2:D10,E2:E10)))}
But I still get 31.

So instead of finding the max of each composite row, it’s just finding the max of the C2:E10.

Any idea how to do this? BTW - I am a long-time reader, first-time poster. Thanks!
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
A​
B​
C​
D​
E​
F​
G​
1​
Student
Section
2017
2017
2017
Max
2​
Student AEnglish
28​
31​
27​
31​
F2: =MAX(C2:E2)
3​
Student AMath
27​
27​
28​
28​
4​
Student AComposite
27​
29​
28​
29​
5​
Student BEnglish
22​
22​
6​
Student BMath
18​
18​
7​
Student BComposite
20​
20​
8​
Student CEnglish
21​
18​
21​
9​
Student CMath
17​
14​
17​
10​
Student CComposite
19​
16​
19​
11​
12​
English
24.7​
F12: =AVERAGEIF($B$2:$B$10, B12, $F$2:$F$10)
13​
Math
21.0​
14​
Composite
22.7​
 
Upvote 0
Thanks! I am actually looking for a solution that doesn't involve adding any columns. The spreadsheet is already pretty full - there's four years of data. And it's looked at by a lot of people who aren't really spreadsheet-savvy. That's why I looked at the array formula.
 
Upvote 0
Try:

ABCDE
1201720172017
2Student AEnglish283127
3Math272728
4Composite272928
5Student BEnglish22
6Math18
7Composite20
8Student CEnglish2118
9Math1714
10Composite1916
11
12English24.66667
13Math21
14Composite22.66667

<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet5

Array Formulas
CellFormula
C12{=AVERAGE(IF(B$2:B$10=B12,SUBTOTAL(4,OFFSET(C$2:E$2,ROW(C$2:C$10)-ROW(C$2),0))))}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
 
Upvote 0
OK. New problem. If there is a student who did not take the ACT, and thus has no scores, his resulting max of ZERO brings the average down! Any ideas anyone?
 
Upvote 0
This is a little gimmicky, but should work. With the same layout as my previous post, try:

=AVERAGE(IF(B$2:B$10=B12,IFERROR(1/(1/SUBTOTAL(4,OFFSET(C$2:E$2,ROW(C$2:C$10)-ROW(C$2),0))),"")))

also with Control+Shift+Enter.
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,685
Members
448,977
Latest member
dbonilla0331

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