Need help on Auto calculating aggreggates

KOOLMAN

New Member
Joined
Feb 17, 2018
Messages
4
Please, I made a simple template to take grades of my pupils. In the templates, some subjects on a continuum are compulsory (H - K) while the remaining (L- P) are optional, but 2 of them (best 2 with good grades ) to be added to H-K to give the aggregate in Q as indicated in the table below.

[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD][/TD]
[TD]....[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]K[/TD]
[TD]L[/TD]
[TD]M[/TD]
[TD]N[/TD]
[TD]O[/TD]
[TD]P[/TD]
[TD]Q[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]ENGLISH LANG[/TD]
[TD]MATHS[/TD]
[TD]SCIENCE[/TD]
[TD]SOCIAL[/TD]
[TD]LANG[/TD]
[TD]TECH[/TD]
[TD]MORAL STUDIES[/TD]
[TD]ICT[/TD]
[TD]FRENCH[/TD]
[TD]AGGREGATE[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]KOOL[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]5[/TD]
[TD]1[/TD]
[TD]6[/TD]
[TD]5[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]1[/TD]
[TD]13[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]SUUTY[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD]8[/TD]
[TD]2[/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD]5[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]BASH[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]2[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]10[/TD]
[/TR]
</tbody>[/TABLE]

How do I pick N2 and P2 (for KOOL), M3 and O3 (for SUUTY) , O4 and P4 add it automatically to the range H2:K2 without manually editing the formular by picking N2 and P2?

Thanks so much in advance.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
No, you need to investigate why it's returning an error because it shouldn't

Do any of your input cells contain # value! errors?

Do any of your inputs contain numbers formatted as text, or that are otherwise blank, maybe including spaces? [unlikely to be this. Errors here would cause # Num! errors]

In the formula bar, highlight each section in turn and hit F9 to calculate that part of the formula. Which part creates the error?
- SUM(H2:K2)
- SMALL(L2:P2,1)
- SMALL(L2:P2,2)
 
Upvote 0

Forum statistics

Threads
1,223,895
Messages
6,175,257
Members
452,625
Latest member
saadat28

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