Getting the top 10 and bottom 10?

rammi125

New Member
Joined
Jun 3, 2015
Messages
22
I have a spreadsheet where column A has the company ticker, Column B the name, and Column C has their stock's change in performance. There are a total of 1000 rows of data, column C can sometimes be the same, for example two stocks could increase by 5%. Out of the 1000 companies I only care about 500 of them (I have a macro that will hide rows of the companies I do not own). On another tab I want to report the top 10 and bottom 10 performers (including ticker (col a) and name (Col B))based off of Column C for only the rows that are not hidden.

How would I best approach this problem? Using the rank/vlookup function? Conditional formatting? not sure the cleanest way or the actual formula to use, please help.
 
Last edited:

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Hi, not sure if this is what you require:

Excel 2013
ABCDEFGH
1tickernamestockstocktickername
2gh8q492911gh89g
3gh4w236795gh101f
4gh5e51761gh48y
5gh1r476761gh27u
6gh7t159681gh62h
7gh48y761677gh81o
8gh27u761492gh8q
9gh2i380476gh1r
10gh81o677402gh21k
11gh9p321380gh2i
12gh18l375
13gh21k402
14gh10j242
15gh62h681
16gh89g911
17gh101f795
rammi125
Cell Formulas
RangeFormula
F2=LARGE($C$2:$C$17,ROWS(F$2:F2))
H2=INDEX($B$2:$B$17,MATCH(G2,$A$2:$A$17,0))
G2{=IFERROR(INDEX(A$2:A$17,SMALL(IF($F2=$C$2:$C$17,ROW($C$2:$C$17)-MIN(ROW($C$2:$C$17))+1,""),COUNTIF(F$2:F2,F2))),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
As an alternative, you could just use autofilter
It will return top 10, but if there are multiple stocks with same score you will get more than 10 listed
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,774
Members
452,353
Latest member
strainu

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