Help for formula to find Top 3 value in excel

emran06

New Member
Joined
Mar 13, 2011
Messages
27
Dear Experts,
I am facing problem to make summary sheet of top 3 value from large number of value of my excel sheet like-
Sheet1

GroupNameValue
1Nashid200145
2Kashem188516
1Jabed184198
2Rubel172569
3Romel168251
1Eman156622
2Hasin152304
3Nasim136357
3Hasan120410
2Monem104463
1Rashed88516
3Nizam72569

<tbody>
</tbody>

Now I want to make summary in sheet2 top 5 value among the list of sheet1 separately from group 1, 2 & 3.
If group number is 1 in sheet1 then top 3 value will be like this-
Group1
NameValue
Nashid200145
Jabed184198
Eman156622

<tbody>
</tbody>

If group number is 2 in sheet1 then top 3 value will be like this-
Group2
NameValue
Rubel172569
Hasin152304
Monem104463

<tbody>
</tbody>

If group number is 3 in sheet1 then top 3 value will be like this-
NameValue
Romel168251
Nasim136357
Hasan120410

<tbody>
</tbody>

Please help me if anyone know the formula. Thank you in advance for your help.

Best Regards

Emran
 
Your call, but I'd be careful using those formulas. :eek:

a) Is it ever possible that two people from the same group could have the same value? Check the results for top 3 for Group 1 with this data in Sheet1.

Sheet1

*ABC
1GroupNameValue
21Nashid200,145
31Kashem188,516
41Jabed188,516

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4






b) It may not happen, but what if somebody later decides to insert a new row 1 into Sheet2, say for some extra headings, when using Ravi's formula. Try it and look at the results.

Sir,
In my data sheet there is no two people from the same group and same value. Group 1 value is
NameValue
Nashid200145
Jabed184198
Eman156622

<tbody>
</tbody>

and so ravi's formula is working.
 
Last edited:
Upvote 0

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Sir,
In my data sheet there is no same value.

and so ravi's formula is working.
OK, as I said it is your call. So long as that will never happen, and so long as no rows are ever inserted.


You also never answered the question that I asked twice about whether the values in column B of Sheet1 are always in descending order? If they are, then there is a simpler formula available.
(I'm not trying to stop you using ravi's formula but to provide the best/simplest solution for you.)
 
Upvote 0
Your call, but I'd be careful using those formulas. :eek:

a) Is it ever possible that two people from the same group could have the same value? Check the results for top 3 for Group 1 with this data in Sheet1.

Sheet1

*ABC
1GroupNameValue
21Nashid200,145
31Kashem188,516
41Jabed188,516

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:56px;"><col style="width:73px;"><col style="width:65px;"></colgroup><tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4






b) It may not happen, but what if somebody later decides to insert a new row 1 into Sheet2, say for some extra headings, when using Ravi's formula. Try it and look at the results.


Thanks Mr. Peter,

if someone want to insert new row in sheet2 than we can use below formula:
=INDEX(Sheet1!$B$2:$C$13,MATCH(LARGE(($B$1=Sheet1!$A$2:$A$13)*(Sheet1!$C$2:$C$13),ROW(INDIRECT("A"&COUNTA($A$2:$A2)))),Sheet1!$C$2:$C$13,0),MATCH(A$2,Sheet1!$B$1:$C$1,0)) with CSE
 
Upvote 0
if someone want to insert new row in sheet2 than we can use below formula:
=INDEX(Sheet1!$B$2:$C$13,MATCH(LARGE(($B$1=Sheet1!$A$2:$A$13)*(Sheet1!$C$2:$C$13),ROW(INDIRECT("A"&COUNTA($A$2:$A2)))),Sheet1!$C$2:$C$13,0),MATCH(A$2,Sheet1!$B$1:$C$1,0)) with CSE
We could, or I think we could use the less volatile & simpler ..

=INDEX(Sheet1!B$2:B$13,MATCH(LARGE(IF(Sheet1!$A$2:$A$13=$B$1,Sheet1!$C$2:$C$13),ROWS(A$3:A3)),Sheet1!$C$2:$C$13,0)) with CSE

.. but in both cases we still have to hope equal values in a group never exist.

(.. or we can use the helper column with even simpler, non-array, formulas :))
 
Upvote 0
@ravi,

result of your formula is wrong. See the situation when displayed for group 2
if value in column 2 is equal
Group 2

Name Value
Monem 504,463
Kashem 188,516
Kashem 188,516


would be

Group 2

Name Value
Monem 504 463
Kash 188 516
Hasin 188 516
 
Last edited:
Upvote 0
check the below formula
=INDEX(Sheet1!$B$2:$C$13,MATCH(LARGE(($B$1=Sheet1!$A$2:$A$13)*(Sheet1!$C$2:$C$13),COUNTA($A$3:$A3)),Sheet1!$C$2:$C$13,0),MATCH(A$3,Sheet1!$B$1:$C$1,0))
 
Upvote 0

Forum statistics

Threads
1,214,894
Messages
6,122,124
Members
449,066
Latest member
Andyg666

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