formula help for finding first of duplicate entries

Grizlore

Active Member
Joined
Aug 22, 2006
Messages
259
Hi All,

Can you help?

I have a huge list in column A which contains serial numbers. I need to count how many serial number there are, so i need to ignore any duplicates in the list.

I am trying to create a formula which puts a "1" in column B when the first serial number appears, and a "0" when it is duplicated. Then i'll pivot them and count those with a "1"

Can anyone help please?

Help appreciated
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Grizlore,

Why not select column A, Advanced Filter , Tick Unique records only.

Then bottom left of window status bar will show how many are unique of total.

Hope that helps.
 
Last edited:
Upvote 0
i have loads and need to pivot them... I have Excel 2003, which i dont think does Advanced / unique
 
Upvote 0
Grizlore,

Assuming your data starts A2 then in B2 and copy down as required, try....

=IF(COUNTIF(A$2:A2,A2)=1,1,0)

If you can pivot on ones and any higher integer rather than require ones and zeros then maybe just...

=COUNTIF(A$2:A2,A2)
 
Upvote 0

Forum statistics

Threads
1,214,990
Messages
6,122,626
Members
449,094
Latest member
bsb1122

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