How to calculate aggregate

dalbee

New Member
Joined
Dec 31, 2022
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
In creating an excel app to calculate the aggregate for students in their exams as used by WAEC to determine the student aggregate in BECE . The Excel has to select Six Subjects from ine Subjects, with Four being compulsory and Two other best I want an excel formular that will add the grade value of four compulsory subjects : English, Maths, Science, Social. And then automatically select 2 other subjects from the rest with best grade value.

For Instance, If a student has the following result:
1. English - 2
2. Maths - 1
3. Science - 1
4. Social - 2
5. ICT - 3
6. BDT - 3
7. RME - 1
8. French - 2
9. Twi -

I want a formular for this calculation :
English(2)+Maths(1)+Science(1)+Social(2) and randomly select best other two subjects from the rest : RME(1)+French(2) = 10

Kindly help me.
 
Last edited by a moderator:

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Welcome to the MrExcel board!

Are the 4 compulsory subjects always listed first like your example?
23 01 01.xlsm
ABCD
1SubjectGradeAggregate
2English29
3Maths1
4Science1
5Social2
6ICT3
7BDT3
8RME1
9French2
10Twi
Aggregate
Cell Formulas
RangeFormula
D2D2=SUM(B2:B5,AGGREGATE(15,6,B6:B10,{1,2}))
Press CTRL+SHIFT+ENTER to enter array formulas.


If the order is less structured ..

23 01 01.xlsm
FGHI
1SubjectGradeAggregate
2BDT39
3Maths1
4Science1
5Social2
6ICT3
7English2
8RME1
9French2
10Twi
Score
Cell Formulas
RangeFormula
I2I2=SUM(SUMIF(F2:F10,{"English","Maths","Science","Social"},G2:G10))+SUM(AGGREGATE(15,6,G2:G10/((G2:G10<>"")*ISNA(MATCH(F2:F10,{"English","Maths","Science","Social"},0))),{1,2}))
Press CTRL+SHIFT+ENTER to enter array formulas.


In each case note that for your Excel version you will need to confirm the formula with Ctrl+Shift+Enter, not just Enter
 
Upvote 0

Forum statistics

Threads
1,215,166
Messages
6,123,395
Members
449,098
Latest member
ArturS75

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