Finding unique values in excel column

kimsalz

New Member
Joined
Oct 10, 2018
Messages
2
Hello,

I'm working with a data set of 14,000+ rows, 21 columns.

Since pivot tables and deeper analysis needs to be done, conditional formatting won't don't do

I'd like to be able to identify the first unique item, ideally with a 1 (0 would indicate it's a duplicate ).

I thought I had it with: =(COUNTIF($A$1:$A$15,$A13)=1)+0 (I found this on some site, but can't find it now.)

However, at a closer look, it's not quite working; 0 is all duplicates (even the first instance).

If I use =COUNTIF($A$1:$A$15,$A13), I get 1's for non duplicated items, and a number >1 for items that are duplicated, which indicates the number of instances it occurs in the column.

I need a mixture of this (I think).
Below is a subset of the data (just 15 rows and one column
[TABLE="width: 781"]
<tbody>[TR]
[TD]Item
[/TD]
[TD]1st try
[/TD]
[TD]2nd try
[/TD]
[TD]Ideally I want[/TD]
[/TR]
[TR]
[TD]12345671_XX0022_X1SOI Switch
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]12345671_XX0022_X1SPD channels; Fixed custom width
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]12345671_XX0022_X1Staggered
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]12345671_XX0022_X1Submitted
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]12345671_XX0022_X1Thawed
[/TD]
[TD]0
[/TD]
[TD]2
[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]12345671_XX0022_X1Thawed
[/TD]
[TD]0
[/TD]
[TD]2
[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]12345671_XX0022_X1Thawing main form so that Ann can uxxxx 124ABC.
[/TD]
[TD]#VALUE!
[/TD]
[TD]#VALUE!
[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]12345671_XX0022_X1Untested Wafer
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]12345671_XX0022_X1Wirebond
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]12345671_XX0022_X1X1
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]12345671_XX0022_X1X-FAB (Essonnes, France) - 200mm
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]12345671_XX0022_X1Y
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]12345671_XX0022_X1Yes
[/TD]
[TD]0
[/TD]
[TD]3
[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]12345671_XX0022_X1Yes
[/TD]
[TD]0
[/TD]
[TD]3
[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]12345671_XX0022_X1Yes
[/TD]
[TD]0
[/TD]
[TD]3
[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
As you can see I have an error in red that I need to figure out, and there are a handful of errors in the 14,000+ rows of data.

Is there any chance you can help me??

As I said there's more analysis to do, but I think this step is a step closer to the end. (I hope anyway).

Thanks,
Kim
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
How about


Excel 2013/2016
AB
1Item
212345671_XX0022_X1SOI Switch1
312345671_XX0022_X1SPD channels; Fixed custom width1
412345671_XX0022_X1Staggered1
512345671_XX0022_X1Submitted1
612345671_XX0022_X1Thawed1
712345671_XX0022_X1Thawed0
812345671_XX0022_X1Thawing main form so that Ann can uxxxx 124ABC.1
912345671_XX0022_X1Untested Wafer1
1012345671_XX0022_X1Wirebond1
1112345671_XX0022_X1X11
1212345671_XX0022_X1X-FAB (Essonnes, France) - 200mm1
1312345671_XX0022_X1Y1
1412345671_XX0022_X1Yes1
1512345671_XX0022_X1Yes0
1612345671_XX0022_X1Yes0
sheet2
Cell Formulas
RangeFormula
B2=IF(COUNTIF(A$2:A2,A2)=1,1,0)
 
Upvote 0
Glad to help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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