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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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