Shweta
Well-known Member
- Joined
- Jun 5, 2011
- Messages
- 514
Hi All,
I have a table which contains Name and scores of some students.
[TABLE="width: 205"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Score[/TD]
[/TR]
[TR]
[TD]Ajay Patwal[/TD]
[TD]17[/TD]
[/TR]
[TR]
[TD]Ankit Dhingra[/TD]
[TD]16[/TD]
[/TR]
[TR]
[TD]Beikunth[/TD]
[TD]19[/TD]
[/TR]
[TR]
[TD]Garima Gupta[/TD]
[TD]24[/TD]
[/TR]
[TR]
[TD]Gunwant Kaur[/TD]
[TD]26[/TD]
[/TR]
[TR]
[TD]Harsha[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]Himanshu[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]Irfan[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD]Kunal[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]Mukul[/TD]
[TD]16[/TD]
[/TR]
[TR]
[TD]Prem[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]Priyanka Bansal[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]Rahul[/TD]
[TD]17[/TD]
[/TR]
[TR]
[TD]Sachin Sharma[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]Stuti Johnson[/TD]
[TD]19[/TD]
[/TR]
[TR]
[TD]Sunaina[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]Vishal Aggrawal[/TD]
[TD]26[/TD]
[/TR]
</tbody>[/TABLE]
I need to find out top 3 names. I am using below function for that.
with CSE.
Problem with this function is, it is giving result as Gunwant Kaur, Gunwant Kaur and Garima Gupta.
However, it should be Gurwant Kaur, Vishal Aggarwal and Garima Gupta.
I know it is happening because of the match function as it returns the first value it matches but I don't know how to deal with it. Kindly suggest.
Thanks in advance!
Regards,
Shweta Jain
I have a table which contains Name and scores of some students.
[TABLE="width: 205"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Score[/TD]
[/TR]
[TR]
[TD]Ajay Patwal[/TD]
[TD]17[/TD]
[/TR]
[TR]
[TD]Ankit Dhingra[/TD]
[TD]16[/TD]
[/TR]
[TR]
[TD]Beikunth[/TD]
[TD]19[/TD]
[/TR]
[TR]
[TD]Garima Gupta[/TD]
[TD]24[/TD]
[/TR]
[TR]
[TD]Gunwant Kaur[/TD]
[TD]26[/TD]
[/TR]
[TR]
[TD]Harsha[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]Himanshu[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]Irfan[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD]Kunal[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]Mukul[/TD]
[TD]16[/TD]
[/TR]
[TR]
[TD]Prem[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]Priyanka Bansal[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]Rahul[/TD]
[TD]17[/TD]
[/TR]
[TR]
[TD]Sachin Sharma[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]Stuti Johnson[/TD]
[TD]19[/TD]
[/TR]
[TR]
[TD]Sunaina[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]Vishal Aggrawal[/TD]
[TD]26[/TD]
[/TR]
</tbody>[/TABLE]
I need to find out top 3 names. I am using below function for that.
Code:
=INDEX($A$2:$A$18,MATCH(LARGE($B$2:$B$18,{1;2;3}),$B$2:$B$18,0))
Problem with this function is, it is giving result as Gunwant Kaur, Gunwant Kaur and Garima Gupta.
However, it should be Gurwant Kaur, Vishal Aggarwal and Garima Gupta.
I know it is happening because of the match function as it returns the first value it matches but I don't know how to deal with it. Kindly suggest.
Thanks in advance!
Regards,
Shweta Jain
Last edited: