New Member!! Help required with returning name of highest scorer based on criteria

Snake68

New Member
Joined
Oct 28, 2020
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
Skills
SeniorityNameabcdeTotal
RMjon 69455
29​
Mjames12102
6​
RMjack 23583
21​
Djoe16738
25​
RMjeff89235
27​

Hello!

I require help in returning the name of the person with the highest score based on certain criteria. E.g - I require somebody of 'RM' seniority who has the highest total for skills 'a,c & e'. This would be Jeff, who'd score 15 points.

I've tried all sorts of formuals (index match, sumproduct etc, but am not getting anywhere! Please help!

Many thanks,
S
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
I also see Jon as a match. Try:

Book1
ABCDEFGHIJKL
1SeniorityNameabcdeTotalSeniorityMax of A/C/EName
2RMjon6945529RM15jon
3Mjames121026jon
4RMjack2358321
5Djoe1673825
6RMjeff8923527
Sheet5
Cell Formulas
RangeFormula
K2K2=MAX(MMULT(C2:G6,{1;0;1;0;1})*(A2:A6=J2))
L2L2=INDEX(B2:B6,MATCH(K2,MMULT(C2:G6,{1;0;1;0;1})*(A2:A6=J2),0))
L3L3=INDEX(B2:B6,MATCH(MAX(MMULT(C2:G6,{1;0;1;0;1})*(A2:A6="RM")),MMULT(C2:G6,{1;0;1;0;1})*(A2:A6="RM"),0))
Press CTRL+SHIFT+ENTER to enter array formulas.


The L2 formula breaks it into parts. the L3 formula combines it into a single formula.
 
Upvote 0
I think this array formula does it also but doesn't handle ties.

Book7
ABCDEFGH
1Skills
2SeniorityNameabcdeTotal
3RMjon6945428
4Mjames121026
5RMjack2358321
6Djoe1673825
7RMjeff8923527
8
9SeniorityRM
10Highestjeff
Sheet1
Cell Formulas
RangeFormula
H3:H7H3=SUM(C3:G3)
B10B10=INDEX(B3:B7,SUM(ROW(1:5)*(((B9=A3:A7)*(C3:C7+E3:E7+G3:G7))=MAX((B9=A3:A7)*(C3:C7+E3:E7+G3:G7)))),0)
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Thanks guys, both solutions give me what I require in this instance. However, what would need to be done to the formula for me to choose any combo of variables? E.g. abc, cde bde, etc? Is there a way for the formula to reference these and then do the calculation?

Cheers!
S
 
Upvote 0
In my formula, you can see this array constant:

{1;0;1;0;1}

That tells you which columns you want to add. In this case, the 1st, 3rd, and 5th. If you want 1, 2 and 4, change it to:

{1;1;0;1;0}

With a little modification to the formula, you can put "11010" as a text value in another cell and thus dynamically change what columns to add. Like this:

Book1
ABCDEFGHIJKLM
1SeniorityNameabcdeTotalSeniorityMax of A/C/EName
2RMjon6945529RM16joe
3Mjames121026jack00111
4RMjack2358321
5Djoe1673825
6RMjeff8923527
Sheet1
Cell Formulas
RangeFormula
K2K2=MAX(MMULT(C2:G6,{1;0;1;0;1})*(A2:A6=J2))
L2L2=INDEX(B2:B6,MATCH(K2,MMULT(C2:G6,{1;0;1;0;1})*(A2:A6=J2),0))
L3L3=INDEX(B2:B6,MATCH(MAX(MMULT(C2:G6,MID(M3,{1;2;3;4;5},1)+0)*(A2:A6="RM")),MMULT(C2:G6,MID(M3,{1;2;3;4;5},1)+0)*(A2:A6="RM"),0))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,813
Messages
6,121,705
Members
449,048
Latest member
81jamesacct

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