Unique + Filter?

OvernightCellebrity

New Member
Joined
Jan 16, 2024
Messages
16
Office Version
  1. 365
Platform
  1. Windows
I would like to pull all unique values from collumn D:D based on one criteria.

Criteria
Portfolio Name in (A2)
Collumn of portfolio names: AA

I want to avoid using an array formula is possible, whatis the simplest way to achieve this i have tried the below:

=UNIQUE(FILTER(D:D, AA:AA=A2))
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Hi & welcome to MrExcel.

What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Also what is wrong with the formula you posted?
 
Upvote 0
Thanks Fluff - have uopdated accordingly thank you

For the avoidance of doubt i am using windows version of office 365
 
Upvote 0
Thanks for that & what is wrong with your formula?
 
Upvote 0
Simply returns #NA

Validating the criteria match, and confirming the absence of spaces through LEN, ensures that A2 successfully matches a value in AA, with no spaces present within the value.
 
Upvote 0
Do you have any #N/A errors in columns D or AA?
 
Upvote 0
Assuming the date looks like the below:

I would like the formula to a return the values that have the portfolio name Chief:

OGF
Stanley Cooper


PortfolioIssuer_NamePortfolio Names
ChiefOGFChief
PPFBig Token
DOCMARTINChief ii
OGFChief
PPFBig Token
DOCMARTINChief ii
Stanley CooperChief
PPFBig Token
SUSHIDOGSalmon 4
PORTER 4Salmon 5
PORTER 5Gatehouse
PORTER 6Salmon 7
PORTER 7Salmon 8
 
Upvote 0
In that case, try:

Excel Formula:
=UNIQUE(FILTER(D:D, IFERROR(AA:AA=A2,FALSE)))
 
Upvote 0
In that case, try:

Excel Formula:
=UNIQUE(FILTER(D:D, IFERROR(AA:AA=A2,FALSE)))
Thank you all for the help - this is my solution

how can i expan the formula to add another condition based on a value in B2 in collumn BB:BB?
 
Upvote 0

Forum statistics

Threads
1,223,876
Messages
6,175,123
Members
452,614
Latest member
MRSWIN2709

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