SMALL function to show top 10 smallest values with their names

Akbarov

Active Member
Joined
Jun 30, 2018
Messages
347
Office Version
  1. 365
Platform
  1. Windows
Hey community,

I need formula to show TOP 10 smallest values with their names ( Cell A1:A119 contains names of products and B1:B119 quantity of products )

Note: some products got same quantity
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Book1
ABCDE
1productqtytop
2p1495
3p3296
4p452lowest scoreslowest top products
5p76429p3
6p25030p11
7p095949p1
8p125449p17
9p205250p2
10p113050p35
11p1749
12p3550
Sheet1


D2: 5 (Change to 10 for your data.)

In D3 just enter:

=COUNTIFS(B2:B12,"<="&SMALL(B2:B12,MIN(D2,COUNT(B2:B12))))

This adjusts Top N for ties.

In D5 just enter and copy down:

=IF(ROWS($D$5:D5)<=$D$3,SMALL($B$2:$B$12,ROWS($D$5:D5)),"")

In E5 control+shift+enter, not just enter, and copy down:

=IF($D5="","",INDEX($A$2:$A$12,SMALL(IF($B$2:$B$12=$D5,ROW($A$2:$A$12)-ROW($A$2)+1),COUNTIFS($D$5:D5,D5))))
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,307
Members
452,633
Latest member
DougMo

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