Index Match - Return Small Unique Values

hrayani

Well-known Member
Joined
Jul 23, 2010
Messages
1,501
Office Version
  1. 2016
Platform
  1. Windows
Hello Friends,

I am using this formula to get smallest value... but I need to get the smallest unique value if somebody can help

Required answer in cell A10 is 126

Please have a loot below...
Book2
AB
1REF #NAME
2125Alpha
3125Alpha
4125Alpha
5126Alpha
6
7
8REF #NAME
9125Alpha
10125Alpha
11
12
13126 requierd in cell A10 coz the 2nd
14smallest unique value is 126
Sheet1
Cell Formulas
RangeFormula
A9:A10A9=INDEX($A$2:$A$5,SMALL(IF($B$2:$B$5=B9,ROW($B$2:$B$5)-ROW(INDEX($B$2:$B$5,1,1))+1),ROWS($A$1:$A1)))
Press CTRL+SHIFT+ENTER to enter array formulas.


Regards,

Humayun
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Maybe
+Fluff New.xlsm
AB
1REF #NAME
2125Alpha
3125Alpha
4123Alpha
5126Alpha
6
7
8REF #NAME
9125Alpha
10123Alpha
11126Alpha
List
Cell Formulas
RangeFormula
A9:A11A9=IFERROR(INDEX($A$2:$A$5,AGGREGATE(15,6,(ROW($A$2:$A$5)-ROW($A$2)+1)/(($B$2:$B$5=$B9)*ISNA(MATCH($A$2:$A$5,$A$8:$A8,0))),1)),"")
 
Upvote 0
Thanks for the reply Fluff,

But its giving 1st, 2nd & 3rd Occurrence whereas, I need the 1st smallest unique value then 2nd smallest unique value and so on

It should return 123, 125 & 126 in range A9:A11
 
Upvote 0
Ok, how about
=IFERROR(AGGREGATE(15,6,$A$2:$A$5/(($B$2:$B$5=$B9)*ISNA(MATCH($A$2:$A$5,$A$8:$A8,0))),1),"")
 
Upvote 0
Solution
Thanks Fluff.... now giving the desired result :)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,781
Messages
6,126,869
Members
449,345
Latest member
CharlieDP

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