Unique List with condition cell contains “1”

faizee

Board Regular
Joined
Jan 28, 2009
Messages
214
Office Version
  1. 2016
Platform
  1. Windows
make the unique list of table column b values, where table column A contains “1”
 
Here's a way to extract the unique list in the same order as the original table. I'm not sure that it is possible to sort them into order without the newer 365 functions.
faizee.xlsx
ABC
1S#fruits
21apple
31mango
42apple
51apple
62mango
73jelly
82jelly
93apple
102pinnable
113mango
122pinnable
132pinnable
14
15
16S No2
17apple
18mango
19jelly
20pinnable
Sheet2
Cell Formulas
RangeFormula
B17:B20B17=IFERROR(INDEX(B:B,AGGREGATE(15,6,ROW($A$2:$A$13)/($A$2:$A$13=$C$16)/ISNA(MATCH($B$2:$B$13,$B$16:$B16,0)),1)),"")
 
Upvote 2
Solution

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Following up on my reply above, I should have said that I'm not sure it is possible using a single formula which was what I was trying to do. If you're happy to use a helper column then you could do it with this method.
faizee.xlsx
ABC
1S#fruitsRank
21apple 
31mango 
42apple6
51apple 
62mango4
73jelly 
82jelly5
93apple 
102pinnable3
113mango 
122pinnable 
132pinnable 
14
15
16S No2
17apple
18apple
19jelly
20mango
Sheet2
Cell Formulas
RangeFormula
C2:C13C2=IF(A2=C$16,IF(COUNTIFS(A$2:A2,C$16,B$2:B2,B2)=1,COUNTIFS(A$2:A$13,A2,B$2:B$13,">="&B2),""),"")
B17:B20B17=IFERROR(INDEX(B:B,MATCH(SMALL($C$2:$C$13,ROWS(B$17:B17)),$C$2:$C$13,0)),"")
 
Upvote 1
i hope, someone could help me out in this query
 
Upvote 0

Forum statistics

Threads
1,215,743
Messages
6,126,605
Members
449,321
Latest member
syzer

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