Find Rank and Award accordingly

Robin_

New Member
Joined
Aug 29, 2014
Messages
13
Here we need to award each group as First, Second, Third, Fourth and Fifth according as the total marks they get in 4 exams. Addition of additional columns are not allowed. So, the Result column must contain words First, Second, Third, Fourth and Fifth as per the marks obtained by the respective group.

Groups1st Exam2nd Exam3rd Exam4th ExamResult
A85874576
B26458578
C85966362
D48498574
E47745875

<tbody>
</tbody>

Thanks in advance.
 
For only 5 rows you could use this array formula in F2

=LOOKUP(SUM(IF(SUBTOTAL(9,OFFSET(B$2:E$2,ROW(B$2:E$6)-ROW(B$2),0))>SUM(B2:E2),1))+1,{1,2,3,4,5;"First","Second","Third","Fourth","Fifth"})

confirmed with CTRL+SHIFT+ENTER and copied down
 
Upvote 0

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
I arrived at this. Using XOR's formula


Code:
=CHOOSE(MATCH(MATCH(SUM(B2:E2);LARGE(MMULT($B$2:$E$6;TRANSPOSE(N(INDEX(COLUMN($B$2:$E$6);;)))^0);N(INDEX(ROW(INDIRECT("1:"&ROWS($B$2:$E$6)));;)));0);{1;2;3;4;5});"First";"Second";"Third";"Fourth";"Fifth")
 
Last edited:
Upvote 0
{1,2,3,4,5;"First","Second","Third","Fourth","Fifth"}

How would I go about adjusting this section for EU region use?
Normally I use ";" instead of ",", but here there is both.. Which only return the numbered value(when used), not the "names"
 
Upvote 0
If we're fixed at 5 rows and 4 columns then this non-array formula is fine:

=INDEX({"First","Second","Third","Fourth","Fifth"},MATCH(SUM(B2:E2),LARGE(MMULT(0+$B$2:$E$6,{1;1;1;1}),{1,2,3,4,5}),0))

Regards
 
Upvote 0
If we're fixed at 5 rows and 4 columns then this non-array formula is fine:

=INDEX({"First","Second","Third","Fourth","Fifth"},MATCH(SUM(B2:E2),LARGE(MMULT(0+$B$2:$E$6,{1;1;1;1}),{1,2,3,4,5}),0))

Regards

I have so much to learn =) Using a matrix like this is cooll.
 
Last edited:
Upvote 0
How would I go about adjusting this section for EU region use?
Normally I use ";" instead of ",", but here there is both.. Which only return the numbered value(when used), not the "names"

You may prefer XOR LX's latest suggestion so perhaps a moot point but effectively {1,2,3,4,5;"First","Second","Third","Fourth","Fifth"} represents a 2 row by 5 column range like A1:E5 so if you enter 1 to 5 in A1:E1 and the relevant text values in A2:E2 then put this formula in another cell

=A1:E2

and then select cell, press F2 then F9 and you should see the required syntax for your region. You can also set it up as A1:B5 or use two separate array constants like

{1,2,3,4,5},{"First","Second","Third","Fourth","Fifth"}
 
Upvote 0
You may prefer XOR LX's latest suggestion so perhaps a moot point but effectively {1,2,3,4,5;"First","Second","Third","Fourth","Fifth"} represents a 2 row by 5 column range like A1:E5 so if you enter 1 to 5 in A1:E1 and the relevant text values in A2:E2 then put this formula in another cell

=A1:E2

and then select cell, press F2 then F9 and you should see the required syntax for your region. You can also set it up as A1:B5 or use two separate array constants like

{1,2,3,4,5},{"First","Second","Third","Fourth","Fifth"}

Never a moot point, this is learning !!

And I know the syntax now, its {1\2\3\4\5;"F"\"S"\"T"\"F"\"FiF"}

Not very intuitive, but now I know .

And this shows me a very easy way to create those arrays. ;) ( I use to type them in, which contains the possibility of a human error in a greater degree)

Even learned what the "F2" button does when typing formulas =)
 
Last edited:
Upvote 0
Thank you very much all. I value you all and your solutions.
But for, now, XOR LX's #14 solution is more suitable for me.

Again thank you all again. God bless you. :)
 
Upvote 0

Forum statistics

Threads
1,216,165
Messages
6,129,235
Members
449,496
Latest member
Patupaiarehe

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