Looking for Tickers with their Smallest values

XcelLearner

Board Regular
Joined
Feb 6, 2016
Messages
52
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi,

I have a data array of n (n>100) stock tickers with their respective values. The tickers and their values are randomly distributed, not in an order. I need to look for tickers with largest values, which I used LARGE and ROWS together with XLOOKUP functions. However, when there are two tickers with indentical values, the formulae only display one ticker.
For example, in this table, I have two tickers (AFG, FJFGJ) with value of 64, but only one ticker (AFG) is shown. Please refer to the table.

How could I revise the formula so that both AFG and FJFGJ will be shown? I use Office 365.

1672294621504.png



Thank you very much.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
smallest formula is largest formula, change "AGGREGATE(14" to 15
Book1
ABCDE
12Largest
13FA77
14KB88
15CC90
16ED78
17BE90
18F96
19SmallestG63
20JH76
21II52
22GJ52
23LK92
24HL67
Sheet1
Cell Formulas
RangeFormula
A13:A17A13=INDEX(D:D,AGGREGATE(14,6,ROW($E$13:$E$24)/($E$13:$E$24-ROW($E$13:$E$24)*10^-2=AGGREGATE(14,6,$E$13:$E$24-ROW($E$13:$E$24)*10^-2,ROWS($1:1))),1))
A20:A24A20=INDEX(D:D,AGGREGATE(15,6,ROW($E$13:$E$24)/($E$13:$E$24-ROW($E$13:$E$24)*10^-2=AGGREGATE(15,6,$E$13:$E$24-ROW($E$13:$E$24)*10^-2,ROWS($1:1))),1))
 
Upvote 0
Another option
Fluff.xlsm
ABCDE
12Largest
13FA77
14KB88
15CC90
16ED78
17BE90
18F96
19SmallestG63
20IH76
21JI52
22GJ52
23HK92
24AL67
25
Data
Cell Formulas
RangeFormula
A13:A17A13=TAKE(SORT(D13:E23,2,-1),5,1)
A20:A24A20=TAKE(SORT(D13:E23,2,1),5,1)
Dynamic array formulas.
 
Upvote 0
Solution
Thank you very much Bebo021999 and Fluff. Much appreciated your help.

I tried the solution by Fluff and it works beautifully. One thing I love about it is it is so elegant and simple.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,216,109
Messages
6,128,883
Members
449,477
Latest member
panjongshing

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