Numbering Duplicate Values as they Occur 1, 2, 3, etc...

lwthomp80

New Member
Joined
Oct 7, 2013
Messages
17
I have a list of names that have duplicates. The list is in no particular order and I need to be able to number the duplicates 1, 2, 3, 4, etc...I don't want to count the duplicates, but number them as they occur. Can anyone help me find a formula to do this? Thank you in advance!

For example:

[TABLE="width: 159"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]doe, john[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]doe, boy[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]dole, bob[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]madison, billy[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]dole, bob[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]madison, billy[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]joel, bill[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]jefferson, tom[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]doe, john[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]madison, billy[/TD]
[TD="align: right"]3[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Assuming that table starts in A1

In B1, put
=COUNTIF(A$1:A1,A1)

And fill down.
 
Upvote 0

Forum statistics

Threads
1,223,244
Messages
6,170,976
Members
452,372
Latest member
Natalie18

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