Solved

Excel Macro Create Squence Numbers for Duplicate Names

Posted on 2014-02-05
2
212 Views
Last Modified: 2014-02-05
hi,

I need help to add sequence numbers for duplicate names

For Example:

Column A   Column B
Thomas             0
Thomas             1
Larry                  0
Larry                  1
Larry                  2


I have a large excel file that has multiple name

Either a formula or VBscript would work, but I don't know how to start it
0
Comment
Question by:thomasm1948
2 Comments
 
LVL 19

Accepted Solution

by:
regmigrant earned 500 total points
ID: 39837636
if list starts in A1

put =COUNTIF($A$1:A1,A1)-1 in column b and copy down
0
 

Author Closing Comment

by:thomasm1948
ID: 39837679
Excellent, Thank you very much.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question