Labeling a Unique/Distinct value not including any duplicates then pulling a list of those values

willow1985

Well-known Member
Joined
Jul 24, 2019
Messages
888
Office Version
  1. 365
Platform
  1. Windows
I am looking for a formula that will mark what items on a list that are completely unique and do not have a duplicate (see below)

Book1
ABCDEF
1CostItemUnique Y/NUnique ListCost
2$2.00AppleNCorn$0.56
3$2.00AppleNStrawberry$5.00
4$3.00PearNBanana$1.50
5$3.00PearN
6$2.50BroccoliN
7$0.56CornY
8$2.00AppleN
9$5.00StrawberryY
10$3.00PearN
11$1.50BananaY
12$2.50BroccoliN
Sheet1


After which I would like a formula to pull a list of those unique values.
(Formulas needed are in yellow)

Any help with this would be greatly appreciated, thank you! :giggle:

(Note: the original data will not be names of fruit/veggies but part numbers with a mix of numbers and characters if this matters, example 61300 or PT55522)
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Do you need col C, you can use this in E2 & it will return what you want
Excel Formula:
=UNIQUE(B2:B12,,1)
 
Upvote 0
Solution
Do you need col C, you can use this in E2 & it will return what you want
Excel Formula:
=UNIQUE(B2:B12,,1)
Yes I do need col C as well please.
Thank you very much for D! Out of curiosity is it possible to add a filter to D as well? (see below)

Book1
ABCDEF
1CostItemUnique Y/NTypeUnique VegetablesCost
2$2.00AppleNFruitCorn$0.56
3$2.00AppleNFruit
4$3.00PearNFruit
5$3.00PearNFruit
6$2.50BroccoliNVegetable
7$0.56CornYVegetable
8$2.00AppleNFruit
9$5.00StrawberryYFruit
10$3.00PearNFruit
11$1.50BananaYFruit
12$2.50BroccoliNVegetable
Sheet1
 
Upvote 0
Formula for c is
Excel Formula:
=IF(COUNTIFS(B2:B12,B2:B12)=1,"Y","N")
This goes in C2 only.

What is the criteria for the filter?
 
Upvote 0
How about
Excel Formula:
=FILTER(B2:B12,(C2:C12="Y")*(D2:D12="Vegetable"))
 
Upvote 0
How about
Excel Formula:
=FILTER(B2:B12,(C2:C12="Y")*(D2:D12="Vegetable"))
Sorry I think there was a miscommunication. Is there any way to do a filter with the =UNIQUE(B2:B12,,1) formula for vegetables? Only provide a unique list for anything that is a Vegetable?
 
Upvote 0
Not directly, no.
I see.
Thank you. I have one more question about a formula you provided: =IF(COUNTIFS(B2:B12,B2:B12)=1,"Y","N")

Would this formula work in a table? The data I am applying it to is in a table with a lot of lines of data and it seems to be freezing or having a SPILL error.

I modified it to: IF(COUNTIFS([Part Number],[Part Number])=1,"Y","N")
 
Upvote 0
No, you cannot use spill ranges in a table, you would need to use
Excel Formula:
IF(COUNTIFS([Part Number],[@Part Number])=1,"Y","N")
 
Upvote 0

Forum statistics

Threads
1,215,160
Messages
6,123,355
Members
449,097
Latest member
thnirmitha

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