Unique List with condition cell contains “1”

faizee

Board Regular
Joined
Jan 28, 2009
Messages
213
Office Version
  1. 2016
Platform
  1. Windows
make the unique list of table column b values, where table column A contains “1”
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
This will do it
Excel Formula:
=UNIQUE(FILTER(B:B,A:A=1,""))
 
Upvote 0
This will do it
Excel Formula:
=UNIQUE(FILTER(B:B,A:A=1,""))
thanks. but unfortunately i am using version 2016 and 2019. and i guess .unique and filter formula are not available in these verson?
so what to do now?
 
Upvote 0
Do you want the results in table order, or sorted ascending / descending?

Also, what is in column B, text or numbers?
 
Upvote 0
As you didn't clarify the other detail that I asked about, I am going to assume numbers given that you refer to 'values' in post 1 rather than anything that would suggest text labels.

Note that the reference D$1:D1 near the end of the formula will need changing to match your actual sheet. This should refer to the cell immediately above the first formula.

faizee.xlsx
ABCD
1RefListResults
2311
3112
4243
5144
633 
712
812
914
1022
1111
1224
1313
1431
1522
1621
1734
1833
Sheet1
Cell Formulas
RangeFormula
D2:D6D2=IFERROR(AGGREGATE(15,6,$B$2:$B$18/($A$2:$A$18=1),1+SUM(COUNTIFS($A$2:$A$18,1,$B$2:$B$18,D$1:D1))),"")
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
S#fruits
1apple
1mango
2apple
1apple
2mango
3jelly
2jelly
3apple
2pinnable
3mango
2pinnable
2pinnable
S No2unique list of fruits, where S# is 2
apple
mango
jelly
pinnable
 
Upvote 0
This is why I asked if it was text or numbers in column B, numbers are easier to work with.

I'll have another look when I get chance but it may not be for a day or so.
 
Upvote 0
This is why I asked if it was text or numbers in column B, numbers are easier to work with.

I'll have another look when I get chance but it may not be for a day or so.
sure.. thank you. i will wait
 
Upvote 0
This is why I asked if it was text or numbers in column B, numbers are easier to work with.

I'll have another look when I get chance but it may not be for a day or so.
please.. can you do it?
 
Upvote 0

Forum statistics

Threads
1,215,097
Messages
6,123,077
Members
449,094
Latest member
mystic19

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