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
Item
1st try
2nd try
Ideally I want
12345671_XX0022_X1SOI Switch
1
1
1
12345671_XX0022_X1SPD channels; Fixed custom width
1
1
1
12345671_XX0022_X1Staggered
1
1
1
12345671_XX0022_X1Submitted
1
1
1
12345671_XX0022_X1Thawed
0
2
1
12345671_XX0022_X1Thawed
0
2
0
12345671_XX0022_X1Thawing main form so that Ann can uxxxx 124ABC.
#VALUE!
#VALUE!
1
12345671_XX0022_X1Untested Wafer
1
1
1
12345671_XX0022_X1Wirebond
1
1
1
12345671_XX0022_X1X1
1
1
1
12345671_XX0022_X1X-FAB (Essonnes, France) - 200mm
1
1
1
12345671_XX0022_X1Y
1
1
1
12345671_XX0022_X1Yes
0
3
1
12345671_XX0022_X1Yes
0
3
0
12345671_XX0022_X1Yes
0
3
0

<tbody>
</tbody>
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

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
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,214,827
Messages
6,121,823
Members
449,049
Latest member
cybersurfer5000

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