Need to extract top 10 highest lines from a sheet.

dommyo

New Member
Joined
Aug 5, 2016
Messages
1
Where I work there are lines that are going out of stock more than once a week. We have recorded how many times they are going out of stock and I have to come up with a sheet that records the top 10 lines that are going out of stock the most frequently.

My spreadsheet is set out with unique ids on the left column and the amount of times it's been out of stock this week on the right. I have been trying everything to get it to work for the top 10 but I am struggling, I've only successfully used an index match to get the first occurring highest frequency value.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
how about?


Excel 2012
ABCDEF
1IDOut of StockRankTop10
2ID137131ID13
3ID25072ID10
4ID341113ID4
5ID47534ID14
6ID542105ID11
7ID64886ID19
8ID74697ID2
9ID86168ID6
10ID93189ID7
11ID1078210ID5
12ID11545
13ID12417
14ID13841
15ID14724
16ID15715
17ID16120
18ID17318
19ID183314
20ID19536
21ID203812
Sheet1
Cell Formulas
RangeFormula
C2=RANK.EQ(B2,$B$2:$B$21)
F2=INDEX($A$2:$A$21,MATCH(E2,$C$2:$C$21,0))
 
Last edited:
Upvote 0
id133
id255
id377
id466
id511the third col is number with a small different addition
id622to resolve duplicate number issues
id700
id800
id944col F
id1066
id1188the top ten is
id1233
id1333row 141id17
id14662id11
id15553id19
id16444id3
id17995id14
id18226id10
id19777id4
id20118id15
9id2
10id16
formula giving id17
=OFFSET($C$1,MATCH(LARGE($C$2:$C$21,F14),$C$2:$C$21,0),-2)

<colgroup><col width="64" span="13" style="width:48pt"> </colgroup><tbody>
</tbody>
 
Upvote 0
Where I work there are lines that are going out of stock more than once a week. We have recorded how many times they are going out of stock and I have to come up with a sheet that records the top 10 lines that are going out of stock the most frequently.

My spreadsheet is set out with unique ids on the left column and the amount of times it's been out of stock this week on the right. I have been trying everything to get it to work for the top 10 but I am struggling, I've only successfully used an index match to get the first occurring highest frequency value.

Some options...

1. Run a pivot table which allows for a Top 10 list.

2. Run a formula system. For this, try to adapt the following set up to your data:

http://www.mrexcel.com/forum/excel-questions/342541-top-5-numbers.html#post1690421
 
Upvote 0
Maybe try:

=INDEX(A:A,LARGE(B:B,ROW()-1))

In F2
 
Upvote 0

Forum statistics

Threads
1,216,128
Messages
6,129,030
Members
449,482
Latest member
al mugheen

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