Sum of several lookups

Mazbuka

New Member
Joined
Sep 23, 2018
Messages
23
Office Version
  1. 365
Platform
  1. Windows
Students do 8 subjects out of 16 , the subject choices will differ for each student.

Student 1's grades are input in b4:q4

A lookup table with corresponding points is in A9:B25

The total points are the sum of the best 6 scoring grades, I want a formula in R4 to calculate the points.

At the moment I have a sum(sumifs that gets total points for all subjects

Under, in row 5, I have individual xlookups for each subject & sum the largest 6. This gives the correct answer but using an extra row. Can I combine the two formulas into R4 or is there another method?

(S4 & S5) are the formulas in T4 & T5)
 

Attachments

  • EXCEL_VukFYZ1UzG.png
    EXCEL_VukFYZ1UzG.png
    50.2 KB · Views: 14

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)
How about
Excel Formula:
=SUM(TAKE(SORT(XLOOKUP(B4:Q4,A10:A25,B10:B25,0),1,-1,1),,6))
 
Upvote 0
Solution
you can use this one SUMPRODUCT(LARGE(point*(A10:A25=point2),{1,2,3,4,5})) "point" define name B10:B25 and "point 2 define name B5:Q5
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
A further development needed on this (I thought I'd be able to adjust it myself but struggling) ...

Subject C is awarded an extra 25 points for an A1 to A7 grade

(If anyone is interested this is the Irish University points access system, subject C is maths, A grade is higher level)
 
Upvote 0
As this is a significantly different question, it needs a new thread. Thanks
 
Upvote 0

Forum statistics

Threads
1,215,653
Messages
6,126,046
Members
449,282
Latest member
Glatortue

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