Identify each result using SMALL (including duplicates)

IAMS

New Member
Joined
May 5, 2011
Messages
1
I'm trying to rank items in columnB by their price in columnA (smallest to largest). I have trouble because it only shows the first item that is 1.1, not the second. Is there a way to fix this?

DATA RESULT FORMULA
1.1 A A =IF($A$2="","",VLOOKUP(SMALL($A$2:$B$6,1),$A$2:$B$6,2,FALSE))
1.2 B A =IF($A$2="","",VLOOKUP(SMALL($A$2:$B$6,2),$A$2:$B$6,2,FALSE))
1.4 C B =IF($A$2="","",VLOOKUP(SMALL($A$2:$B$6,3),$A$2:$B$6,2,FALSE))
1.8 D C =IF($A$2="","",VLOOKUP(SMALL($A$2:$B$6,4),$A$2:$B$6,2,FALSE))
1.1 E D =IF($A$2="","",VLOOKUP(SMALL($A$2:$B$6,5),$A$2:$B$6,2,FALSE))

It shows AABCD instead of AEBCD (or EABCD).

Any help appreciated. Thanks.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
I always handle these with a helper column....

insert a column BEFORE your data....so that your numbers now start in cell B1 and your letters start in C1

in cell A1 enter and drag down

=B1+ROW()/1000


in cell D1 enter

=VLOOKUP(SMALL(A:A,ROW()),A:C,3,0) and drag down



we use the column A helper to make each B value insignificantly larger so that the VLOOKUP sees each as a unique value
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,559
Messages
6,179,517
Members
452,921
Latest member
BBQKING

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