Return a list of column data based on a unique value in another column

jonbadman

New Member
Joined
Dec 7, 2022
Messages
4
Office Version
  1. 2016
Platform
  1. Windows
Hello, I am trying to write a formula which will return a list of data from a column (A) based on the specific value in another column (B). The issue I have is that the data in column A might be duplicated as it might have multiple statuses in column B.

For example, 12345 has status A and B so I don't want it to return a value in column C with a unique status of "Status A", as opposed to 12347 which has a unique status in column B of "A" and the job number needs to be returned in column C. I have tried using the UNIQUE function but returns all job numbers with a specified status in the formula but does not exclude where there is more than 1 status value (unless I haven't used enough arguments).

Hope this makes sense, grateful for any help that can be offered.

Screenshot 2022-12-07 112547.png
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hi & welcome to MrExcel.
What version od Excel are you using?
Your profile shows 2016, but you are talking about the Unique function which doesn't exist in 2016.
 
Upvote 0
Hi, I am using 2016 but have access to sharepoint which I can run the spreadsheet through if required. I have a couple of other spreadsheets I use TEXTJOIN on which I have had to run through Sharepoint. Thanks
 
Upvote 0
Ok, how about
Excel Formula:
=FILTER(A2:A100,(COUNTIFS(B2:B100,"<>A",A2:A100,A2:A100)=0)*(A2:A100<>""))
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
Is there a way of including a UNIQUE function into this rather than using this data as a lookup column?
 
Upvote 0
How about
Excel Formula:
=UNIQUE(FILTER(A2:A100,(COUNTIFS(B2:B100,"<>A",A2:A100,A2:A100)=0)*(A2:A100<>"")))
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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